/* ==========================================================================
   Play Axis Club — reusable components
   1. Buttons
   2. Search field
   3. Form fields
   4. Sport cards (Recommended Sports)
   5. Upcoming sport tiles
   6. Event cards
   7. Sponsor cards
   8. Promo banners
   9. News cards
   10. Testimonials
   11. Social links
   12. Slider controls
   13. Back to top
   ========================================================================== */

/* 1. Buttons ============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), translate var(--dur) var(--ease);
}

.btn:active {
  translate: 0 1px;
}

.btn-signin {
  min-height: 2rem;
  padding: 0.5rem 1.35rem;
  background: #e55e0d;
  color: #f1f1f1;
  font-size: 1rem;
  font-weight: 500;
}

.btn-signin i {
  font-size: 1.05em;
}

.btn-signin:hover,
.btn-signin:focus-visible {
  background: var(--clr-navy);
  color: #fff;
  box-shadow: 0 8px 20px rgb(22 44 156 / 30%);
}

.btn-primary-navy {
  min-height: clamp(2.875rem, 3vw, 3.6875rem);
  padding: 0.6rem clamp(1.4rem, 1.8vw, 2.25rem);
  background: var(--clr-blue-dark);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 500;
}

.btn-primary-navy:hover,
.btn-primary-navy:focus-visible {
  background: var(--clr-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgb(13 30 115 / 28%);
}

.btn-amber {
  padding: 0.7rem 1.9rem;
  background: var(--clr-amber);
  color: var(--clr-navy-deep);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.btn-amber:hover,
.btn-amber:focus-visible {
  background: var(--clr-amber-dark);
  color: #fff;
}

.btn-book {
  padding: 0.5rem 1.1rem;
  background: var(--clr-yellow);
  border-radius: var(--radius-pill);
  color: #0f131c;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.btn-book img {
  width: 1.25rem;
  height: auto;
}

.btn-book:hover,
.btn-book:focus-visible {
  background: var(--clr-yellow-dark);
  color: #0f131c;
  box-shadow: 0 8px 18px rgb(255 198 0 / 35%);
}

/* 2. Search field ========================================================= */
.search {
  position: relative;
  flex: 0 1 37.75rem;
  display: flex;
  align-items: center;
  min-height: 1rem;
  padding-inline: 1.5rem 0.5rem;
  background: var(--clr-surface-2);
  border: 1px solid #ededed;
  border-radius: 9px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.search:focus-within {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgb(22 44 156 / 12%);
}

.search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--clr-navy-dark);
  font-size: var(--fs-xs);
}

.search__input::placeholder {
  color: #a0a0a0;
  opacity: 1;
}

.search__input:focus-visible {
  outline: 0;
}

.search__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-left: 2px solid #dcdcdc;
  border-radius: 0;
  background: transparent;
  color: #6b6b6b;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.search__submit:hover {
  color: var(--clr-blue);
}

/* 3. Form fields ========================================================== */
.field {
  flex: 1 1 12.5rem;
  min-width: 0;
}

.field__input {
  width: 100%;
  min-height: 3.375rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: #fff;
  color: #222;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.field__input::placeholder {
  color: #8d8d8d;
  opacity: 1;
}

.field__input:focus-visible {
  outline: 0;
  border-color: var(--clr-amber);
  box-shadow: 0 0 0 3px rgb(244 147 30 / 35%);
}

.field__input[aria-invalid="true"] {
  border-color: #ff6b6b;
}

.field__error {
  display: none;
  margin: 0.4rem 0 0;
  color: #ffb4b4;
  font-size: var(--fs-xs);
}

.field__error.is-shown {
  display: block;
}

.newsletter__submit {
  flex: 0 0 auto;
  min-height: 3.375rem;
  min-width: 12.5rem;
}

/* 4. Sport cards ========================================================== */
.sport-grid {
  margin-bottom: 0;
}

