* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    overflow-x: hidden;
    background: #05255cff;
}
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 0 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
  position: relative;
  width: 100px;
  height: 100px;
}
#edu{
    color: yellowgreen;
    text-shadow: 0 0 5px black;
    text-transform: uppercase;
    font-size: 2rem;
}
.circular-text {
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite;
}
@keyframes rotate{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
.circular-text text {
  font-size: 15px;
  font-weight: bold;
  fill: currentColor;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.logo h1 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}
#em {
  color: #ff5722;
}
.menu-btn {
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    z-index: 101;
}
.side-menu {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    z-index: 1000;
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.side-menu.active {
    right: 0;
}
.side-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}
.side-menu a:hover {
    color: #00b4db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.side-menu i{
    margin-right: 20px;
    color: silver;
    width: 40px;
    font-size: 1.6rem;
}
.side-menu a:hover i{
    color: white;
    animation: icons 1s;
}
@keyframes icons{
    0%{
        color: black;
    }
    100%{
        color: silver;
    }
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}
.close-btn:hover{
    color: red;
    transition: 0.3s;
}
.submenu {
    display: none;
    flex-direction: column;
    padding-left: 40px;
    padding-top: 20px;
}
.submenu a {
    font-size: 1rem;
    padding: 10px 0;
    color: #ccc;
    border-bottom: none;
    text-transform: none;
    text-decoration: none;
    border: 0px;
    position: relative;
    transition: all 0.3s ease;
}
.submenu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0; 
    width: 0%;
    height: 3px;
    background-image: repeating-linear-gradient(
        -45deg,
        orange 0 2px,
        transparent 2px 4px
    );
    background-size: 6px 3px;
    transition: width 0.4s ease;
}

.submenu a:hover {
    color: orange;
}

