/* ===========================
   1. Grundinställningar / Reset
   =========================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica', 'Arial', sans-serif; /* Global font */
}

/* ===========================
   2. Header & Logotyp
   =========================== */
header {
    position: relative;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
}

header img {
    width: 150px;
    height: auto;
    margin: 10px auto;
}

.partnership-logo {
    text-align: center;
    margin-top: 20px;
}

.partnership-logo .logo {
    max-width: 200px;
    height: auto;
}

/* ===========================
   2b. Klickbara loggor (generell stil)
   =========================== */
.clickable-logo {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.clickable-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ===========================
   3. Navigationsbar
   =========================== */
nav {
    background-color: white;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 8px 16px;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

nav ul li a.active {
    font-weight: bold;
    color: #007BFF;
    border-bottom: 2px solid #007BFF;
}

/* ===========================
   4. Sektioner (generellt)
   =========================== */
section {
    flex: 1;
    padding: 20px;
}

/* Bakgrundsfärg & text för olika sektioner */
.section-white {
    background-color: #FFFFFF;
    padding: 50px 20px;
    text-align: center;
}

.section-dark_blue {
    background-color: #3e588d;
    color: #00b1ff;
    padding: 50px 20px;
    text-align: center;
}

.section-blue {
    background-color: #8da6c7;
    color: #05499b;
    padding: 50px 20px;
    text-align: center;
}

.section-light_blue {
    background-color: #a6bad3;
    padding: 50px 20px;
    text-align: center;
}

/* Rubriker och text i sektioner */
section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================
   5. Sektioner med bilder
   =========================== */

/* Wit sektion med grå boxar runt. Text till vänster och bild till höger */
.section-white-with-image .content {
    display: flex;
    justify-content: center;  /* centrera horisontellt hela raden */
    align-items: flex-start;  /* låt texten bestämma höjd */
    gap: 20px;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.left-content {
    flex: 1 1 auto;         /* textens höjd bestämmer */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertikal centrering inom left-content */
    text-align: center;      /* centrera all text horisontellt */
}

.right-content {
    flex: 0 0 auto;
    display: flex;
    align-items: center;     /* centrera bilden vertikalt */
    justify-content: center; /* centrera horisontellt */
}

.right-content img {
    display: block;
    height: auto;   /* JS styr höjd */
    width: auto;    /* JS styr bredd */
    max-width: 400px;   /* maxbredd i pixlar */
    max-height: 300px;  /* maxhöjd i pixlar */
    object-fit: contain; /* ser till att hela bilden får plats */
}

/* ===========================
   Responsivt: små skärmar
   =========================== */
@media (max-width: 768px) {
    .section-white-with-image .content {
        flex-direction: column;   /* staplar text + bild vertikalt */
        align-items: center;      /* centrera innehållet */
    }

    .right-content img {
        height: auto;             /* naturlig höjd */
        width: 100%;              /* fyller inte över skärmen */
        max-width: 100%;
    }
}

/* ===========================
   6. Fade-in effekter
   =========================== */
.fade-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===========================
   7. Länkar
   =========================== */
.contact-link {
    color: #00b1ff;
    font-weight: bold;
    text-decoration: underline;
}

/* ===========================
   8. Kontaktsektion (ny)
   =========================== */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 500px;
    text-align: left;
}

.contact-list li {
    margin: 12px 0;
    font-size: 1.1rem;
    color: #fff; /* vit text mot mörkblå bakgrund */
}

.contact-list strong {
    color: #00b1ff; /* framhäv kategori i ljusblått */
}

.contact-list a {
    color: #fff;
    text-decoration: underline;
}

.contact-list a:hover {
    color: #00b1ff;
}




/* ===========================
   9. Formulärsektion
   =========================== */
.section-form {
  background-color: #f9f9f9;
  padding: 60px 30px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-form .text h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #003366;
}

.section-form .text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}

.download-button {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #007acc, #005fa3);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}


/* ===========================
   10. Footer
   =========================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* ===========================
   11. Event-översikt
   =========================== */
.event-overview {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.overview-category {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.overview-category h2 {
    margin-bottom: 0.5rem;
}

.overview-category ul {
    list-style: none;
    padding: 0;
}

.overview-category li {
    margin: 0.3rem 0;
}

.overview-category a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
}

.overview-category a:hover {
    text-decoration: underline;
}

/* ===========================
   12. Responsiv design
   =========================== */
/* Små skärmar (upp till 600px) */
@media (max-width: 600px) {
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
        font-size: 14px;
    }

    section {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .section-form {
        flex-direction: column;
    }

    .section-form .text {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .section-form .form-container {
        padding: 15px;
    }

    footer {
        padding: 15px;
        font-size: 14px;
    }
}

/* Mellanstora skärmar (600px till 1024px) */
@media (min-width: 600px) and (max-width: 1024px) {
    .section-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-form .text {
        margin-bottom: 20px;
    }

    nav ul li {
        margin: 0 15px;
    }
}

/* Stora skärmar (>1024px) */
@media (min-width: 1024px) {
    body {
        max-width: 100%;
        margin: 0;
    }

    header img {
        width: 300px;
    }

    .section-white, .section-light_grey, .section-dark_grey {
        padding: 100px 50px;
    }

    .section-form {
        padding: 100px 30px;
    }

    .section-form .form-container button {
        font-size: 1.2em;
        padding: 15px;
    }

    .section-form .text {
        font-size: 1.2em;
    }

    nav ul li {
        margin: 0 40px;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px 20px;
    }

    h1 {
        font-size: 3em;
    }

    p {
        font-size: 1.4em;
    }
}