.sport-card {
  position: relative;
  display: block;
  height: auto;                 /* was: height: 35vw; */
  aspect-ratio: 340 / 488;      /* NEW — scales with the card's own width, not viewport width */
  overflow: hidden;
  border-radius: 9px;
  background: #0f131c;
  box-shadow: var(--shadow-soft);
  transition: translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.sport-card:hover {
  translate: 0 -6px;
  box-shadow: var(--shadow-card);
}

.sport-card__img {
  display: block;
  width: 100%;
  height: 100%;                 /* was: height: 34vw; */
  object-fit: cover;
  transition: scale 0.6s var(--ease);
}

.sport-card:hover .sport-card__img {
  scale: 1.04;
}

.sport-card__badge {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  margin: 0;
  padding: 0.35rem 1.1rem;
  background: #fff;
  border-radius: var(--radius-pill);
  color: var(--clr-navy);
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

.sport-card__bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem clamp(0.6rem, 0.4rem + 0.7vw, 1rem);
  background: rgb(33 32 31 / 92%);
  backdrop-filter: blur(2px);
}

.sport-card__likes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #acacac;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.sport-card__likes img {
  width: 1.375rem;
  height: auto;
}

/* ================================
   SHARE BUTTON
================================ */

.sport-card__share {
  position: relative;
  display: flex;
}

.sport-card__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0;
  border: 0;
  background: transparent;

  color: #d8d8d8;
  font-size: 1vw;
  cursor: pointer;
}

.sport-card__share-btn img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.sport-card__share-btn span {
  font-weight: 600;
}

/* ================================
   SHARE MENU
================================ */

.sport-card__share-menu {
  position: absolute;
  /* right: 0; */
  bottom: calc(100% + 28px);

  display: flex;
  flex-direction: row;

  min-width: 145px;
  padding: 8px;

  background: #ffffff;
  border-radius: 10px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;

  z-index: 20;
}

.sport-card__share.is-open .sport-card__share-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sport-card__share-option {
  display: flex;
  align-items: center;

  padding: 0px 12px;

  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  border-radius: 6px;

  transition: background 0.2s ease;
}

.sport-card__share-option:hover {
  background: #f2f2f2;
}

@media (max-width: 767px) {

  /* ================================
     MOBILE CARD BOTTOM BAR
  ================================= */

  .sport-card__bar {
    padding: 0.9rem 0.85rem;
    gap: 0.75rem;
  }

  /* ================================
     SHARE BUTTON
  ================================= */

  .sport-card__share-btn {
    gap: 9px;
    font-size: 1rem;
    min-height: 42px;
  }

  .sport-card__share-btn img {
    width: 28px;
    height: 28px;
  }

  .sport-card__share-btn span {
    font-size: 1rem;
    font-weight: 700;
  }

  /* ================================
     REGISTER NOW BUTTON
  ================================= */

  .sport-card .btn-book {
    min-height: 44px;
    padding: 0.65rem 1rem;

    font-size: 1rem;
    font-weight: 700;

    gap: 8px;
  }

  .sport-card .btn-book img {
    width: 27px;
    height: 25px;
  }

  .sport-card .btn-book span {
    font-size: 1rem;
  }

}

/* 5. Upcoming sport tiles ================================================= */
.upcoming-grid {
  margin-bottom: 0;
}

.upcoming-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  min-height: clamp(11.25rem, 18vw, 16.9375rem);
  padding: clamp(1rem, 0.7rem + 1vw, 1.5rem) 1rem clamp(1.25rem, 1rem + 1vw, 1.9rem);
  border-radius: var(--radius);
  background: var(--tint-pickleball);
  text-align: center;
  transition: translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.upcoming-card:hover,
.upcoming-card:focus-visible {
  translate: 0 -6px;
  box-shadow: var(--shadow-card);
}

.upcoming-card--pickleball { background: var(--tint-pickleball); }
.upcoming-card--tennis     { background: var(--tint-tennis); }
.upcoming-card--hockey     { background: var(--tint-hockey); }
.upcoming-card--kabaddi    { background: var(--tint-kabaddi); }

.upcoming-card__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.upcoming-card__figure img {
  width: auto;
  max-width: 100%;
  max-height: clamp(6.875rem, 12vw, 10.9375rem);
  object-fit: contain;
  transition: scale var(--dur) var(--ease);
}

.upcoming-card:hover .upcoming-card__figure img {
  scale: 1.06;
}

