/* style/blog.css */
/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Overall page background */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  background-color: #08160F; /* Ensure background matches body */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper doesn't overflow */
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  filter: none; /* Ensure no filter is applied */
}

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #F2FFF6; /* Light text for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

/* Call to Action Button */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Light text for button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* General Container */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Title */
.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-blog__section-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #08160F; /* Match body background */
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card Background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__post-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-blog__post-thumbnail-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for thumbnails */
  overflow: hidden;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-category {
  display: inline-block;
  background-color: #2E7A4E; /* Border color for category background */
  color: #F2FFF6;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__post-title {
  font-size: 1.3rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-blog__post-date {
  font-size: 0.85rem;
  color: #A7D9B8;
}

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #2AD16F;
  color: #2AD16F;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__view-all-button:hover {
  background-color: #2AD16F;
  color: #08160F;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #08160F; /* Match body background */
}

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

.page-blog__category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #11271B; /* Card Background */
  border-radius: 10px;
  padding: 25px 15px;
  text-decoration: none;
  color: #F2FFF6;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  background-color: #1E3A2A; /* Deep Green for hover */
}

.page-blog__category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  background-color: #2E7A4E;
  border-radius: 50%;
  color: #F2FFF6;
  font-size: 1.8rem; /* Placeholder for actual icon */
}

/* Pseudo-elements for category icons (to avoid small image files) */
.page-blog__category-item:nth-child(1) .page-blog__category-icon::before { content: '⚽'; } /* Sports */
.page-blog__category-item:nth-child(2) .page-blog__category-icon::before { content: '🃏'; } /* Casino */
.page-blog__category-item:nth-child(3) .page-blog__category-icon::before { content: '🎰'; } /* Slots */
.page-blog__category-item:nth-child(4) .page-blog__category-icon::before { content: '🎁'; } /* Promotions */
.page-blog__category-item:nth-child(5) .page-blog__category-icon::before { content: '📰'; } /* News */

.page-blog__category-name {
  text-align: center;
}

/* Final CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green for CTA background */
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
  color: #F2FFF6;
  padding-top: 0;
  margin-bottom: 20px;
}

.page-blog__cta-section .page-blog__section-description {
  color: #A7D9B8;
  margin-bottom: 40px;
}

.page-blog__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Ensure all images are responsive and prevent overflow */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-section {
    padding: 10px 0 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-blog__hero-image {
    max-height: 400px;
  }

  .page-blog__hero-content {
    padding: 0 15px;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-blog__cta-button,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Container padding for mobile */
  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding-top: 40px;
    margin-bottom: 30px;
  }

  .page-blog__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__cta-section {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__post-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .page-blog__post-thumbnail-wrapper {
    height: 180px; /* Adjust thumbnail height */
  }

  .page-blog__post-title {
    font-size: 1.2rem;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Smaller categories on mobile */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__category-item {
    padding: 20px 10px;
    font-size: 1rem;
  }

  .page-blog__category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    font-size: 1.5rem;
  }

  .page-blog__view-all-button {
    padding: 10px 20px;
    font-size: 0.95rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Specific handling for elements that might contain images/buttons/videos */
  .page-blog__posts-grid,
  .page-blog__categories-grid,
  .page-blog__view-all-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure no filter on images */
.page-blog img {
  filter: none;
}