/* Grundstil för hela sidan */
body {
  margin: 0 0 30px;
  font-family: sans-serif; /* Enklare font */
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
}

/* Header med mörk bakgrund och vänsterjusterad text */
header {
  background: #003366;
  color: #fff;
  padding: 20px;
  text-align: left;
  position: relative;
}

/* Navigationsmeny horisontellt med mellanrum */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: left;
  gap: 50px;
  flex-wrap: wrap;
}

/* Navigationslänkar */
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-right: 10px;
}

/* Hovereffekt på länkar */
nav a:hover {
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
}

/* === SÖKRUTA === */
.sökruta {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Flyttar sökrutan till höger */
  padding: 5px 5px;
}

/* Inmatningsfält för sök */
.sökruta input[type="search"] {
  width: 300px;
  height: 40px;
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Sökknapp */
.sökruta button {
  height: 40px;
  padding: 10px 20px;
  font-size: 18px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sökruta button:hover {
  background-color: #0055aa;
}

/* === SIDANS HUVUDINNEHÅLL === */
main {
  padding: 50px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Bilder i hero- och about-sektioner */
.hero img,
.about img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 16px;
}

/* Sektioner med vit bakgrund och skuggor */
section {
  margin-bottom: 32px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Formulär och listor i footern */
form,
.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Gemensam stil för inputs, textrutor, knappar */
input,
textarea,
button {
  font-size: 16px;
  border-radius: 4px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
}

button {
  padding: 12px;
  background: #003366;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background: #0055aa;
}

/* === FOOTER === */
.footer {
  background: #f4f4f4;
  color: #333;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
  border-top: 1px solid #ddd;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #111;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  line-height: 1.6;
  color: #0077cc;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

/* Sociala ikoner */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* Text längst ned i footern */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 30px;
}

/* === BILDKARUSELL === */
.image-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  flex-wrap: wrap;
}

.image-wrapper {
  text-align: center;
}

.image-slider img {
  max-width: 500px;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.image-slider p {
  margin-top: 8px;
  font-size: 20px;
  color: #000000;
}

.image-slider button {
  font-size: 24px;
  background: #003366;
  border: solid;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.image-slider button:hover {
  background: #ffcc00;
}

/* === MOBILANPASSNING === */
@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  main {
    padding: 16px;
    max-width: 100%;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .image-slider {
    flex-direction: column;
  }

  /* Mobilanpassad sökruta */
  .sökruta {
    margin-left: 0 !important;
    justify-content: center !important;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .sökruta input[type="search"] {
    flex-grow: 1;
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    font-size: 16px;
  }

  .sökruta button {
    padding: 10px 20px;
    font-size: 16px;
    margin-left: 8px;
    flex-shrink: 0;
  }
}