.upcoming-card__name {
  color: var(--clr-navy);
  font-size: var(--fs-h4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* 6. Event cards ========================================================== */
.event-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #fff;
  aspect-ratio: 16 / 22;   /* was: height: 25vw; — now scales with card width, not viewport */
}

.event-card:hover {
  translate: 0 -6px;
  box-shadow: 0 16px 36px rgb(0 0 0 / 38%);
}

.event-card--light {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-soft);
}

.event-card--light:hover {
  box-shadow: var(--shadow-card);
}

.event-card__caption {
  padding: 1rem clamp(0.85rem, 0.7rem + 0.5vw, 1.15rem) 1.15rem;
  text-align: left;
}

.event-card__title {
  margin: 0 0 0.3rem;
  color: var(--clr-navy-ink);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.3;
}

.event-card__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--clr-muted);
  font-size: var(--fs-xs);
}

.event-card__meta i {
  color: var(--clr-amber);
}

/* Card video stays cropped/cover as before — untouched */
.event-card__video-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.event-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  pointer-events: none; /* the wrapper handles the click, see JS */
}

/* ---------- Modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-modal__inner {
  position: relative;
  z-index: 1;
  width: min(92vw, 1000px);
  max-height: 90vh;
  display: flex;
}

.video-modal__video {
  display: block;
  width: 100%;
  max-height: 90vh;
  /* no object-fit override — plays at its own natural aspect ratio */
}

.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

body.video-modal-open {
  overflow: hidden;
}

.event-grid--scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 1rem;        /* room for the scrollbar without clipping cards */
  margin: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;   /* smooth momentum scroll on iOS */
  scrollbar-width: thin;               /* Firefox */
}

.event-grid__item {
  flex: 0 0 auto;
  width: 70%;                /* mobile: ~1.3 cards visible, invites scrolling */
  scroll-snap-align: start;
}

/* @media (max-width: 500px){
  .sport-card__img{
    height: 100vw;
  }
  .sport-card{
    height: 114vw;
  }
} */
 @media (max-width: 500px){
  .sport-card__img{
    height: 100vw;
  }
  .sport-card{
    height: 114vw;
    width: 100%;
  }
}

@media (min-width: 576px) {
  .event-grid__item {
    width: 45%;               /* ~2.2 cards visible */
  }
}

@media (min-width: 992px) {
  .event-grid__item {
    width: 24%;                /* ~4.2 cards visible, close to the old col-lg-3 */
  }
}

/* optional: nicer scrollbar on browsers that support it */
.event-grid--scroll::-webkit-scrollbar {
  height: 6px;
}
.event-grid--scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}


.event-marquee {
  overflow: hidden;           /* hides the overflow, no scrollbar ever shows */
  width: 100%;
}

.event-grid--marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 0;
  padding: 0 0 1rem;
  width: max-content;         /* track can be wider than the viewport */
  animation: marquee-scroll 38s linear infinite;
}

.event-marquee:hover .event-grid--marquee {
  animation-play-state: paused;   /* pause while user hovers to click play */
}

.event-grid__item {
  flex: 0 0 auto;
  width: 70vw;
  max-width: 320px;
}

@media (min-width: 992px) {
  .event-grid__item {
    width: 24vw;
    max-width: 300px;
  }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.event-grid__item {
  flex: 0 0 auto;
  width: 45vw;        /* was 70vw */
  max-width: 220px;   /* was 320px */
}

@media (min-width: 992px) {
  .event-grid__item {
    width: 30vw;       /* was 24vw */
    max-width: 230px;  /* was 300px */
  }
}

/* Fixture card — replaces a table so the data stays readable on phones */
.fixture-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  background: #fff;
  transition: translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.fixture-card:hover {
  translate: 0 -5px;
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

.fixture-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fixture-card__sport {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--clr-blue);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fixture-card__status {
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.fixture-card__status--open {
  background: rgb(22 44 156 / 10%);
  color: var(--clr-blue);
}

.fixture-card__status--soon {
  background: rgb(244 147 30 / 16%);
  color: #a35c05;
}

.fixture-card__title {
  margin: 0;
  color: var(--clr-navy);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.3;
}

.fixture-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fixture-card__meta li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--clr-muted);
  font-size: var(--fs-xs);
}

.fixture-card__meta i {
  color: var(--clr-amber);
}

.fixture-card__cta {
  margin-top: auto;
  padding-top: 0.35rem;
}

/* 7. Sponsor cards ======================================================== */
.sponsor-grid {
  margin-bottom: 0;
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: clamp(6rem, 9vw, 8.1875rem);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--clr-surface-3);
  transition: translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.sponsor-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  translate: 0 -4px;
  box-shadow: var(--shadow-soft);
}

