/* ANDYMEDIA */

/* Margin på nyhetsbilder i artiklarna */
.entry-image, .entry-gallery, .entry-video, .entry-audio, .entry-link {
    margin-bottom: 30px;
    margin-right: 30px;
}

/* Fix till front end editing döljer per default */
.sp-pagebuilder-addon.sp-pagebuilder-addon-disabled {
    position: relative !important;
}

div.is-sticky .sp-default-logo { 
  max-height: 60px;
}

#sp-header {
    background: #ffffff;
    height: 100px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.0);
    position: relative;
    width: 100% !important;
    z-index: 10;
}

#sp-top-bar {
    padding: 9px 0;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #ffffff;
}

/* iCagenda, fixar bakgrunder på event */

.ic-event-header {
    background: #ffffff !important;
    border: 1px solid #ffffff;
}

.ic-info {
    background: #ffffff !important;
    border: 1px solid #fff;
}

/* MENYSTYRNING - HUVUDMENY */

/* Ta bort pilar */
.sp-megamenu-parent > li.sp-has-child > a:after {
  content: none !important;
}

/* Menylänk – gemensamt */
.sp-megamenu-parent > li > a {
  background-color: transparent !important;
  color: #000;
  position: relative;
  text-decoration: none;
  display: inline-block; /* Viktigt för underline */
  z-index: 1;
}

/* Underline med ::before */
.sp-megamenu-parent > li > a::before {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #f42451;
  transition: width 0.3s ease;
  z-index: 0;
}

/* Visa underline på hover och aktiv */
.sp-megamenu-parent > li:hover > a::before,
.sp-megamenu-parent > li.active > a::before {
  width: 100%;
}

/* Extra säkerhet – hover ska inte störa färg */
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a {
  background-color: transparent !important;
  color: #000;
}

/* SLUT FÖR HUVUDMENY */


/* MENYSTYRNING - UNDERMENYER */

/* === UNDERSMENYER / DROPDOWN – MED UNDERLINE OCH ANIMERAD PIL === */

/* Grundstruktur för dropdown */
.sp-megamenu-parent .sp-dropdown {
  display: none;
  position: absolute;
  z-index: 999;
  top: 70px;
  margin: 0;
}

/* Visa dropdown vid hover */
.sp-megamenu-parent .sp-has-child:hover > .sp-dropdown {
  display: block;
}

/* Inre container med skugga och rundade hörn */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  background-color: #fff;
  border-radius: 6px;
}

/* Lista med undermenyobjekt */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Varje undermenylänk */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item {
  display: block;
  position: relative;
  margin: 0;
}

/* Länkstil – med underline efter textens bredd */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  color: #000;
  background-color: transparent;
  display: inline-block;
  padding: 10px 15px;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 1;
}

/* Underline med ::before */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #f42451;
  transition: width 0.3s ease;
  z-index: 0;
}

/* Visa underline vid hover/aktiv länk */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover::before,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a::before {
  width: 100%;
}

/* Textfärg vid hover */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
  color: #f42451;
  background-color: transparent;
}

/* Högerpil för undermeny med undermeny */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-items .sp-has-child > a::after {
  content: "\f105"; /* Font Awesome: chevron right */
  font-family: "FontAwesome";
  font-size: 14px;
  float: right;
  padding-left: 10px;
  color: #999;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Pil-animation vid hover */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-items .sp-has-child > a:hover::after {
  color: #f42451;
  transform: translateX(4px); /* glider åt höger */
}

/* GET A NEWSLETTER KNAPP OCH UTSEENDE FRAMSIDAN  */

  .gan-form {
    max-width: 400px;
    font-family: sans-serif;
  }

  .gan-group {
    margin-bottom: 1em;
  }

  .gan-form label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 500;
  }

  .gan-form input[type="text"],
  .gan-form input[type="email"] {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .gan-btn {
    background-color: #ec1657;
    color: white;
    border: none;
    padding: 0.45em 1.2em;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .gan-btn:hover {
    background-color: #000;
    color: #fff;
  }