/* ============================
   BAS & TYPINSTÄLLNINGAR
   ============================ */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 80px; /* justera efter footerhöjd */
  box-sizing: border-box;
  background-color: #f4faff;
  color: #222;
  line-height: 1.6;
}

body, html {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================
   HERO – HUVUDKOMPONENT
   ============================ */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
  overflow-x: hidden; /* Tar bort ev. sidscroll */
}

/* ============================
   HERO – INTROTEXT OVANFÖR
   ============================ */
.hero-intro {
  font-style: italic;
  color: #445;
  text-align: center;
  font-size: 1.05rem;
  max-width: 1000px;
  margin: 1rem auto 0.5rem;
  padding: 0 1rem;
}

/* ============================
   HERO – VÄNSTER: BILDDEL
   ============================ */
.hero-left {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  padding: 1rem;
  min-width: 280px;
  box-sizing: border-box;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ============================
   HERO – HÖGER: TEXTDEL
   ============================ */
.hero-right {
  flex: 1 1 50%;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 480px;
  box-sizing: border-box;
  text-align: left;
  z-index: 2;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-right h2 {
  font-size: 1.04rem; /* 20% mindre än 1.3rem */
  font-weight: 700;
  color: #1d3c6a;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  text-wrap: balance; /* extra bonus om stöds */
}

.hero-right p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ============================
   HEADER – SAMMANSLAGEN VERSION
   ============================ */

.header {
  background: linear-gradient(
    to bottom,
    #c8dbeb 0%,
    #d6e4f0 30%,
    #e7eff6 70%,
    #ffffff 100%
  );
  padding: 1.5rem 1rem 0.8rem;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between; /* fixar rubrik till vänster, flagga till höger */
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1em;
}

.header-text {
  text-align: left;
}

.header-text h1 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1d2a38;
  margin-bottom: 0.4rem;
}

.header-text p {
  font-size: 1rem;
  color: #444;
  opacity: 0.75;
  font-style: italic;
  margin: 0;
}

.language-switch img {
  width: 32px;
  height: auto;
  cursor: pointer;
  padding-right: 8px; /* så får du lite högerluft */
}

/* ============================
   FRÅGOR (QUESTION)
   ============================ */
.question {
  margin-bottom: 2rem;
  cursor: pointer;
  opacity: 0.3;
  transform: scale(0.9) rotateX(6deg);
  transition: all 1s ease;
  position: relative;
  z-index: 1;
  filter: blur(1px);
  max-width: 100%;           /* Begränsa till förälderns bredd */
  overflow-wrap: break-word; /* Bryt ord vid behov */
  word-wrap: break-word;
}

.question h3 {
  color: #004080;
  font-size: 1.2rem;         /* Lite mindre från start */
}

.question p {
  font-size: 1rem;
  color: #333;
}

.question:hover {
  opacity: 0.5;
  text-decoration: underline;
}

.question.active {
  opacity: 1;
  transform: scale(1.3) rotateX(0deg); /* Mindre än 1.8x – för att hålla sig inom boxen */
  z-index: 2;
  filter: none;
  max-width: 100%;                /* Tvinga in den i .hero-right */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================
   Action-bar
   ============================ */
.action-bar {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 500;
}

.action-bar a {
  color: #003366;
  text-decoration: none;
  border: 1px solid #003366;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  background-color: #fff;
}

.action-bar a:hover {
  background-color: #003366;
  color: white;
}


/* ============================
   MODAL-DIALOGER
   ============================ */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  width: 90%;
}

.modal-content h4 {
  margin-bottom: 1rem;
}

.close-btn {
  margin-top: 1rem;
  background-color: #004080;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}


/* ============================
   FOOTER
   ============================ */
.footer-container {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 2px solid #002244;
}

.footer-container a {
  display: block;
  color: #ffcc00;
  margin-top: 0.5rem;
  text-decoration: none;
}

.footer-container a:hover {
  text-decoration: underline;
}

/* ============================
   MEDIA QUERIES – MOBIL
   ============================ */
@media (max-width: 768px) {
  .hero {
    overflow-x: hidden;
    padding: 1rem 0.5rem;
  }

  .hero-right {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-instruction {
  text-align: center;
  font-size: 1rem;
  color: #333;
  font-style: italic;
  margin-bottom: 1rem;
}


  .hero-right h2 {
    font-size: 0.95rem; /* Mindre rubriktext i mobilen */
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .hero-right p {
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
  }

  .question {
    max-width: 100%;
    padding: 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transform: none !important; /* Tar bort skala och vrid */
    filter: none;
    opacity: 1;
  }

  .question h3 {
    font-size: 1rem;
  }

  .question.active {
    transform: none !important;
    filter: none;
    max-width: 100%;
  }
}

/* ================================================================================
CSSen för intro.php
=================================================================================*/

.back-arrow {
  display: inline-block;
  margin: 1rem 0 0 1rem;
  font-size: 1.1rem;
  color: #1d3c6a;
  text-decoration: none;
  font-weight: bold; /* Här är ändringen */
}

.back-arrow:hover {
  text-decoration: underline;
}

.info-block {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.info-block h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #1d3c6a;
}

.info-block p {
  margin: 0;
  padding-bottom: 1rem;
}

.info-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.back-link,
.contact-link {
  font-weight: bold;
  color: #0a3570;
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-link {
  background-color: #fff;
  border: 2px solid #0a3570;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: 0.3s ease;
}

.contact-link:hover {
  background-color: #0a3570;
  color: #fff;
}

.button-outline {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid #1d3c6a;
  border-radius: 8px;
  color: #1d3c6a;
  background-color: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s ease-in-out;
}
.button-outline:hover {
  background-color: #1d3c6a;
  color: white;
}

/* ========================== Kontaktformuläret =========================== */
/* Contact form styling */
.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;    
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.required {
    color: red;
    font-weight: bold;
}

.contact-form textarea {
    height: 9rem; /* ca tre gånger standardhöjden */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.contact-form button {
    display: inline-block;
    background: #007BFF;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #0056b3;
}

.contact-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
}

.thankyou-box {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}


