/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Deep dark grey for text on light background */
  background-color: #FFFFFF; /* White background as per instructions */
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

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

.page-blog__hero-section {
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* White text on dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative; /* Ensure content is above image overlay */
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight color for title */
  font-weight: bold;
  line-height: 1.2;
}

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

.page-blog__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-blog__btn--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000; /* Dark text on light button */
  border: 2px solid #FCBC45;
}

.page-blog__btn--primary:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-blog__btn--secondary {
  background-color: transparent;
  color: #FFFFFF; /* White text for secondary action */
  border: 2px solid #FFFFFF;
}

.page-blog__btn--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background effect */
  filter: brightness(0.7); /* Darken image slightly */
}

.page-blog__blog-posts-section {
  padding: 60px 0;
  background-color: #F8F8F8; /* Light grey background for contrast */
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000; /* Main dark color for titles */
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

.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(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-blog__post-title {
  font-size: 1.5em;
  color: #000000;
  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-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__btn--link {
  background-color: #000000; /* Dark button for link */
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  text-align: center;
  align-self: flex-start;
}

.page-blog__btn--link:hover {
  background-color: #333333;
}

.page-blog__about-arena-plus-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-blog__intro-paragraph,
.page-blog__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__sub-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__feature-list,
.page-blog__installation-steps {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__feature-list li,
.page-blog__installation-steps li {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-blog__feature-list li strong {
  color: #000000;
}

.page-blog__installation-steps {
  list-style-type: decimal;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-blog__content-image--vertical {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.page-blog__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
}

.page-blog__cta-content {
  max-width: 800px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FCBC45;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
}

.page-blog__btn--cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
  border: 2px solid #FCBC45;
}

.page-blog__btn--cta:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__sub-title {
    font-size: 1.8em;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__sub-title {
    font-size: 1.6em;
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__intro-paragraph,
  .page-blog__paragraph,
  .page-blog__feature-list li,
  .page-blog__installation-steps li {
    font-size: 0.95em;
  }
  .page-blog__content-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__cta-section {
    padding: 40px 15px;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__btn--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Mobile content area image resizing to prevent overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__sub-title {
    font-size: 1.4em;
  }
  .page-blog__post-title {
    font-size: 1.1em;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
}