body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', Arial, sans-serif;
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000000;
  height: 100vh; /* Full høyde */
  overflow: hidden; /* Sikrer at innholdet ikke stikker utenfor */
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/writesite_BG.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2; /* Juster gjennomsiktigheten her */
  z-index: -1; /* Sørg for at bildet ligger bak innholdet */
}

.container {
  position: relative;
  z-index: 1; /* Sørg for at innholdet vises over bakgrunnen */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.container .logo {
  width: 300px;
  height: auto;
  margin-bottom: -2rem;
}

.container p {
  max-width: 90%;
  margin: 1rem auto;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.links a {
  color: #000000;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.button {
  padding: 10px 20px;
  border: 2px solid #000000;
  color: #000000;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 1rem;
}

.button:hover {
  background-color: #fff;
  color: #000;
}

/* Posts Section */
.posts-section {
  padding: 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-description {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.post-link {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

.post-link:hover {
  text-decoration: underline;

}
.post-card iframe {
  margin-top: 1rem;
  border-radius: 8px;
  border: none;
  width: 100%;
  height: 200px;
}