.submenu a:hover::after {
    width: 10%;
}
main{
    position: relative;
    width: 100%;
    background: url(wall2.jpg);
    height: 80vh;
    background-position: center;
    background-size: cover;
}
.course-title{
    position: absolute;
    top: 30%;
    color: white;
    left: 50px;
}
.course-title h1{
    display: inline-block;
    border: 3px solid white;
    padding: 20px;
    text-shadow: 0 0 5px black;
    border-bottom: 0px;
    font-size: 3rem;
    border-left: 7px solid brown;
}
.course-title h3{
    width: 90%;
    border: 3px solid white;
    padding: 20px;
    text-shadow: 0 0 5px black;
    font-size: 20px;
    border-left: 7px solid brown;
}
.course-title a{
    font-size: 20px;
    background: black;
    color: silver;
    border: 2px solid white;
    position: absolute;
    margin: 20px 0;
    padding: 10px 20px;
    text-decoration: none;
}
.course-title a:hover{
    text-decoration: underline;
    border: 2px solid silver;
    transition: 0.3s;
    color: white;
}
#maintain{
    text-align: center;
    font-size: 3rem;
    padding: 40px 0;
    font-weight: normal;
    text-shadow: 3px 3px 4px black;
    color: white;
}
.content {
    width: 85%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 20px;
}
.miniContent {
    flex: 1 1 250px;
    box-sizing: border-box;
    padding: 1rem;
    padding-bottom: 40px;
    box-shadow: 0 0 5px silver;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center; 
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
    border-radius: 10px;
}
.miniContent:hover{
    box-shadow: 0 0 5px gray;
    transform: translateY(5px);
    transition: 0.4s;
}
.miniContent img{
    width: 100%;
    height: 210px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.miniContent h3{
    padding: 10px 0;
    color: white;
}
.miniContent .contentText{
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    padding: 10px;
    color: white;
    transform: translateY(0px);
    opacity: 0;
}
.miniContent:hover .contentText{
    transform: translateY(-150px);
    transition: 0.7s;
    opacity: 1;
}
.miniContent:hover h3{
    opacity: 0;
    transition: 2s;
}
#learn{
    position: absolute;
    color: silver;
    border: 1px solid silver;
    padding: 12px 40px;
    background: rgba(0, 0, 0, 0.1);
    bottom: 0;
    margin: 10px 0;
    font-size: 18px;
    text-decoration: none;
    border-radius: 7px;
}
#learn:hover{
    color: white;
    transition: 0.3s;
    border: 1px solid gray;
}
/*------------------FORM---------------------------*/
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.modal-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 5px silver;
    width: 100%;
    margin: 0 10px;
    max-width: 600px;
    position: relative;
    padding-bottom: 100px;
    color: black;
}
.close-form {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: red;
}
.close-form:hover{
    color: brown;
    transition: 0.4s;
}
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
form label{
    color: white;
}
input, textarea {
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 17px;
}
button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}
#messageSent{
    text-align: center;
    margin: 10px 0;
}
.legacy{
    width: 85%;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 100px;
}
#legacy {
  background: url('edu.jpg') no-repeat center center; 
  background-size: cover; 
  padding-bottom: 300px;
  color: white; 
  width: 100%;
  text-align: center; 
  position: relative; 
}
#legacy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.legacy-text {
  position: relative;
  top: 0;
  z-index: 1;
  margin: 0 auto;
  width: 60%;
}
.legacy-text h2 {
  padding-top: 20px;
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px white;
  color: black;
}
.legacy-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: black;
}
.research {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    padding: 20px 0;
}
.research-item {
    margin: 10px;
    padding: 10px;
    height: 480px;
    overflow: hidden;
    background: white;
    flex: 1 1 300px;
    box-sizing: border-box;
    color: gray;
}
.research-item:hover {
    color: black;
    transition: 0.9s;
    transform: translateY(-3px);
}
.img-container {
    width: 100%;
    height: 200px;
    overflow: hidden; 
}
.research p{
    padding: 10px 0;
    font-size: 18px;
    font-family: italic;
    margin-left: 5px;
}
.img-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.5s ease;
}
.research-item:hover .img-container img {
    transform: scale(1.6);
}
/*
---------------------------------Quote
*/
.quote-box {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin: 20px 0;
}
.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    margin-bottom: 20px;
    border: 3px outset;
    padding: 5px;
    animation: borderPulse 2s ease-in-out infinite alternate;
}
@keyframes borderPulse {
    0% {
        border-style: outset;
        border-color: #4AB800;
    }
    100% {
        border-style: inset;
        border-color: #00B8A9;
    }
}
.quote-content {
    display: none;

}
.quote-content.active {
    display: block;
}
.quote-text {
    font-style: italic;
    font-size: 1.2em;
    color: black;
    margin-bottom: 10px;
}
.quote-author {
    font-weight: bold;
    color: green;
    margin-bottom: 20px;
}
.quote-author sub{
    color: silver;
}
.navigation {
    margin-top: 50px;
}
button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
button:hover {
    background-color: #005BB5;
}
#watan{
    color: silver;
}
#watan:hover{
    color: yellowgreen;
    transition: 0.4s;
}
.coming {
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
  border-radius: 20px;
  box-shadow: 0 0 10px silver;
  backdrop-filter: blur(6px);
  margin-top: 100px;
  margin-bottom: 50px;
}
#title{
    text-shadow: 5px 5px 4px silver;
    font-size: 2.5rem;
}
#title strong{
}
.course-types {
    margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  padding-bottom: 40px;
  border-radius: 10px;
  border-bottom: 1px solid gray;
  margin-bottom: 40px;
}
.course-types a{
    text-decoration: none;
}
.course-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms;
  will-change: transform;
  outline: none;
  border-bottom: 1px solid silver;
}
.course-card:hover p{
    font-weight: bold;
}
.course-card:hover strong{
    font-weight: normal;
}
.course-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.06) inset;
  margin-bottom: 20px;
}
.course-card em {
  font-style: normal;
  color: #6b7280;
  font-size: 0.9rem;
}
.course-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: purple;
  line-height: 1.25;
}
.course-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.45;
}
.course-card p strong {
  color: #0f1724;
}
.course-card:hover,
.course-card:focus {
  transform: translateY(-6px);
  cursor: pointer;
  transition: 0.4s;
  border-bottom: 1px solid black;
}
.course-card:focus {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 12px 32px rgba(16, 24, 40, 0.08);
  border-radius: 14px;
}
.blekinge{
    display: flex;
    background: #052626;
    background: linear-gradient(0deg,rgba(5, 38, 38, 1) 0%, rgba(28, 145, 217, 1) 100%);
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 50px;
    border-bottom: 1px solid silver;
}
.blekinge h1{
    text-shadow: 0 0 7px black;
    color: white;
}
.blekinge img{
    width: 100px;
    padding: 3px;
    border: 1px dotted white;
    border-radius: 50%;
    margin-right: 20px;
}
 .scroll-to-top {
  position: fixed;
  bottom: 30%;
  right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 1000;
}
.scroll-to-top.visible {
  display: flex;
  opacity: 1;
}
.scroll-to-top:hover {
  background: #555;
  transform: translateY(-3px);
}
.scroll-to-top:active {
  transform: translateY(0);
}
.universitet {
   box-shadow: 0 0 10px gray;
   border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px;
  margin-bottom: 50px;
}
.uni-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 10px;
  transition: transform 0.2s;
  text-align: center;
}
.uni-card:hover {
    box-shadow: 0 0 5px;
  transform: translateY(-5px);
}
.uni-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}
.uni-card h2 {
  margin: 12px 0 0;
  font-size: 18px;
  color: #333;
  box-shadow: 0 0 5px gray;
  padding: 10px 0;
  border-radius: 5px;
}
#antagen{
    color: yellowgreen;
    font-size: 2rem;
    text-shadow: 0 0 5px black;
    margin-bottom: 20px;
}
#universitet{
    width: 100%;
    padding: 20px;
    padding-top: 50px;
    box-shadow: 0 0 10px gray;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
}
#universitet .uni-card{
}
#universitet img{
    border-radius: 10px;
    width: 600px;
    filter: drop-shadow(2px 3px 5px gray);
}
.umea{
    display: flex;
}
.texts{
    margin-right: 30px;
}
.texts h3{
    white-space: nowrap;
    font-size: 2rem;
    color: white;
}
.texts h3 strong{
    color: yellowgreen;
}
.texts ul li{
    margin-top: 10px;
    color: silver;
    font-size: 18px;
    margin-left: 20px;
    margin-bottom: 5px;
}
.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 60px 20px 20px;
  font-family: Arial, sans-serif;
  margin-top: 100px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
