* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Calibri, "Trebuchet MS", Arial, sans-serif;
  background-color: rgb(192, 192, 192);
  color: #333;
}

/* Header Styles */
.header {
  background-color: rgb(32, 32, 32);
  color: white;
  padding: 40px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid rgb(64, 192, 64);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  /* max-width: 1400px; (för att David hammarsten ska ligga rätt) */
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.site-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: absolute;
  left: 12.5%;
  width: 25%;
  text-align: center;
  transform: translateX(-50%);
}

.site-title-link {
  color: rgb(224, 224, 224);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title-link:hover {
  color: rgb(255, 255, 255);
}

.main-menu {
  display: flex;
  gap: 30px;
  flex: 0 1 auto;
}

.nav-link {
  color: rgb(224, 224, 224);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: rgb(255, 255, 255);
}

/* Container and Layout */
.container {
  width: 100%;
  padding: 0;
}

.content-wrapper {
  display: flex;
  gap: 0;
  margin: 0;
}

/* Strip Styles */
.strip {
  background-color: white;
  border-radius: 0;
  box-shadow: none;
  padding: 40px;
  min-height: 100vh;
}

.left-strip {
  width: 25%;
  flex: none;
  position: relative;
}

.left-strip::after {
  content: "";
  position: absolute;
  right: 0;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background-color: rgb(64, 192, 64);
}

.right-strip {
  width: 25%;
  flex: none;
  position: relative;
}

.right-strip::after {
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background-color: rgb(64, 192, 64);
}

.middle-strip {
  width: 50%;
  flex: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 40px;
  padding-bottom: 40px;
}

.middle-strip .content-area {
  padding-left: 40px;
  padding-right: 40px;
}

.content-inner-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.content-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  padding-bottom: 20px;
}

.section-header {
  font-size: 12px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-content {
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.page-content a {
  color: rgb(64, 192, 64);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-content a:hover {
  color: rgb(32, 160, 32);
  text-decoration: underline;
}

.portrait-image {
  width: 15vw;
  height: 15vw;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.content-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #bdc3c7;
  border-radius: 4px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
  font-size: 14px;
}

/* Links Container */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  text-decoration: none;
  color: rgb(96, 96, 96);
  font-size: 14px;
}

.link-item:hover {
  background-color: rgb(223, 223, 223);
  color: black;
}

.link-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: contain;
  border: 1px solid rgb(160, 160, 160);
}

.link-item:hover .link-icon {
  opacity: 0.8;
}

.upward-icon {
  display: none;
}

.downward-icon {
  display: none;
}

/* Responsive Design */
/* Tablet and Large Mobile: 769px - 1024px */
@media (max-width: 1280px) {
  .content-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .left-strip,
  .middle-strip,
  .right-strip {
    width: 100%;
    padding: 30px 20px;
  }

  .middle-strip {
    order: 1;
  }

  .left-strip {
    order: 2;
  }

  .right-strip {
    order: 3;
  }

  .left-strip::after,
  .right-strip::after {
    display: none;
  }

  .header {
    padding: 15px 0;
  }

  .header-content {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 0 15px;
  }

  .site-title {
    font-size: 24px;
    position: static;
    left: none;
    width: auto;
    text-align: center;
    transform: none;
    margin-bottom: 10px;
  }

  .main-menu {
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-link {
    font-size: 14px;
    padding: 8px 12px;
    border: solid 1px rgb(224, 224, 224);
    border-radius: 4px;
  }

  .nav-link-hover {
    border: white;
  }

  .page-title {
    font-size: 22px;
  }

  .strip {
    border-radius: 0;
    background-color: white;
    padding: 20px;
  }

  .portrait-image {
    width: 80px;
    height: 80px;
  }

  .content-inner-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-content {
    font-size: 15px;
  }

  .middle-strip .content-area {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Small Mobile: 320px - 480px */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .middle-strip {
    order: 1;
  }

  .left-strip {
    order: 2;
  }

  .right-strip {
    order: 3;
  }

  .header {
    padding: 12px 0;
  }

  .header-content {
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
  }

  .site-title {
    font-size: 18px;
    margin-bottom: 8px;
    width: 100%;
  }

  .main-menu {
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link {
    font-size: 12px;
    padding: 6px 10px;
  }

  .container {
    padding: 0;
  }

  .content-wrapper {
    gap: 0;
  }

  .strip {
    padding: 15px;
    min-height: auto;
  }

  .middle-strip {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .page-title {
    font-size: 18px;
    padding-bottom: 15px;
  }

  .section-header {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .page-content {
    font-size: 14px;
    line-height: 1.5;
  }

  .portrait-image {
    width: 70px;
    height: 70px;
  }

  .link-item {
    padding: 15px;
    font-size: 13px;
  }

  .link-icon {
    width: 24px;
    height: 24px;
  }

  .content-image {
    margin-top: 15px;
  }

  .welcome-link {
    font-size: 40px;
  }

  .landing-content {
    top: calc(50% - 60px);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  color: #7f8c8d;
  padding: 80px 40px;
  font-style: italic;
}

/* Landing Page Styles */
.landing-page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.landing-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.landing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 2;
}

.landing-content {
  position: absolute;
  top: calc(50% - 90px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
}

.welcome-link {
  font-size: 60px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.welcome-link:hover {
  color: rgb(224, 224, 224);
}
