/* ------- RESET & GLOBAL DEFAULTS ------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif !important;
  background-color: #000 !important;
  scroll-behavior: smooth;
}

a {
  color: #33cfff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  color: #a0d8f7;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ------- Min header ------- */
header { 
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #001f3f, #005f9e);
  padding: 1rem 2rem;
}

header .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header img {
  height: 60px;
  margin-right: 15px;
  animation: fadeIn 1s ease-in-out both;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #33cfff;
  animation: fadeIn 1s ease-in-out both;
}

/* kod för navigation  */
nav {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 1s ease-in-out both;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #a0d8f7;
  font-weight: bold;
  font-size: 1rem;
}

/* ------- section (allmänt) -------*/
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  scroll-margin-top: 70px;
}

/* ------- Rubriker ------- */
.min-h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #33cfff;
  text-align: center;
  margin-bottom: 1rem;
}

.min-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #33cfff;
  text-align: center;
  margin-bottom: 1rem;
}

.min-h3 {
  font-size: large;
  font-weight: 600;
  color: #00ffffc9;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  transition: 0.3s;
}
.btn:hover {
  box-shadow: 0 0 15px #00e0ff;
}

/* ------- Home section kod ------- */
#home .container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  text-align: center;
}

.home_section_img {
  width: 100%;
  max-width: 700px;
  margin: 30px auto 0;
  object-fit: contain;
  background-color: #0e1c21;
  padding: 10px;
  border-radius: 20px;
}

/* ------- Program section kod -------*/
#program {
  background: #31676700;
}

.programs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
  
}

.program-card {
  display: grid; 
  grid-template-columns: 1fr;
  grid-template-rows: 80px 1fr 80px;
  align-items: center;
  justify-items: center;
  background: #022b55;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 8px #00ffffaa;
  transition: transform 0.3s ease;
  width: 80%;
  max-width: 300px;
}

.program-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #33ffff;
}

.program-card img {
  height: 250px;
  width: 250px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: cover;
  overflow: hidden;
}

.program-card .min-h3 {
  margin-bottom: 0.4rem;
  color: #00ffffc9;
}

.program-text-ruta {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #a0d8f7;
  width: 100%;
}

.program-text {
  background: #022b55;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 8px #00ffff00;
  word-wrap: break-word;
}
.programs a, p {
  text-decoration: none;
}

/* ------- galleria section kod ------- */
#gallery .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

#gallery img {
  width: calc(50% - 20px);
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 10px #00ffff55;
  transition: transform 0.3s ease;
}

#gallery img:hover {
  transform: scale(1.05);
}

.bilder_på_skolan_undertext {
  background-color: #022b55;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 8px #00ffff00;
}

.bilder_på_skolan_undertext p {
  text-align: left;
}

/* ------- nyheter sectionn kod -------*/
#news .container {
  display: flex;
  width: 100%;
  padding: 20px;
}

.nyheter_text {
  background-color: #022b55;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 8px #00ffff00;
  width: 100%;
}

.nyheter_text li {
  text-align: left;
  color: #fff;
  line-height: 1.6;
  margin-left: 16px;
}

/* kontakt & footer*/
footer {
  background: #001f3f;
  text-align: center;
  padding: 1rem;
  color: #33cfff;
  font-size: 0.9rem;
}

/* Animering för fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(1);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */
@media (max-width: 768px) {
  header img {
    height: 45px;
  }

  .logo {
    font-size: 1.2rem;
  }

  nav a {
    margin: 0 6px;
    font-size: 0.9rem;
  }

  section {
    padding: 20px 10px;
  }

  .home_section_img {
    max-width: 90%;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
  }

  nav a {
    display: block;
    margin: 5px 0;
    text-align: center;
  }

  header .container {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    margin-bottom: 10px;
  }
}