.footer-brand h2 {
  font-size: 24px;
  color: #f97316;
}
.footer-brand p {
  margin-top: 10px;
  font-size: 16px;
  color: #94a3b8;
}
.footer-links h3,
.footer-newsletter h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #f97316;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin: 8px;
  color: red;
}
.footer-links ul li a {
    padding-left: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  border-left: 2px solid;
  border-radius: 5px;
}
.footer-links ul li a:hover {
  color: #f97316;
  margin-left: 3px;
  transition: 0.4s;
}
.footer-newsletter p {
  font-size: 14px;
  margin-bottom: 15px;
  color: #94a3b8;
}
.footer-newsletter form {
  display: flex;
  gap: 10px;
}
.footer-newsletter input {
    width: 100%;
  padding: 10px;
  flex: 1;
  border: none;
  border-radius: 5px;
  outline: none;
}
.footer-newsletter button {
    width: auto;
  padding: 10px;
  background: #f97316;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.footer-newsletter button:hover {
  background: #ea580c;
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  font-size: 14px;
  color: #94a3b8;
}
.nav-btn {
    position: absolute;
    bottom: 20px;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}
.nav-btn:hover{
    transition: 0.4s;
}
.nav-btn.left {
    left: 20px; 
}
.nav-btn.right {
    right: 20px;
}
#private{
    color: red;
}
#private:hover{
    color: yellowgreen;
    transition: 0.3s;
}






























@media (max-width: 1300px){
    .umea{
    }
    #universitet img{
        width: 300px
    }
}

