/* style/blog.css */

/* Ensure content is below fixed header */
.page-blog {
  padding-top: var(--header-offset, 120px); /* Default for desktop, adjusted by JS */
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Minimum height for hero */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: 1;
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Max width for content container */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  z-index: 2;
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff; /* White text for contrast against potentially dark hero image */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
}

.page-blog__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-blog__hero-cta-button,
.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-blog__hero-cta-button:hover,
.page-blog__cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  color: #6a0000; /* Darker red on hover */
}

.page-blog__cta-button--large {
  padding: 18px 35px;
  font-size: 1.1em;
}

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

.page-blog__article {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-blog__article-heading {
  font-size: 2.2em;
  color: #8B0000; /* Dark red for main article headings */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-blog__article-subheading {
  font-size: 1.8em;
  color: #FFD700; /* Gold for subheadings */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__article-paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-blog__article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it takes full width of its container */
  margin: 0 auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__cta-section {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog__cta-section--final {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.4em;
  }
  .page-blog__article-heading {
    font-size: 2em;
  }
  .page-blog__article-subheading {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-content {
    padding: 30px;
    max-width: 90%;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__article-heading {
    font-size: 1.8em;
  }
  .page-blog__article-subheading {
    font-size: 1.4em;
  }
  .page-blog__content-area {
    padding: 20px 15px;
  }
  .page-blog__article {
    padding: 20px;
  }
  /* Mobile content image overflow prevention */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px; /* Maintain minimum size */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-cta-button,
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-blog__article-heading {
    font-size: 1.5em;
  }
  .page-blog__article-subheading {
    font-size: 1.2em;
  }
  .page-blog__article-paragraph {
    font-size: 0.95em;
  }
  .page-blog__cta-button--large {
    padding: 15px 30px;
    font-size: 1em;
  }
}