/**
 * Local Interaction Overrides
 * CSS support for JS-driven interactive states on offline pages.
 */

/* ---- Navigation Mega-Menu ---- */
.nav_menu-block--level-2 {
  display: none !important;
}
.nav_menu-block--level-2.is-open {
  display: flex !important;
}

/* ---- Mobile Menu Off-Canvas ---- */
.header.header--off-canvas .nav {
  transform: translateX(0);
}

/* ---- Search Open ---- */
.header.header--search-open .header_search {
  display: block !important;
}

/* ---- Cookie Notice ---- */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* ---- Account Panel ---- */
.header_panel {
  display: none;
}
.header_panel.is-open {
  display: block;
}

/* ---- Dropdown ---- */
.dropdown .dropdown-content {
  display: none;
}
.dropdown.is-open .dropdown-content {
  display: block;
}

/* ---- Header Sticky ---- */
.header.header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}
.header.header--hidden {
  transform: translateY(-100%);
}

/* ---- Trending Carousel (translateX) ---- */
.trends-carousel .carousel {
  /*overflow: hidden;*/
  position: relative;
}
.trends-carousel .carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}
.trends-carousel .carousel__list {
  display: flex;
  width: max-content;
  align-items: stretch;
}

/* All slides: small inactive state */
.trends-carousel .slide {
  flex: 0 0 auto;
  width: 230px;
  height: 420px;
  margin-right: 15px;
  box-sizing: border-box;
  transition: width 0.5s ease-in-out;
  visibility: visible !important;
  overflow: hidden;
}
.trends-carousel .slide .slide__container {
  height: 100%;
}
.trends-carousel .slide .slide__content {
  height: 100%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 10px 3px rgba(0,0,0,0.25);
  position: relative;
}
.trends-carousel .slide .slide__content__box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: rgba(0,0,0,0.85);
  border-right: 5px solid #e6003e;
  color: #fff;
  height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  position: relative;
}
.trends-carousel .slide .slide__title {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.trends-carousel .slide .slide__description {
  display: none;
}
.trends-carousel .slide .slide__content__link {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  text-decoration: none;
  background-color: transparent;
  border: 2px solid #fff;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trends-carousel .slide .slide__content__link .svg-icon {
  width: 20px;
  height: 14px;
}
.trends-carousel .slide .slide__content__link .svg-icon path,
.trends-carousel .slide .slide__content__link .svg-icon polyline {
  stroke: #fff;
}

/* Active slide: large with text + image */
.trends-carousel .slide.is-active {
  width: 680px;
}
.trends-carousel .slide.is-active .slide__content {
  background-size: cover;
  background-position: right center;
}
.trends-carousel .slide.is-active .slide__content__box {
  width: 55%;
  background-color: rgba(48,48,48,0.95);
}
.trends-carousel .slide.is-active .slide__description {
  display: block;
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.85;
}
.trends-carousel .slide.is-active .slide__title {
  font-size: 1.75rem;
}


/* ---- Glide / News Carousel ---- */
.glide-container .glide__track {
  overflow: hidden;
}
.glide-container .glide-carousel {
  position: relative;
}
.glide__slides {
  display: flex !important;
  overflow: hidden;
  scroll-behavior: smooth;
  flex-wrap: nowrap !important;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}
.glide__slide {
  flex: 0 0 350px !important;
  width: 350px !important;
  max-width: 350px !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
.glide__slide .card {
  height: 100%;
}


/* ---- NProgress removal ---- */
#nprogress {
  display: none !important;
}

/* ---- Foleon Overlay Close Button ---- */
.close-button {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(0,0,0,0.5) !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
}
.close-button:hover {
  background: rgba(230, 0, 62, 0.8) !important;
}
.close-button::before {
  content: "×";
  line-height: 1;
}

/* ---- People Page Grid ---- */
.contacts-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 30px !important;
  margin-top: 40px !important;
}
.contact-card {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  background-color: #fff !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border: 1px solid #eee !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 400px !important;
  width: 100% !important;
  height: 100% !important;
}
.contact-card--background-image {
  background-size: cover !important;
  background-position: center top !important;
  justify-content: flex-end !important;
}
.contact-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.contact-card_content {
  padding: 20px !important;
  position: relative !important;
  z-index: 2 !important;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0) 100%) !important;
  margin-top: auto !important; /* Push to bottom if flex */
}
.contact-card_title {
  margin: 10px 0 5px 0 !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  color: #fff !important; /* White text for dark background */
}
.contact-card_text {
  font-size: 0.9rem !important;
  color: #eee !important;
}
.contact-card_icon {
  display: none !important; /* Hide the arrow icon to keep it clean */
}
.dot--red {
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  background-color: #e6003e !important;
  border-radius: 50% !important;
  margin: 0 8px !important;
  vertical-align: middle !important;
}

/* ---- People Page Tabs ---- */
.tab-triggers {
  display: flex !important;
  border-bottom: 1px solid #ddd !important;
  margin-bottom: 30px !important;
}
.button_tab {
  padding: 15px 30px !important;
  background: none !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  color: #666 !important;
  transition: all 0.3s !important;
}
.button_tab.active {
  color: #303030 !important;
  border-bottom-color: #e6003e !important;
}
.button_tab:hover {
  color: #303030 !important;
}

/* Fix for Search/Filter button in header */
.tab-triggers--w-filter {
  justify-content: space-between !important;
  align-items: center !important;
}
