.about-hero {
  background: linear-gradient(135deg, #041a1a, #004b4b);
  color: #ffffff;
  padding: 120px 20px;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Pill */
.about-pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #5fe3b4;
  border-radius: 999px;
  color: #5fe3b4;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* Title */
.about-container h1 {
  font-family: "inter", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  margin-bottom: 24px;
}

.about-container h1 em {
  font-style: italic;
}

/* Description */
.about-description {
  max-width: 800px;
  margin: 0 auto 80px;
  font-size: 20px;
  line-height: 1.6;
  color: #b9c2d0;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.stat h2 {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat span {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 2px;
  color: #8f9bb3;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile */
@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat-divider {
    display: none;
  }
}

.medlem_container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 600px;
  padding: 10px;
  border-radius: 5px;
  padding: 0px;
  text-align: center;
}

.medlem_cover img {
  width: 100%;
  height: 200px; /* juster høyde på banner */
  object-fit: cover;
  display: block;
}

/* Profilbildet */
.profile-pic {
  position: relative;
  margin-top: -60px; /* flytter profilbildet oppå cover */
}
.profile-pic img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff; /* gir "ramme" rundt bildet */
  object-fit: cover;
}

.medlem_container img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.medlem_container h3 {
  font-size: 1.5rem;
  color: black;
  margin-bottom: 10px;
  margin: 4px 0 4px;
  font-size: clamp(1.1rem, 1.2vw + 0.9rem, 1.5rem);

  font-weight: 700;
  letter-spacing: 0.2px;
}
.medlem_container p {
  font-size: 1rem;
  color: black;
  text-align: center;
  margin-bottom: 20px;
}
.medlem_social {
  display: flex;
  flex-direction: row;
  height: 25px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: #fff;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 2;
}

/*spørsmål side*/
.image-content {
  min-width: 300px;
}
.faq-section {
  max-width: 600px;
}

.faq-title {
  text-align: center;
  font-weight: 800;
  margin: 0 0 48px;
  color: white;
  font-size: 36px;
}

.faq-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 25px;
}

/* Card */
.faq-item {
  border: 1px solid #ded8d3;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  min-width: 300px;
}

/* Summary row */
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 22px;
  font-weight: 700;
  color: #000000;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Remove default marker */
.faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Chevron */
.faq-item > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  transition: transform 200ms ease;
  flex: 0 0 auto;
}

/* Open state */
.faq-item[open] > summary::after {
  transform: rotate(-135deg);
}

/* Content */
.faq-content {
  padding: 0 24px 22px;
  color: #000000;
  font-size: 18px;
  line-height: 1.7;
}

.faq-content p {
  margin: 0;
  color: black;
}

.faq-content a {
  color: #111;
  text-decoration: underline;
}

/* Hover feel (subtle like screenshot) */
.faq-item > summary:hover {
  background: #fafafa;
}
.buttons {
  display: flex;
  gap: 5px; /* horizontal gap on wide screens */
  flex-wrap: wrap;
  align-items: center;
}

.carousel-section {
  background-color: white;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .faq-item > summary {
    font-size: 18px;
    padding: 18px 18px;
  }
  .faq-content {
    padding: 0 18px 18px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .text-content {
    text-align: center;
  }

  .member-card,
  .icon-btn {
    transition: none;
  }

  .image-content {
    padding: 0%;
    max-height: auto;
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .image-content img {
    height: auto;
  }
  .buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .faq-item > summary {
    font-size: 16px; /* smaller size for mobile — change to taste, e.g. 15px */
    padding: 14px 16px;
  }
}
@media (min-width: 1800px) {
  .content-dark > :first-child,
  .content > :first-child {
    margin-left: 400px;
  }
  .content-dark > :last-child,
  .content > :last-child {
    margin-right: 400px;
  }
  .carousel-text-section {
    margin-left: 400px;
  }
}
