:root {
  --primary-blue: #003057;
  --highlight-green: #8bc34a;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --font-main: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  background-color: white;
  color: var(--dark-gray);
  padding-top: 100px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white; /* tidigare rgba(0, 48, 87, 0.4) */
  color: var(--primary-blue); /* ändra om du vill att texten ska vara mörkblå */
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--highlight-green);
}

.language-switcher {
  margin-left: 2rem;
}

.lang-link {
  color: var(--primary-blue);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.lang-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: var(--primary-blue); /* previously white */
  border-radius: 2px;
}

.hero {
  background: url('assets/hero.jpg') center/cover no-repeat;

  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: #f5f5f5; /* fallback behind transparent parts */
}



.hero .overlay {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.section {
  padding: 4rem 2rem;
}




.section.light {
  background-color: var(--light-gray);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.main-footer {
  background-color: var(--primary-blue);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .nav-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: flex;
  }
  #navMenu {
    background-color: white; /* was dark blue or transparent before */
  }

  #navMenu a {
  color: var(--primary-blue);
}

#navMenu {
  border-top: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hamburger {
  padding: 1rem;
}

  .nav-group {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: rgba(0, 48, 87, 0.95);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem;
  }

  #navMenu.active {
  display: flex;
  }


  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .language-switcher {
    margin-top: 1rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.research-section {
  text-align: left;
}

.research-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.ambassador-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.ambassador-card {
  flex: 0 1 250px; /* Fixed width for each card */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.ambassador-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

#ambassadors h2 {
  margin-bottom: 2rem; /* or adjust to your liking */
}


.ambassador-card h3 {
  font-size: 1.2rem;
  color: var(--primary-blue);
  margin-bottom: 0.2rem;
}

.ambassador-card p {
  font-size: 0.95rem;
  color: #666;
}

.logo img {
  height: 40px;
  object-fit: contain;
}
.science-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.science-grid img {
  width: 100%;
  max-width: 300px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}



.product-images {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}



.product-images img {
  max-width: 400px;
  height: auto;
  object-fit: contain;
  margin: 1rem;
}


#products h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.product-hero-image {
  margin: 3rem 0;
  text-align: center;
}

.product-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.product-full-image {
  width: 100vw;
  margin: 3rem 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  text-align: center;
}

.product-full-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-image-wrapper {
  background-color: transparent; /* remove background */
  padding: 0;                    /* remove extra space */
  margin: 2rem 0;                /* keep vertical spacing */
  text-align: center;
  border-radius: 0;              /* remove rounded corners */
  box-shadow: none;             /* remove shadow if applied */
}

.product-image-wrapper img {
  width: 80%;
  max-width: 700px;
  display: block;
  margin: 2rem auto 0 auto;
}

#products p:first-of-type {
  margin-bottom: 1.5rem;
}

#products ul {
  padding-left: 1rem; /* aligns bullets with paragraph */
  margin-left: 0;
  margin-top: 1.5rem;   /* adds space above the list */
}


.about-image {
  width: 50%;
  max-width: 600px;
  margin-top: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

