/* =============================================
   SECTION NAVIGATION (Page template with ACF menu)
   Based on suppliers.css design
============================================= */

/* -----------------------------------------------
   BREADCRUMBS
----------------------------------------------- */

.page-breadcrumbs-wrapper {
  padding: 12px 0;
    margin-top: 1rem;
}

.single-page-content .products .container {
	    padding-inline-start: 0px;
}


/* When hero exists, remove the top margin */
.general-hero + .page-breadcrumbs-wrapper {
  margin-top: 0;
}

.page-breadcrumbs-wrapper .container {
  max-width: var(--content-width, 1200px);
  margin-inline: auto;
  padding-block: 0 0px; padding-inline: 0px 16px;
}

.page-breadcrumbs-wrapper #breadcrumbs {
  margin: 0;
  font-size: 1.1rem;
  color: #666;
}

.page-breadcrumbs-wrapper #breadcrumbs a {
  color: var(--global-color-blue);
  text-decoration: none;
}

.page-breadcrumbs-wrapper #breadcrumbs a:hover {
  text-decoration: underline;
}

/* Container */
.page-section {
  padding-bottom: 40px;
}


.section-top-wrapper {
  margin-bottom: 0px;
}


/* -----------------------------------------------
   TOP MENU (Plain text with underline)
----------------------------------------------- */

.section-top-wrapper {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    margin-top: calc(1rem - 12px);
    margin-bottom: 1rem;
}


.section-top-wrapper .section-navigation-menu {
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 0;
    justify-content: center;
}

.section-top-wrapper .section-navigation-menu > li {
  margin: 0;
  padding: 0;
  position: relative;
}

.section-top-wrapper .section-navigation-menu li ul {
  display: none;
}
.section-top-wrapper .section-navigation-menu li.current-menu-item ul {
  display: block;
}

/* Base link (top menu) */
.section-top-wrapper .section-navigation-menu > li > a {
  display: block;
  padding: 14px 28px;
  font-size: 1.4rem;
  color: #000;
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s ease;
}

/* Hover */
.section-top-wrapper .section-navigation-menu > li > a:hover {
  color: #000;
}

/* Underline element (top) */
.section-top-wrapper .section-navigation-menu > li > a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--global-color-blue);
  transition: width 0.28s ease;
}

/* Animate underline on hover (top) */
.section-top-wrapper .section-navigation-menu > li > a:hover::after {
  width: 100%;
}

/* Active page underline (top) */
.section-top-wrapper .section-navigation-menu > li.current-menu-item > a::after,
.section-top-wrapper .section-navigation-menu > li.current_page_item > a::after,
.section-top-wrapper
  .section-navigation-menu
  > li.current_page_parent
  > a::after,
.section-top-wrapper
  .section-navigation-menu
  > li.current-menu-ancestor
  > a::after,
.section-top-wrapper
  .section-navigation-menu
  > li.current-page-ancestor
  > a::after {
  width: 100%;
}

/* Stronger active text (top) */
.section-top-wrapper .section-navigation-menu > li.current-menu-item > a,
.section-top-wrapper .section-navigation-menu > li.current_page_item > a,
.section-top-wrapper .section-navigation-menu > li.current_page_parent > a,
.section-top-wrapper .section-navigation-menu > li.current-menu-ancestor > a,
.section-top-wrapper .section-navigation-menu > li.current-page-ancestor > a {
  color: var(--global-color-blue);
  font-weight: 500;
}

/* -----------------------------------------------
   BOTTOM SUBNAV (WHITE BAR - PLAIN TEXT)
----------------------------------------------- */

.section-subnav {
	margin-top: 0px;
	background: #ffffff;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 0;
    justify-content: flex-start;  
}

.section-subnav-inner {
  max-width: var(--content-width, 1200px);

  padding: 0;
}

.section-subnav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 20px 0 60px;
    padding: 0;
    justify-content: flex-start;
	margin-inline-start: -20px;
}

.section-subnav-item {
  margin: 0;
  position: relative;
}