/* 8. Promo banners ======================================================== */
.promo {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(6.875rem, 10vw, 9.0625rem);
  border-radius: var(--radius-sm);
}

.promo__media {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
}

.promo__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.72rem + 1.35vw, 2.0625rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.22;
  color: var(--clr-sand);
}

/* The artwork fades into the banner colour with a gradient veil rather than a
   CSS mask — same result, no extra compositing layer, wider browser support. */
.promo__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* “Talent opens doors.” — paddings are % of the banner so the copy keeps
   the same position relative to the artwork at every container width. */
.promo--quote {
  justify-content: center;
  padding: 1rem 7.4% 1rem 39%;
  background: #01040b;
  text-align: center;
}

.promo--quote .promo__media {
  width: 49.5%;
}

.promo--quote .promo__fade {
  background: linear-gradient(to right, rgb(1 4 11 / 0%) 43%, #01040b 50%);
}

.promo__ribbon {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 7.6%;
  height: 100%;
  width: auto;
  max-width: none;
}

/* “Support the Game.” */
.promo--support {
  gap: 3.2%;
  justify-content: flex-end;
  padding: 1rem 3.5% 1rem 22%;
  background: var(--clr-navy-deep);
}

.promo--support .promo__media {
  width: 38%;
}

.promo--support .promo__fade {
  background: linear-gradient(to right, rgb(13 18 41 / 0%) 14%, var(--clr-navy-deep) 38%);
}

.promo--support .promo__text {
  text-align: right;
}

.promo__cta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: clamp(3rem, 3.7vw, 4.4375rem);
  padding-inline: clamp(1.25rem, 2.8vw, 3.25rem);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.72rem + 0.72vw, 1.6rem);
  font-style: italic;
  font-weight: 800;
}

/* 9. News cards =========================================================== */
.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card__figure {
  margin: 0 0 1.25rem;
  padding: clamp(0.5rem, 0.4rem + 0.4vw, 1.05rem);
  background: #fbf8f8;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgb(14 19 45 / 8%);
  overflow: hidden;
}

.news-card__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 177 / 251;
  object-fit: cover;
  border-radius: 4px;
  transition: scale 0.6s var(--ease);
}

.news-card:hover .news-card__figure img {
  scale: 1.05;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.6rem;
  color: var(--clr-muted);
  font-size: var(--fs-xs);
}