@media (max-width: 990px){
     .course-types {
      grid-template-columns: repeat(2, 1fr);
    }
    .universitet{
        grid-template-columns: repeat(2, 1fr);
    }
    main{
        width: 100%;
        height: 80vh;
        background: url(wall2.jpg);
        background-position: center;
        background-size: cover;
    }
    #universitet{
        margin: 10px 0;
        box-shadow: 0 0 10px gray;
        padding: 20px;
        border-radius: 10px;
    }
    .texts h3{
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body{
        background: white;
    }
    main{
        background: url(wall3.jpg);
        width: 100%;
        background-size: cover;
        background-position: center;
    }
    .side-menu {
        width: 100%;
        right: -100%;
    }
    .content{
        width: 100%;
    }
    .content h3{
        color: black;
    }
    .content a{
        color: black;
    }
    .course-title{
        left: 10px;
    }
    .course-title h1{
        font-size: 2.5rem;
    }
    .course-title h3{
        width: 90%;
        color: silver;
    }
    .legacy{
        width: 100%;
    }
    #legacy {
        padding: 40px 15px;
        padding-bottom: 40px;
        background: url(mah.jpg);
        background-size: cover;
        background-position: center;
      }
      .submenu a:hover::after {
        width: 20%;
    }
      .legacy-text {
        padding: 10px;
        width: 100%;
      }
      .legacy-text p{
        font-size: 1rem;
        color: white;
      }
      .legacy-text h2{
        color: white;
        text-shadow: 2px 2px 4px black;
      }
    .img-container img{
        transform: scale(1);
        transition: transform 0.5s ease;
    }
    .miniContent .contentText{
        width: 100%;
        padding: 30px 0;
    }
    .contact-modal {
        width: 99%;
    }
    .modal-content {
        padding-bottom: 40px;
    }
    .quote-box {
        background: url(desert.jpg);
        background-size: cover;
        background-position: center;
        height: 40vh;
        position: relative;
    }
    .quote-text{
        font-size: 1rem;
        color: white;
    }
    .quote-author{
        color: gray;
    }
    .navigation{
        display: flex;
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
    }
    .navigation button{
        background: rgba(0, 0, 0, 0.6);
    }
    .navigation button:hover{
        background: rgba(0, 0, 0, 0.4);
        transition: 0.4s;
    }
    .coming{
    }
    #title{
        text-shadow: 0 0 5px white;
        font-size: 2rem;
    }
    .course-types {
      grid-template-columns: repeat(2, 1fr);
    }
    .course-card{
        padding: 10px;
    }
    .blekinge{
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .course-card img{
        height: 200px;
    }
    .blekinge img{
        margin-bottom: 20px;
        margin-right: 20px;
    }
    .scroll-to-top{
        width: 40px;
        height: 40px;
    }
    .progress-container{

    }
    .umea{
        flex-direction: column;
    }
    #antagen{
        font-size: 1.5rem;
        color: green;
        text-shadow: 0 0 5px white;
    }
    .texts h3{
        color: black;
    }
    .texts ul li{
        color: gray;
    }
    .texts h3 strong{
        color: green;
    }
    #universitet{
        padding-top: 50px;
    }
    #universitet img{
        width: 100%;
    }
    #maintain{
        color: black;
        text-shadow: 0 0 5px silver;
    }
    #learn{
        color: black;
        font-weight: bold;
    }
    #learn:hover{
        color: blue;
        border: 1px solid blue;
    }
    .texts{
        margin-top: 20px;
    }
    .contact-modal{
        background: rgba(0, 0, 0, 0.8);
    }
    .research-item{
        height: 100%;
    }
}
@media (max-width: 670px){
    .course-types {
      grid-template-columns: repeat(1, 1fr);
    }
    main{
        width: 100%;
        height: 100vh;
        background: url(sky.jpg);
        background-position: center;
        background-size: cover;
        }
    .course-card{
        padding: 20px;
    }
    #edu{
        font-size: 1.2rem;
    }
    main{
        height: 70vh;
    }
    .course-title h1{
        border: 2px solid white;
        font-size: 1.8rem;
    }
    .course-title h3{
        border: 2px solid white;
        font-size: 16px;
    }
    .universitet{
        grid-template-columns: repeat(1, 1fr);
    }
    .uni-card img{
        height: 200px;
    }

}
@media (max-width: 500px) {

    .course-title{
        left: 0;
        margin: 0 10px;
    }
    .course-title h1{
        display: inline-block;
        border: 2px solid white;
        padding: 20px;
        text-shadow: 0 0 5px black;
    }
    .course-title h3{
        width: 70%;
        border: 2px solid white;
        padding: 20px 5px;
        text-shadow: 0 0 5px black;
        color: white;
        border-top: 0px;  
    }
    .course-types {
      grid-template-columns: repeat(1, 1fr);
    }
    .course-card{
        padding: 10px;
    }
}


















