/* WHOLE ROW: menu + search+flags on one flex line */
.container-header .grid-child.container-nav {
  display: flex !important;      /* make the row a flex container */
  align-items: center;
  flex-wrap: nowrap;
}

/* MENU + SEARCH BLOCK as separate flex items */
.container-header .grid-child.container-nav > * {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0;
}

/* SEARCH AREA (search module + GTranslate) pushed to the right */
.container-header .grid-child.container-nav .container-search {
  margin-left: auto !important;  /* this moves the whole search block to the right */
  display: flex !important;      /* search + flags in a row */
  align-items: center;
  gap: 0.5rem;
}

/* Inside the search area: search + flags side by side */
.container-header .grid-child.container-nav .container-search > * {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0;
}


/* MOBILE + SMALL TABLET: stack menu and search/flags, allow flags to wrap */
@media (max-width: 900px) {

  .container-header .grid-child.container-nav {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  .container-header .grid-child.container-nav .container-search {
    margin-left: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;   /* or center */
    row-gap: 0.25rem;
    column-gap: 0.25rem;
  }

  .container-header .grid-child.container-nav .container-search > * {
    flex: 0 1 auto;
    width: auto !important;
    margin: 0;
  }

  .container-header .grid-child.container-nav .container-search *,
  .container-header .grid-child.container-nav .container-search a,
  .container-header .grid-child.container-nav .container-search span {
    white-space: normal !important;
  }
}



.back-to-top-link {
  bottom:2.5rem;
  }

/* Full-width background strip behind bottom-a, content stays grid-width */
.container-bottom-a {
  position: relative;
  z-index: 0;              /* ensure pseudo-element can sit behind */
}

.container-bottom-a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;            /* full viewport width */
  height: 100%;            /* same height as the row */
  background-color: #C7532D;
  z-index: -1;             /* behind the modules */
}

/* Bottom-a modules: blend into the coloured strip, no card look */
.container-bottom-a .bottom-a.card {
  background-color: #C7532D;   /* same as the strip */
  border: none;
  box-shadow: none;
}

/* Optional: adjust inner spacing so it doesn’t look like a box */
.container-bottom-a .bottom-a.card {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Make text and headings readable on the dark background */
.container-bottom-a .bottom-a.card,
.container-bottom-a .bottom-a.card * {
  color: #ffffff;
}

.container-bottom-a .bottom-a.card h3,
.container-bottom-a .bottom-a.card h4,
.container-bottom-a .bottom-a.card .moduletitle {
  color: #ffffff;
}

/* Add space between article images and text in full article view */
.left.item-image {
  padding-right: 30px;
}


/*Back to top link*/
.back-to-top-link {
  color:#ffffff !important;
  background-color: #c7532d !important;
} 


/* Desktop: open MetisMenu dropdowns on hover */
@media (min-width: 992px) {
  /* When hovering a parent item, show its submenu */
  .mod-menu_dropdown-metismenu .metismenu-item.deeper.parent:hover > .mm-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    overflow: visible !important;
  }

  /* Optional: make the whole parent li react to hover, not just the tiny arrow */
  .mod-menu_dropdown-metismenu .metismenu-item.deeper.parent > a {
    cursor: default;
  }
}
/* Dropdown background + text color */
.mod-menu_dropdown-metismenu .mm-collapse {
    background-color: #C7532D !important;
}

/* Links inside the dropdown */
.mod-menu_dropdown-metismenu .mm-collapse a {
    color: #ffffff !important;
}

/* On hover inside dropdown */
.mod-menu_dropdown-metismenu .mm-collapse a:hover {
    color: #ffffff !important;
    background-color: #b34728 !important; /* slightly darker shade */
}


/* Custom button color for link directory */
.btn-primary {
    background-color: #C7532D !important;
    border-color: #C7532D !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #b34728 !important; /* slightly darker hover */
    border-color: #b34728 !important;
    color: #ffffff !important;
}


/*Weblinks Category Title*/
.com-content-categories__item-title-wrapper {
    font-size: 1.5rem;
}

@supports (display: grid) {
    .blog-items .blog-item {
        border-bottom: 1px solid #c7532d;
    }
}

/* 500 - regular */
@font-face {
  font-family: 'MyFont';
  src: url('../fonts/myfont/MyFont-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 500 - italic */
@font-face {
  font-family: 'MyFont';
  src: url('../fonts/myfont/MyFont-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* 700 - regular */
@font-face {
  font-family: 'MyFont';
  src: url('../fonts/myfont/MyFont-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 700 - italic */
@font-face {
  font-family: 'MyFont';
  src: url('../fonts/myfont/MyFont-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
body {
  font-family: 'MyFont', Arial, sans-serif;
  font-weight: 500;
}

/* Headings bolder, using the 700 weight */
h1, h2, h3, h4, h5, h6 {
  font-family: 'MyFont', Arial, sans-serif;
  font-weight: 700;
}