.news-card__tag {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgb(22 44 156 / 9%);
  color: var(--clr-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card__title {
  margin-bottom: 0.65rem;
  color: var(--clr-navy-ink);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.3;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--clr-blue);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.news-card__more:hover,
.news-card__more:focus-visible {
  color: var(--clr-amber);
}

/* Sports index: the card art carries no title, so name it underneath */
.sport-entry {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* inside a caption wrapper the art sizes itself; only the caption flexes */
.sport-entry .sport-card {
  flex: 0 0 auto;
  height: auto;
}

.sport-entry__caption {
  padding-top: 1.1rem;
}

.sport-entry__title {
  margin: 0 0 0.3rem;
  color: var(--clr-navy);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.3;
}

.sport-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0;
  color: var(--clr-muted);
  font-size: var(--fs-xs);
}

.sport-entry__meta i {
  margin-right: 0.35rem;
  color: var(--clr-amber);
}

.news-card__title a:hover,
.news-card__title a:focus-visible {
  color: var(--clr-blue);
  text-decoration: underline;
}

.news-card__text {
  margin: 0;
  color: var(--clr-muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

/* 10. Testimonials ======================================================== */
.testimonial-slider {
  padding-block: 0.5rem;
}

.testimonial-slider .swiper-slide {
  height: auto;
}

.testimonial {
  position: relative;
  height: 100%;
  margin: 0;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

/* The featured slide (middle one on desktop) is flagged from js/main.js */
/* .testimonial-slider .swiper-slide.is-featured .testimonial,
.testimonial:hover {
  background: #fff;
  border-color: var(--clr-line);
  box-shadow: var(--shadow-soft);
  text-align: center;
} */

.testimonial__quote {
  display: block;
  width: clamp(3.5rem, 5vw, 5.625rem);
  height: auto;
  margin-bottom: -1.75rem;
  margin-left: -0.35rem;
}

.testimonial__frame {
  display: inline-block;
  padding: 0.9375rem;
  background: #ebebeb;
  position: relative;
}

.testimonial__frame img {
  display: block;
  width: 9.625rem;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.testimonial__text {
  margin: 1.5rem 0 1rem;
  padding: 0;
  border: 0;
}

.testimonial__text p {
  margin: 0;
  max-width: 32ch;
  color: #565656;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.testimonial__name {
  color: #565656;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: clamp(1rem, 0.7rem + 1vw, 1.75rem);
}

.testimonial-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
}

/* 11. Social links ======================================================== */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid #c1c1c1;
  border-radius: 50%;
  color: #c1c1c1;
  font-size: 1.2rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), translate var(--dur) var(--ease);
}

.social__link:hover,
.social__link:focus-visible {
  background: var(--clr-amber);
  border-color: var(--clr-amber);
  color: #fff;
  translate: 0 -3px;
}

/* 12. Slider controls ===================================================== */
.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--clr-line);
  border-radius: 50%;
  background: #fff;
  color: var(--clr-navy);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: #fff;
}

.slider-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* Our pagination lives outside .swiper, so undo Swiper's absolute layout */
.testimonial-pagination.swiper-pagination-horizontal {
  position: static;
  inset: auto;
  width: auto;
  transform: none;
}

.swiper-pagination-bullet {
  width: 0.5625rem;
  height: 0.5625rem;
  margin: 0 !important;
  background: #c7c9d4;
  opacity: 1;
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.swiper-pagination-bullet-active {
  width: 1.875rem;
  background: var(--clr-navy);
  border-radius: var(--radius-pill);
}

/* 13. Inner-page banner & breadcrumb ====================================== */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  background-color: #12172d;
  background-image:
    linear-gradient(180deg, rgb(12 17 41 / 45%) 0%, rgb(14 19 42 / 82%) 100%),
    url("../assets/images/events/events-backdrop.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.page-hero__title {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 600;
}

.page-hero__text {
  max-width: 62ch;
  margin: 0 auto 1.25rem;
  color: rgb(255 255 255 / 78%);
  font-size: var(--fs-sm);
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgb(255 255 255 / 72%);
  font-size: var(--fs-xs);
}

.breadcrumb-nav li + li::before {
  content: "\F285"; /* bi-chevron-right */
  display: inline-block;
  margin-right: 0.5rem;
  font-family: bootstrap-icons, sans-serif;
  font-size: 0.7em;
  opacity: 0.7;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav a:focus-visible {
  color: var(--clr-amber);
}

.breadcrumb-nav [aria-current="page"] {
  color: var(--clr-amber);
}

/* 14. Content blocks ====================================================== */
.lead {
  max-width: 70ch;
  color: var(--clr-body);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.lead--center {
  margin-inline: auto;
  text-align: center;
}

.prose h3 {
  margin-top: 2rem;
  color: var(--clr-navy);
  font-size: var(--fs-h3);
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--clr-body);
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Icon feature card */
.feature-card {
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  background: #fff;
  transition: translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.feature-card:hover {
  translate: 0 -6px;
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.625rem;
  height: 3.625rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: rgb(22 44 156 / 8%);
  color: var(--clr-blue);
  font-size: 1.6rem;
}

.feature-card__title {
  margin-bottom: 0.6rem;
  color: var(--clr-navy);
  font-size: var(--fs-h4);
  font-weight: 700;
}

.feature-card__text {
  margin: 0;
  color: var(--clr-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* Stat tile */
.stat {
  height: 100%;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) 1rem;
  border-radius: var(--radius);
  background: var(--clr-surface-2);
  text-align: center;
}

.stat__value {
  display: block;
  color: var(--clr-navy);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
}

.stat__label {
  display: block;
  margin-top: 0.4rem;
  color: var(--clr-muted);
  font-size: var(--fs-sm);
}

/* Location / info card */
.info-card {
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  background: #fff;
}

.info-card__title {
  margin-bottom: 1rem;
  color: var(--clr-navy);
  font-size: var(--fs-h4);
  font-weight: 700;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--clr-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.info-list i {
  flex: 0 0 auto;
  margin-top: 0.15em;
  color: var(--clr-amber);
  font-size: 1.05em;
}

.info-list a:hover,
.info-list a:focus-visible {
  color: var(--clr-blue);
}

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 0;
  border-radius: var(--radius);
  background: var(--clr-surface-2);
}

/* 15. Forms (contact / certificate / sign-in) ============================= */
.form-panel {
  padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.75rem);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.form-panel--narrow {
  max-width: 35rem;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--clr-navy);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.field--light .field__input,
.field--light textarea.field__input {
  border-color: var(--clr-line);
  background: var(--clr-surface-2);
}

textarea.field__input {
  min-height: 8.75rem;
  resize: vertical;
}

select.field__input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c1c72'%3E%3Cpath d='M1.6 4.5a.75.75 0 0 1 1.06 0L8 9.84l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 5.56a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 0.875rem;
}

.form-check-label {
  color: var(--clr-body);
  font-size: var(--fs-xs);
}

.form-check-input:checked {
  background-color: var(--clr-blue);
  border-color: var(--clr-blue);
}

.field--light .field__error {
  color: #c62828;
}

.form-status {
  margin: 1rem 0 0;
  color: var(--clr-blue);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

/* 16. Accordion (FAQ) ===================================================== */
.faq .accordion-item {
  margin-bottom: 0.85rem;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.faq .accordion-button {
  padding: 1.1rem 1.35rem;
  background: #fff;
  color: var(--clr-navy);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
  background: var(--clr-surface-2);
  color: var(--clr-blue);
}

.faq .accordion-button:focus {
  box-shadow: none;
}

.faq .accordion-body {
  padding: 0 1.35rem 1.35rem;
  color: var(--clr-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* 17. Tabs ================================================================ */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0;
  border: 0;
  list-style: none;
}

.tab-nav .nav-link {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--clr-navy);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.tab-nav .nav-link:hover {
  border-color: var(--clr-blue);
}

.tab-nav .nav-link.active {
  background: var(--clr-blue);
  border-color: var(--clr-blue);
  color: #fff;
}

/* 18. Schedule table ====================================================== */
.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.schedule caption {
  padding-bottom: 0.75rem;
  color: var(--clr-muted);
  font-size: var(--fs-xs);
  text-align: left;
}

.schedule th,
.schedule td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--clr-line);
  text-align: left;
}

.schedule thead th {
  background: var(--clr-surface-2);
  color: var(--clr-navy);
  font-weight: 700;
  white-space: nowrap;
}

.schedule tbody tr:hover {
  background: var(--clr-cream);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.schedule tbody tr:last-child th,
.schedule tbody tr:last-child td {
  border-bottom: 0;
}

/* Map embed: a visible fallback frame plus a link out, so the section still
   works if the embed is blocked. */
.map-wrap {
  position: relative;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--clr-blue);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.map-link:hover,
.map-link:focus-visible {
  color: var(--clr-amber);
}

/* 19. Booking modal ======================================================= */
.booking-modal .modal-content {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.booking-modal .modal-header {
  align-items: flex-start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem) clamp(1.25rem, 1rem + 1vw, 1.85rem) 0;
  border-bottom: 0;
}

.booking-modal .modal-title {
  margin: 0;
  color: var(--clr-navy);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.booking-modal .modal-body {
  padding: 1rem clamp(1.25rem, 1rem + 1vw, 1.85rem) clamp(1.25rem, 1rem + 1vw, 1.85rem);
}

.booking-modal__event {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--clr-surface-2);
  color: var(--clr-navy);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.booking-modal__event i {
  color: var(--clr-amber);
}

.booking-modal__note {
  margin: 1rem 0 0;
  color: var(--clr-muted);
  font-size: var(--fs-xs);
}

/* 20. Back to top ========================================================= */
.to-top {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.75rem);
  bottom: clamp(0.75rem, 2vw, 1.75rem);
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--clr-navy);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(12 28 114 / 35%);
  opacity: 0;
  translate: 0 12px;
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  translate: 0 0;
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--clr-amber);
}