/* style/blog.css */
.page-blog {
  color: #333333; /* Dark text for light background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: var(--secondary-color, #FFFFFF);
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  padding: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
  filter: brightness(0.8);
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  z-index: 1;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FCBC45;
}

.page-blog__hero-button:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #FCBC45;
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__about-vipph-section,
.page-blog__contact-section {
  padding: 60px 0;
  text-align: center;
  background-color: #FFFFFF;
}

.page-blog__text-content {
  font-size: 1.1em;
  color: #333333;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-blog__about-button,
.page-blog__contact-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__about-button:hover,
.page-blog__contact-button:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-blog__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__cta-section .page-blog__section-title::after {
  background-color: #FCBC45;
}

.page-blog__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.page-blog__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-blog__cta-button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-blog__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__cta-button--login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-blog__more-resources-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-blog__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__resource-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__resource-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__resource-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__resource-title a:hover {
  color: #FCBC45;
}

.page-blog__resource-description {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 20px;
}

.page-blog__resource-link {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__resource-link:hover {
  color: #e0a53b;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.2em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset-mobile, 80px); /* Adjust for mobile header offset */
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__posts-grid,
  .page-blog__resources-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    height: 200px;
    max-width: 100%; /* Ensure images are responsive */
  }
  .page-blog__post-card {
    max-width: 100%;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-blog__text-content {
    font-size: 1em;
  }
  .page-blog__about-button,
  .page-blog__contact-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  /* Content area images must not cause overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-section {
    padding: 40px 0;
  }
  .page-blog__hero-content {
    width: 95%;
  }
  .page-blog__latest-posts-section,
  .page-blog__about-vipph-section,
  .page-blog__cta-section,
  .page-blog__more-resources-section,
  .page-blog__contact-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    margin-top: 40px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__resource-title {
    font-size: 1.1em;
  }
  .page-blog__cta-button {
    font-size: 1.1em;
    padding: 12px 20px;
  }
}