/* =========================================================
   SPORTS ACTIVITIES — RESPONSIVE FOLDER GALLERY & ALBUM MODAL
   ========================================================= */
.sports-page {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: #14213d;
  overflow-x: clip;
}

.sports-hero {
  position: relative;
  overflow: hidden;
  background-color: #0f1c33;
  min-height: clamp(220px, 30vw, 340px);
  display: flex;
  align-items: center;
}

.sports-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.sports-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 28, 51, 0.92) 0%,
    rgba(20, 33, 61, 0.8) 60%,
    rgba(42, 123, 118, 0.35) 100%
  );
  z-index: 1;
}

.sports-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  color: #ffffff;
}

.sports-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f3d06b;
  margin-bottom: 0.45rem;
}

.sports-hero-title {
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 0.45rem;
  line-height: 1.15;
}

.sports-hero-sub {
  max-width: 680px;
  font-size: clamp(0.86rem, 1.25vw, 0.98rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 0.9rem;
  line-height: 1.55;
}

.sports-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.sports-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.sports-breadcrumb a:hover {
  text-decoration: underline;
}

.sports-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.75rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, #fffaf0 0%, #f5f8ff 45%, #f2fbf7 100%);
}

.sports-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(0.9rem, 2.5vw, 1.5rem);
}

/* Toolbar & Filter Pills */
.sports-toolbar {
  background: #ffffff;
  border: 1px solid rgba(20, 33, 61, 0.09);
  border-radius: 14px;
  padding: clamp(0.85rem, 1.8vw, 1.15rem) clamp(1rem, 2vw, 1.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 8px 22px rgba(15, 28, 51, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1rem;
}

.sports-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  color: #334155;
}

.sports-summary strong {
  color: #14213d;
}

.sports-dot {
  color: #94a3b8;
}

.sports-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sports-pill {
  font-family: inherit;
  font-size: clamp(0.74rem, 0.95vw, 0.8rem);
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 61, 0.14);
  background: #f8fafc;
  color: #14213d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sports-pill:hover {
  border-color: #c9a227;
  background: #fffaf0;
}

.sports-pill.is-active {
  background: #14213d;
  color: #ffffff;
  border-color: #14213d;
}

/* Folder Cards Block */
.sports-folders-block {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sports-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.sports-block-title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #14213d;
  margin: 0;
}

.sports-block-hint {
  font-size: 0.8rem;
  color: #64748b;
}

.sports-folders-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
}

.sports-folder-card {
  appearance: none;
  font-family: inherit;
  text-align: left;
  padding: 0;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-top: 4px solid #c9a227;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 28, 51, 0.06);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sports-folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 28, 51, 0.12);
  border-top-color: #c96449;
}

.sports-folder-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

.sports-folder-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sports-folder-card:hover .sports-folder-thumb img {
  transform: scale(1.05);
}

.sports-folder-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  background: rgba(15, 28, 51, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sports-folder-body {
  padding: 0.95rem 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
}

.sports-folder-name {
  font-size: 1rem;
  font-weight: 700;
  color: #14213d;
  line-height: 1.3;
}

.sports-folder-path {
  font-size: 0.72rem;
  color: #64748b;
  word-break: break-word;
}

.sports-folder-cta {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c96449;
}

/* Sport Activity Group */
.sports-group {
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.sports-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding-bottom: 0.65rem;
  margin-bottom: 1.15rem;
  border-bottom: 2px solid rgba(20, 33, 61, 0.12);
}

.sports-group-title {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 700;
  color: #14213d;
  margin: 0;
}

.sports-group-folder {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.sports-group-open-btn {
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  background: #14213d;
  color: #ffffff;
  border: none;
  padding: 0.42rem 0.85rem;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sports-group-open-btn:hover {
  background: #c96449;
}

/* Photo Cards Grid */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.3rem);
}

.sports-card {
  margin: 0;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.09);
  box-shadow: 0 8px 22px rgba(15, 28, 51, 0.06);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sports-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 28, 51, 0.12);
}

.sports-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.sports-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sports-card:hover .sports-card-media img {
  transform: scale(1.04);
}

.sports-card-body {
  padding: 0.8rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sports-card-sport {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #c96449;
}

.sports-card-caption {
  font-size: 0.84rem;
  font-weight: 600;
  color: #14213d;
  line-height: 1.35;
}

/* Folder Album Modal */
.sports-album-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 32, 0.82);
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  overflow-y: auto;
}

.sports-album-modal.is-open {
  display: flex;
}

.sports-album-panel {
  width: 100%;
  max-width: 1120px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sports-album-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  background: #14213d;
  color: #ffffff;
  border-bottom: 3px solid #c9a227;
}

.sports-album-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

.sports-album-meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.sports-album-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.sports-album-grid {
  padding: clamp(1rem, 2vw, 1.35rem);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: #f8fafc;
}

.sports-album-item {
  margin: 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.1);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 28, 51, 0.05);
}

.sports-album-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.sports-album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sports-album-caption {
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #14213d;
}

/* Empty State */
.sports-empty {
  background: #ffffff;
  border: 1px dashed rgba(20, 33, 61, 0.25);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #475569;
}

.sports-empty i {
  font-size: 2rem;
  color: #c9a227;
  margin-bottom: 0.75rem;
}

.sports-empty h2 {
  margin: 0 0 0.5rem;
  color: #14213d;
  font-size: 1.25rem;
}

/* Lightbox */
.sports-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 32, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.sports-lightbox.is-open {
  display: flex;
}

.sports-lightbox-content {
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.sports-lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.sports-lightbox-meta {
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sports-lightbox-meta strong {
  color: #f3d06b;
  font-size: 1rem;
}

.sports-lightbox-meta span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.86);
}

.sports-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 28, 51, 0.85);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Tablet Breakpoint */
@media (max-width: 1080px) {
  .sports-folders-grid,
  .sports-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .sports-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sports-folders-grid,
  .sports-grid,
  .sports-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Small Phone Breakpoint */
@media (max-width: 480px) {
  .sports-folders-grid,
  .sports-grid,
  .sports-album-grid {
    grid-template-columns: 1fr;
  }

  .sports-pill {
    flex: 1 1 auto;
    text-align: center;
  }
}
.sports-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #14213d;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: #f1f5f9;
  transition: background 0.2s ease, color 0.2s ease;
}

.sports-back-link:hover {
  background: #14213d;
  color: #ffffff;
}
/* Hide folder path text on folder cards */
.sports-folder-path,
.sports-group-folder {
  display: none !important;
}

/* Remove underlines on folder cards, links, and titles */
.sports-page a,
.sports-folder-card,
.sports-folder-card:hover,
.sports-folder-name,
.sports-folder-cta,
.sports-back-link {
  text-decoration: none !important;
}

/* Clean photo-only cards on folder gallery page */
.sports-card--photo-only .sports-card-media {
  aspect-ratio: 4 / 3;
}