.underheader_kurser,
.underheader_kurser2 {
  background-size: cover;
  background-position: center;
  height: 300px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.underheader_kurser {
  background-image: url(img_css/kurser.png);
}

.underheader_kurser2 {
  background-image: url(img_css/kurser2.png);
}


.underheader_kurser > h1,
.underheader_kurser2 > h1 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: white;
  font-size: 55px;
  width: 900px;
}

.brand > a > img {
  width: 150px;
  margin-top: 5px;
}

.brand a {
  text-decoration: none;
  color: rgb(51, 46, 46);
}
.mob_link_moduler {
  display: none;
}

.kurser_container {
  width: 1000px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 auto;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 40px;
}

.col1_kurser {
  width: 50%;
  height: auto;
}
.seperate_line {
  width: 1%;
  height: auto;
  min-height: 100%;
  border-right: 1px solid rgba(0, 0, 0, 0.411);
}

.col2_kurser {
  width: 45%;
  height: auto;
}

.kurser_textbox > h1 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #192673;
  line-height: 2;
}

.kurser_textbox > p {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
}

button {
  width: 200px;
  margin-top: 15px;
  cursor: pointer;
  background-color: #192673;
  padding: 10px;
  border: 0px;
  color: #f8f8f4;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}
button:hover {
  background-color: #0a123f;
}

.buttons_moduler {
  display: flex;
  flex-direction: column;
}

/*bakgrund när ruta kommer upp*/
.modalDialog {
  position: fixed;
  top: -30px;
  overflow: scroll;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(235, 235, 230, 0.8);
  z-index: 99999;
  opacity: 0;
  -webkit-transition: opacity 300ms ease-in;
  -moz-transition: opacity 300ms ease-in;
  transition: opacity 300ms ease-in;
  pointer-events: none;
}

h2 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 600;
  color: #0a123f;
  line-height: 1.3;
}
h3 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: black;
  line-height: 2;
}

h4 {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: black;
  line-height: 2;
}
.modalDialog:target {
  opacity: 1;
  pointer-events: auto;
}

/*rutan som kommer upp*/
.modalDialog > div {
  width: 800px;
  margin-top: 200px;
  position: relative;
  margin: 10% auto;
  text-align: left;
  padding: 70px;
  text-align: left;
  background: #ffff;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
}

.modalDialog h2 {
  margin-bottom: 20px;
}
p {
  font-size: 16px;
  line-height: 1.5;
  color: #2a2a2a;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}
.close {
  padding: 0;
  color: #fff;
  line-height: 1.5;
  border-radius: 10px;
  position: absolute;
  right: 10px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  text-align: center;
  top: 10px;
  width: 54px;
  padding: 5px 5px 5px 5px;
  font-size: 30px;
  text-decoration: none;
  background-color: #192673;
  font-weight: bold;
}

.close:hover {
  opacity: 80%;
}
.ul_modal > li {
  font-family: "inter", Arial, Helvetica, sans-serif;
  list-style-position: inside;
  padding-left: 20px;
  padding-right: 20px;
  line-height: 1.3;
}

.modal_textbox {
  padding-right: 30px;
  padding-left: 30px;
}

@media only screen and (max-width: 1050px) {
  .underheader_kurser {
    height: 200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-position: top;
  }
  
    .underheader_kurser2 {
    height: 200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-position: top;
  }
    
    .underheader_kurser2 > h1 {
    font-size: 30px !important;
    width: 80% !important; 
      }
   
  .underheader_kurser > h1 {
    font-size: 30px;
    width: 80%;
  }

  .kurser_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 60px;
    padding-top: 80px;
    padding-bottom: 0px;
  }

  .col1_kurser {
    width: 80%;
    height: auto;
  }
  .seperate_line {
    width: 80%;
    height: auto;
    min-height: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.411);
  }

  .col2_kurser {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    text-align: center;
    gap: 20px;
  }

  .kurser_textbox > h1 {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #192673;
    line-height: 2;
  }

  .kurser_textbox > p {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
  }

  button {
    text-align: center;
    margin: 10px;
  }

  .modalDialog > div {
    width: 70%;
    margin-top: 200px;
    position: relative;
    margin: 10% auto;
    text-align: left;
    padding: 30px;
    text-align: left;
    background: #ffff;
    border-radius: 10px;
    font-family: "
    Montserrat", sans-serif;
  }
  .modal_textbox {
    padding-right: 0px;
    padding-left: 0px;
  }

  .modalDialog > div > h3 {
    width: 80%;
    line-height: 1;
    padding-bottom: 20px;
  }

  .ul_modal > li {
    line-height: 1.4;
  }

  .mob_link_moduler {
    display: block;
    margin-bottom: 30px;
  }

  .mob_link_moduler > a {
    color: #fff;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    text-decoration: none;
    background-color: #192673;
    padding: 10px;
    text-align: center;
    margin-bottom: 0px;
  }
}

@media only screen and (max-width: 930px) {
  .brand > a > img {
    width: 100px;
    margin-top: 5px;
  }
}
