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

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  color: #FFFFFF; /* Light text for dark overlay on hero image */
  text-align: center;
}

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

.page-blog__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 40px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

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

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

.page-blog__hero-button:hover {
  background-color: #e0a53a;
}

.page-blog__hero-button--secondary {
  background-color: #FFFFFF; /* Register color for secondary CTA */
  color: #000000;
}

.page-blog__hero-button--secondary:hover {
  background-color: #e0e0e0;
}

/* Section Titles */
.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  margin-top: 80px;
}

/* Article Grid */
.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-blog__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px 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__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
  line-height: 1.3;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Pushes to the bottom */
}

.page-blog__read-more:hover {
  color: #e0a53a;
}

/* Mobile Betting Section */
.page-blog__mobile-betting {
  background-color: #F8F8F8;
  padding: 80px 0;
}

.page-blog__content-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-blog__mobile-image {
  flex: 1 1 500px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-blog__mobile-text-content {
  flex: 1 1 400px;
  max-width: 50%;
}

.page-blog__text-paragraph {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 30px;
}

/* Call to Action Section */
.page-blog__cta-section {
  background-color: #000000;
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 10px;
}

.page-blog__cta-button:hover {
  background-color: #e0a53a;
  transform: translateY(-3px);
}

.page-blog__cta-button--secondary {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__cta-button--secondary:hover {
  background-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__mobile-image,
  .page-blog__mobile-text-content {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .page-blog__content-row {
    flex-direction: column;
  }
  .page-blog__mobile-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .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__section-title {
    font-size: 1.8em;
    margin-top: 60px;
    margin-bottom: 40px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 15px 25px;
    font-size: 1.1em;
    display: block;
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
  }

  /* Mobile content area images must not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image, .page-blog__mobile-image {
    width: 100%; /* Ensure images within articles/mobile section scale */
    height: auto;
    min-width: 200px; /* Enforce min-size for content images */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-content {
    padding: 20px;
  }
  .page-blog__hero-button {
    width: 100%;
    margin: 5px 0;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}

/* Ensure all content images meet minimum size requirements */
.page-blog__article-image, .page-blog__mobile-image {
  min-width: 200px;
  min-height: 200px;
}