/**
 * 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;
}

/* ---- Location Map Cards ---- */
.location-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.location-card_image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.location-card_content {
  padding: 20px;
}
.location-card_title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #303030;
}
.location-card_text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* ---- Expertise/Sector Cards ---- */
.sector-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  box-sizing: border-box;
}
.sector-card:hover {
  border-color: #e6003e;
  box-shadow: 0 10px 30px rgba(230,0,62,0.1);
  transform: translateY(-5px);
}
.sector-card_icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: #e6003e;
}
.sector-card_title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #303030;
}
.sector-card_description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* ---- News/Publication Cards ---- */
.publication-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.publication-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.publication-card_image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.publication-card_content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.publication-card_date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.publication-card_title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #303030;
  line-height: 1.4;
}
.publication-card_excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  flex: 1;
}
.publication-card_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e6003e;
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}
.publication-card:hover .publication-card_link {
  gap: 12px;
}

/* ---- Team/People Profile Cards ---- */
.profile-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.profile-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.profile-card_image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}
.profile-card_content {
  padding: 20px;
}
.profile-card_name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #303030;
}
.profile-card_role {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}
.profile-card_location {
  font-size: 0.85rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Accordion/FAQ Styles ---- */
.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}
.accordion-header {
  background: #fff;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}
.accordion-header:hover {
  background: #f8f8f8;
}
.accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #303030;
  margin: 0;
}
.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: #666;
}
.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
}
.accordion-content {
  display: none;
  padding: 0 25px 20px 25px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.accordion-item.is-open .accordion-content {
  display: block;
}
.accordion-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* ---- Stats/Numbers Section ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #e6003e;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Timeline/History ---- */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #e6003e;
  border-radius: 50%;
}
.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e6003e;
  margin-bottom: 10px;
}
.timeline-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, #e6003e 0%, #c70036 100%);
  color: #fff;
  padding: 80px 40px;
  text-align: center;
  border-radius: 16px;
  margin: 60px 0;
}
.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #fff;
}
.cta-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
}
.cta-button {
  display: inline-block;
  background: #fff;
  color: #e6003e;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ---- Breadcrumb Navigation ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
}
.breadcrumb-item {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumb-item:hover {
  color: #e6003e;
}
.breadcrumb-separator {
  color: #ccc;
  font-size: 0.8rem;
}
.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* ---- Filter Tags ---- */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.filter-tag {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.filter-tag:hover,
.filter-tag.active {
  background: #e6003e;
  border-color: #e6003e;
  color: #fff;
}

/* ---- Video Container ---- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  margin: 30px 0;
}
.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- Icon Grid ---- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  margin: 40px 0;
}
.icon-item {
  text-align: center;
  padding: 20px;
}
.icon-item_icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px auto;
  color: #e6003e;
}
.icon-item_text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* ---- Contact Info Card ---- */
.contact-info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-info-item:last-child {
  margin-bottom: 0;
}
.contact-info-icon {
  width: 24px;
  height: 24px;
  color: #e6003e;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-content {
  flex: 1;
}
.contact-info-label {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.contact-info-value {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
.contact-info-value a {
  color: #e6003e;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-info-value a:hover {
  color: #c70036;
}

/* ---- Animated Entrance ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}
.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: 1em;
}
.skeleton-image {
  height: 200px;
  width: 100%;
  margin-bottom: 1em;
}

/* ---- Print Styles ---- */
@media print {
  .header,
  .footer,
  .cookie-notice,
  .nav_menu-block--level-2,
  .button {
    display: none !important;
  }
  .section {
    padding: 20px 0 !important;
  }
  body {
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}
