/* SASMA homepage — single stylesheet */

:root {
  --blue: #409dc1;
  --blue-dark: #0062a1;
  --text: #333;
  --muted: #999;
  --bg: #fff;
  --footer: #2a2a2a;
  --footer-mid: #3a3a3a;
  --max: 960px;
  --font: "Oxygen", Arial, Tahoma, sans-serif;
}

@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 400;
  src: local("Oxygen Regular"), local("Oxygen-Regular"),
    url("../fonts/2sDfZG1Wl4LcnbuKjk0m.woff2") format("woff2");
}

@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 700;
  src: local("Oxygen Bold"), local("Oxygen-Bold"),
    url("../fonts/2sDcZG1Wl4LcnbuCNWgzaGW5.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font: 12px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--text);
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: 22px;
  line-height: 1.35;
}

h2 {
  font-size: 18px;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

h3 {
  font-size: 14px;
}

p {
  margin: 0 0 10px;
}

.page {
  min-height: 100vh;
  background: #fff;
}

.top-line {
  height: 4px;
  background: var(--blue);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
}

/* Header + menu */
.site-header {
  padding: 16px 0 8px;
}

.header__inner {
  position: relative;
}

.logo img {
  max-height: 90px;
  width: auto;
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 38px;
  border: 0;
  background: var(--blue);
  cursor: pointer;
  padding: 0;
}

.site-menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  margin-top: 12px;
}

#megaMenu .root {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}

#megaMenu .root > .item {
  position: relative;
}

#megaMenu .root > .item > a {
  display: block;
  cursor: pointer;
}

#megaMenu .root > .item > a span {
  display: block;
  padding: 0 18px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

#megaMenu .root > .item.selected > a,
#megaMenu .root > .item.rmHover > a,
#megaMenu .root > .item:hover > a {
  background: var(--blue);
}

#megaMenu .root > .item.selected > a span,
#megaMenu .root > .item.rmHover > a span,
#megaMenu .root > .item:hover > a span {
  color: #fff;
}

#megaMenu .root > .item > a .navarrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}

#megaMenu .category,
#megaMenu .leaf {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 40;
  min-width: 220px;
  max-width: 340px;
  padding: 6px 10px 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
}

#megaMenu .root > .item.rmHover > .category,
#megaMenu .root > .item:hover > .category {
  display: block;
}

#megaMenu .category .item.haschild {
  position: relative;
}

#megaMenu .category .item.rmHover > .leaf,
#megaMenu .category .item:hover > .leaf {
  display: block;
  position: static;
  border: 0;
  padding: 0 0 0 10px;
  background: transparent;
  min-width: 0;
  max-width: none;
}

#megaMenu .category a,
#megaMenu .leaf a {
  display: block;
  cursor: pointer;
}

#megaMenu .category a span,
#megaMenu .leaf a span {
  display: block;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  line-height: 1.4;
  white-space: normal;
  border-bottom: 1px solid #eee;
}

#megaMenu .leaf a span {
  font-weight: 400;
  padding-left: 10px;
}

#megaMenu .category a:hover span,
#megaMenu .leaf a:hover span {
  color: var(--blue);
}

/* Slider */
.home-slider {
  position: relative;
  max-width: 1600px;
  height: 420px;
  margin: 0 auto;
  overflow: hidden;
  background: #eee;
}

.home-slider__track {
  height: 100%;
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.home-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slider__prev,
.home-slider__next {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.home-slider__prev {
  left: 10px;
}

.home-slider__next {
  right: 10px;
}

.home-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.home-slider__dot.is-active {
  background: #fff;
}

/* Content */
.content {
  padding: 24px 12px 40px;
}

.panel {
  margin-bottom: 28px;
}

.home-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.welcome__badge {
  margin-top: 12px;
}

.portal__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.portal__action,
.btn,
.dnnPrimaryAction {
  display: inline-block;
  padding: 7px 14px;
  background: linear-gradient(#5bb5d6, var(--blue));
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  border-radius: 3px;
  text-align: center;
  border: 0;
}

.portal__hint {
  color: var(--muted);
}

.events-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 16px;
}

.event-card {
  width: 280px;
  max-width: 100%;
}

.event-card__meta {
  color: var(--muted);
  line-height: 1.35;
  margin: 6px 0 10px;
}

.events-more {
  text-align: center;
  margin-top: 18px;
}

.quicklinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 12px;
}

.quicklinks li {
  width: 180px;
  max-width: 100%;
  text-align: center;
}

.quicklinks img {
  max-height: 120px;
  width: auto;
}

.quicklinks p {
  margin-top: 8px;
  color: #555;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #fff;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
  min-height: 56px;
}

.copyright {
  margin: 0;
  color: #fff;
}

.Social-Links {
  display: flex;
  gap: 4px;
}

.Social-Links .iconFacebook,
.Social-Links .iconTwitter,
.Social-Links .iconLinkedIn {
  width: 40px;
  height: 40px;
  display: inline-block;
  background: url("../img/socialicons.png") no-repeat;
}

.Social-Links .iconFacebook {
  background-position: 0 0;
}

.Social-Links .iconTwitter {
  background-position: -42px 0;
}

.Social-Links .iconLinkedIn {
  background-position: -546px 0;
}

/* Mobile */
@media (max-width: 767px) {
  .site-menu-toggle {
    display: block;
    margin: 8px 0;
  }

  .logo {
    text-align: center;
  }

  .site-nav {
    margin-top: 0;
  }

  #nav_box {
    display: none;
    width: 100%;
    padding: 6px 0 12px;
  }

  #nav_box.is-open {
    display: block;
  }

  #megaMenu .root {
    display: block;
  }

  #megaMenu .root > .item {
    margin-bottom: 2px;
  }

  #megaMenu .root > .item > a {
    background: #444;
  }

  #megaMenu .root > .item > a span {
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    height: auto;
    min-height: 38px;
    line-height: 1.3;
    padding: 10px 48px 10px 16px;
    white-space: normal;
    position: relative;
  }

  #megaMenu .root > .item > a .navarrow {
    position: absolute;
    right: 16px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    border-top-color: #fff;
  }

  #megaMenu .root > .item.rmHover > a .navarrow,
  #megaMenu .root > .item > a .navarrow2 {
    transform: translateY(-50%) rotate(180deg);
  }

  #megaMenu .category,
  #megaMenu .leaf {
    position: static;
    display: none !important;
    min-width: 0;
    max-width: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #f2f2f2;
  }

  #megaMenu .root > .item.rmHover > .category,
  #megaMenu .category > ul > .item.rmHover > .leaf {
    display: block !important;
  }

  #megaMenu .category a span,
  #megaMenu .leaf a span {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    color: #111;
    font-weight: 700;
    padding: 10px 16px 10px 20px;
  }

  #megaMenu .leaf a span {
    font-weight: 400;
    padding-left: 32px;
  }

  .home-slider {
    height: 200px;
  }

  .home-top {
    grid-template-columns: 1fr;
  }

  .portal__list li {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