/* STATIC bullet (default) */
.section-subnav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: -3px;               /* centers bullet on divider axis */
  top: 50%;
  transform: translateY(-50%);

  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--global-color-blue);
}




/* Base link (plain text) */
.section-subnav-item a {
    display: block;
    padding: 6px 19px;
    font-size: 1.2rem;
    text-decoration: none;
    color: #000;
    white-space: nowrap;
    transition: color 0.25s ease;
}

/* Hover */
.section-subnav-item a:hover {
  color: #000;
}

/* Active item - bold text */
.section-subnav-item.is-current a, .section-subnav-item:hover a {
  color: var(--global-color-blue);

}

/* -----------------------------------------------
   MOBILE TWEAKS
----------------------------------------------- */

@media (max-width: 767.98px) {
  .page-breadcrumbs-wrapper {
    padding: 20px 0 12px;
  }

  .section-top-wrapper .section-navigation-menu {
    width: 100%;
    overflow: visible;
    white-space: normal;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .section-top-wrapper .section-navigation-menu > li > a {
    padding: 12px 16px;
    font-size: 17px;
    line-height: 1.35;
  }

  .section-top-wrapper .section-navigation-menu > li > a:hover::after,
  .section-top-wrapper
    .section-navigation-menu
    > li.current-menu-item
    > a::after,
  .section-top-wrapper
    .section-navigation-menu
    > li.current_page_item
    > a::after {
    width: 100%;
  }

  .section-subnav-list {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 4px;
    margin-inline-start: 0;
    box-sizing: border-box;
  }

  .section-subnav-inner {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .section-subnav {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .section-subnav-item a {
    padding: 9px 10px;
    font-size: 17px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .page-section .section-content .entry-content ul,
  .page-section .section-content .entry-content ol {
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 18px;
    padding-block: 0 1.25rem;
  }

  .general-hero-title {
    font-size: clamp(38px, 9vw, 44px);
    line-height: 1.15;
  }
}

/* -----------------------------------------------
   FILES & MEDIA KIT SECTION
----------------------------------------------- */

.section-files-block {
  padding: 32px 0 48px;
  margin-top: 20px;
}

.section-files-block .container {
  max-width: var(--content-width, 1200px);
  margin-inline: auto;
  padding: 0 16px;
}

.section-files-inner {
  display: block;
}

.section-files-left {
  flex: 1 1 60%;
}

.section-files-right {
  flex: 0 0 auto;
  display: block;
  width: fit-content;
  margin-top: 40px;
}

/* Files list */
.section-files-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--global-color-blue);
}

.section-files-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-file-item + .section-file-item {
  margin-top: 6px;
}

.section-file-item {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.section-file-item:last-child {
  border-bottom: none;
}

.section-file-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  text-decoration: underline;
  color: #000;
  padding-inline-end: 26px;
  font-weight: 700;
}

.section-file-link::after {
  content: "";
  width: 18px;
  height: 18px;
  background: url("../images/open-file.svg") center/contain no-repeat;
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}

.section-file-link:hover {
  text-decoration: underline;
}

/* Media kit box */
.section-media-kit {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 28px;
  background: var(--global-color-blue);
  color: #ffffff;
  text-decoration: none;
  min-width: 340px;
}

.section-media-kit:hover {
  filter: brightness(1.05);
  color: #fff;
}

/* Icon with white circle background */
.section-media-kit .media-kit-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  position: relative;
}

.section-media-kit .media-kit-icon::before {
  content: "";
  display: block;
  width: 55px;
  height: 55px;
  background: url("../images/media-download.svg") center/contain no-repeat;
}

/* Right text part */
.section-media-kit .media-kit-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  gap: 4px;
}

.section-media-kit .media-kit-label {
  font-size: 1.6rem;
  font-weight: 700;
}

.section-media-kit .media-kit-filename {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .section-files-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .section-files-right {
    justify-content: flex-start;
    align-self: flex-start;
  }

  .section-media-kit {
    min-width: unset;
    width: 100%;
  }

  .section-files-title {
    font-size: 2rem;
  }

  .section-file-link {
    font-size: 1.2rem;
  }
}
