/*------------------------------------------------------------------
    File Name: custom.css
-------------------------------------------------------------------*/

/** ADD YOUR AWESOME CODES HERE **/


.swiper
{
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
  z-index: 0;
}

.swiper-slide
{
  background-position: center;
  background-size: cover;
  width: 150px;
  height: auto;
}

.swiper-slide img
{
  display: block;
  width: 100%;
}

/* Style select.field_custom to match input.field_custom */
select.field_custom {
  border: solid #e1e1e1 1px;
  width: 100%;
  background: #f8f8f8;
  min-height: 50px;
  padding: 5px 20px;
  line-height: normal;
  border-radius: 0px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #737373;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23737373" stroke-width="2"%3E%3Cpolyline points="6 9 12 15 18 9"%3E%3C/polyline%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 45px;
}

/* Keep filled fields visually consistent on this form */
.form_contant .field_custom.is-filled {
  background-color: #d9f1ff;
  color: #000000;
  border-color: #9fd4f5;
}

.form_contant .field_custom.is-filled::placeholder {
  color: #000000;
}

/* Center committee section on page */
.section.padding_layout_1.light_silver.pt-3 .row.center {
  justify-content: center !important;
}

.section.padding_layout_1.light_silver.pt-3 .main_heading .row.center {
  justify-content: center !important;
  display: flex;
  flex-wrap: wrap;
}

/* Form two-column layout fix */
.appointment_form .field {
  padding: 0 15px;
  margin-bottom: 0;
}

.appointment_form .col-12 h4 {
  margin-bottom: 15px;
  margin-top: 10px;
}

.appointment_form fieldset > .row > .col-lg-6 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Make textarea taller in info section */
.appointment_form textarea.field_custom {
  min-height: 200px;
}

/* Fix dropdown menu overflow for rightmost menu items in lg mode */
@media (min-width: 992px) {
  #navbar_menu > ul > li:nth-last-child(-n+2):hover > ul {
    left: auto;
    right: 0;
  }
}

/* Fix mobile card alignment - center cards properly */
.row.center {
  justify-content: center !important;
  display: flex;
  flex-wrap: wrap;
}

/* Ensure trainer cards are aligned properly on mobile */
@media (max-width: 767px) {
  .row.center > [class*="col-6"] {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  
  .row.center > [class*="col-6"] .blog_colum {
    max-width: 100%;
    align-self: flex-start;
  }
  
  /* Ensure consistent vertical alignment for all cards */
  .row.center {
    align-items: flex-start;
  }
  
  .row.center > [class*="col-"] {
    align-self: flex-start;
  }

  .design {
  margin-top: -40px;
  position: absolute;
    left: 50%;
  transform: translateX(-50%);
}
}
/* ++++++++++++++photo carousel resultat and index pages ++++++++++++++ */
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */



/* Animation with 3-second pause per image - 14 slides */
@keyframes scroll {
  0% { transform: translateX(0); }
  3.57% { transform: translateX(0); }
  7.14% { transform: translateX(calc(-310px * 1)); }
  10.71% { transform: translateX(calc(-310px * 1)); }
  14.28% { transform: translateX(calc(-310px * 2)); }
  17.85% { transform: translateX(calc(-310px * 2)); }
  21.42% { transform: translateX(calc(-310px * 3)); }
  24.99% { transform: translateX(calc(-310px * 3)); }
  28.56% { transform: translateX(calc(-310px * 4)); }
  32.13% { transform: translateX(calc(-310px * 4)); }
  35.7% { transform: translateX(calc(-310px * 5)); }
  39.27% { transform: translateX(calc(-310px * 5)); }
  42.84% { transform: translateX(calc(-310px * 6)); }
  46.41% { transform: translateX(calc(-310px * 6)); }
  49.98% { transform: translateX(calc(-310px * 7)); }
  53.55% { transform: translateX(calc(-310px * 7)); }
  57.12% { transform: translateX(calc(-310px * 8)); }
  60.69% { transform: translateX(calc(-310px * 8)); }
  64.26% { transform: translateX(calc(-310px * 9)); }
  67.83% { transform: translateX(calc(-310px * 9)); }
  71.4% { transform: translateX(calc(-310px * 10)); }
  74.97% { transform: translateX(calc(-310px * 10)); }
  78.54% { transform: translateX(calc(-310px * 11)); }
  82.11% { transform: translateX(calc(-310px * 11)); }
  85.68% { transform: translateX(calc(-310px * 12)); }
  89.25% { transform: translateX(calc(-310px * 12)); }
  92.82% { transform: translateX(calc(-310px * 13)); }
  96.39% { transform: translateX(calc(-310px * 13)); }
  100% { transform: translateX(calc(-310px * 14)); }
}

/* Slider styling */
.slider {
  background: white;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
  height: 400px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 310px; /* ← NEW WIDTH */
}

.slider::before,
.slider::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  content: "";
  height: 0;
  position: absolute;
  width: 80px; /* scaled down from 200px */
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

.slider .slide-track {
  animation: scroll 84s ease-in-out infinite;
  display: flex;
  width: calc(310px * 14); /* duplicated slides */
}

.slider .slide {
  height: 400px;
  width: 310px; /* ← NEW SLIDE WIDTH */
}

/* Mobile: Facebook widget height */
@media (max-width: 767px) {
  .fb-page,
  .fb-page > span,
  .fb-page > span > iframe {
    height: 300px !important;
  }
}

/* Shared custom tooltip styling (replaces default title tooltip) */
[data-easter-tooltip] {
  position: relative;
}

[data-easter-tooltip]::after {
  content: attr(data-easter-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.95);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid #37e303;
  padding: 7px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 1200;
}

[data-easter-tooltip].has-easter-egg::after {
  padding: 7px 10px 7px 34px;
  background-image: url('/images/Easter%20Running%20Sticker.gif');
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: 9px center;
}

[data-easter-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #37e303;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 1200;
}

[data-easter-tooltip]:hover::after,
[data-easter-tooltip]:hover::before,
[data-easter-tooltip]:focus::after,
[data-easter-tooltip]:focus::before,
[data-easter-tooltip]:focus-within::after,
[data-easter-tooltip]:focus-within::before {
  opacity: 1;
  visibility: visible;
}

/* Legacy pseudo-element tooltips are disabled to prevent duplicates with JS overlay tooltips. */
[data-easter-tooltip]::after,
[data-easter-tooltip]::before {
  display: none !important;
  content: none !important;
}

/* JS-driven tooltip overlay for elements like img/iframe/input */
.mac-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 12px));
  background: rgba(20, 20, 20, 0.95);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid #37e303;
  padding: 7px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease;
}

.mac-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.mac-tooltip.has-easter-egg {
  padding: 7px 10px 7px 34px;
  background-image: url('/images/Easter%20Running%20Sticker.gif');
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: 9px center;
}

