/* style.css */



/* Intro-sektioner */
.intro {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.intro h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.intro a {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: #FCF98B;
  text-decoration: underline;
}

header, footer {
  background-color:#FCF98B;
  text-align: center;
  padding: 1em;
  font-size: 0.9rem;
  color: #FCF98B;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1em;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav a, .main-nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 0.5em;
}

nav a:hover, .main-nav a:hover {
  text-decoration: underline;
}

.main-nav {
  background: #333;
  padding: 1rem;
  text-align: center;
}

.main-nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FCF98B;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  color: #34495e;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: #3c3c3c;
}

p {
  margin: 1rem 0;
  color: #333;
}

.highlight {
  background-color: #fcf8e3;
  border-left: 5px solid #f0ad4e;
  padding: 10px 15px;
  margin: 2rem 0;
  font-style: italic;
}



.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2em;
  justify-content: center;
}

.gallery img {
  width: 200px;
  height: auto;
  border: 1px solid #999;
}

ul.question-list {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

ul.question-list li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}

.custom-footer {
  background-color: #e0e0e0;
  padding: 2rem 5% 1rem 5%;
  font-family: system-ui, Arial, sans-serif;
  color: #222;
  position: relative;
  border-top: 1px solid #bbb; /* topplinje direkt vid footerns start */
}

/* Layout för kolumner */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: left;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Lodräta linjer */
.footer-top .footer-col {
  padding: 0 1rem;
  position: relative;
}

.footer-top .footer-col:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0.5rem; /* lite luft från topplinjen */
  bottom: 0.5rem; /* samma luft till bottenlinjen */
  left: 0;
  width: 1px;
  background: #bbb;
}

/* Rubriker och text */
.footer-col h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #111;
}

.footer-col p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-col a {
  color: #004080;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Bottenlinje – bara en, fullbredd */
.custom-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.2rem; /* placera precis ovanför knappraden */
  height: 1px;
  background: #fafa91;
}

/* Knappar */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.footer-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f5f5f5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

.footer-btn:hover {
  background-color: #ddd;
  color: #004080;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.5rem;
}

/* Mobil */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-top .footer-col::before {
    display: none; /* inga lodräta linjer på mobil */
  }

  .custom-footer::after {
    bottom: 6.5rem; /* flytta linjen om knapparna radbryts */
  }
}
