/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, explicit for clarity */
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand color as background */
}

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay for text readability */
  padding: 30px;
  border-radius: 12px;
}

.page-blog__main-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-blog__btn-primary:hover {
  background-color: #e02a2a;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin-left: 15px;
}

.page-blog__btn-secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-blog__intro-section,
.page-blog__featured-articles,
.page-blog__sports-betting-guide,
.page-blog__news-updates,
.page-blog__final-cta {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-blog__categories-section,
.page-blog__casino-strategies,
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

.page-blog__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-blog__intro-section .page-blog__section-title,
.page-blog__featured-articles .page-blog__section-title,
.page-blog__sports-betting-guide .page-blog__section-title,
.page-blog__news-updates .page-blog__section-title,
.page-blog__final-cta .page-blog__section-title {
  color: #ffffff; /* Ensure white title on dark background */
}

.page-blog__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

.page-blog__highlight {
  color: #FFFF00; /* Highlight color for keywords */
  font-weight: 600;
}

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

.page-blog__category-card,
.page-blog__article-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__category-card:hover,
.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__category-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__category-title,
.page-blog__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__category-title a,
.page-blog__article-title a {
  color: #FFFF00; /* Link color for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__category-title a:hover,
.page-blog__article-title a:hover {
  color: #ffffff;
}

.page-blog__category-description,
.page-blog__article-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-blog__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__article-content {
  text-align: left;
  width: 100%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__article-meta {
  font-size: 0.85rem;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-blog__read-more {
  display: inline-block;
  margin-top: 15px;
  color: #FFFF00;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.page-blog__image-full-width {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__news-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__news-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-blog__news-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.page-blog__news-title a:hover {
  color: #ffffff;
}

.page-blog__news-date {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-blog__news-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-blog__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00;
}

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-blog__faq-answer p {
  margin: 0;
}

.page-blog__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-blog__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 25px;
  }

  .page-blog__main-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: 2rem;
  }

  .page-blog__text-block {
    font-size: 1rem;
  }

  .page-blog__category-title,
  .page-blog__article-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section,
  .page-blog__intro-section,
  .page-blog__categories-section,
  .page-blog__featured-articles,
  .page-blog__sports-betting-guide,
  .page-blog__casino-strategies,
  .page-blog__news-updates,
  .page-blog__faq-section,
  .page-blog__final-cta {
    padding: 40px 0;
  }

  .page-blog__hero-content {
    padding: 20px;
    margin-top: 10px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-blog__description {
    font-size: 0.95rem;
  }

  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-blog__btn-secondary {
    margin-top: 15px; /* Stack buttons on mobile */
  }

  .page-blog__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-blog__text-block {
    font-size: 0.95rem;
  }

  .page-blog__category-grid,
  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__category-card,
  .page-blog__article-card {
    padding: 20px;
  }

  .page-blog__category-icon,
  .page-blog__article-image {
    height: auto;
    max-height: 250px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog__category-title,
  .page-blog__article-title {
    font-size: 1.2rem;
  }

  .page-blog__news-title {
    font-size: 1.1rem;
  }

  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__hero-image-wrapper,
  .page-blog__container,
  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__news-item,
  .page-blog__faq-item,
  .page-blog__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    padding: 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }
  .page-blog__description {
    font-size: 0.9rem;
  }
  .page-blog__section-title {
    font-size: 1.6rem;
  }
  .page-blog__text-block {
    font-size: 0.9rem;
  }
}

/* Ensure all links have proper contrast */
.page-blog a {
  color: #FFFF00; /* Default link color */
}

.page-blog a:hover {
  color: #ffffff;
}

.page-blog__cta-button.page-blog__btn-primary {
  color: #FFFF00; /* Specific font color for primary button */
}

.page-blog__cta-button.page-blog__btn-secondary {
  color: #ffffff; /* Specific font color for secondary button */
}

/* Default styles for paragraphs and list items for contrast */
.page-blog p,
.page-blog li {
  color: #f0f0f0; /* Light text on dark background */
}

.page-blog__category-card,
.page-blog__article-card,
.page-blog__news-item,
.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-blog__dark-bg p,
.page-blog__dark-bg li {
  color: #ffffff;
}

.page-blog__intro-section,
.page-blog__featured-articles,
.page-blog__sports-betting-guide,
.page-blog__news-updates,
.page-blog__final-cta {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-blog__intro-section p,
.page-blog__featured-articles p,
.page-blog__sports-betting-guide p,
.page-blog__news-updates p,
.page-blog__final-cta p {
  color: #f0f0f0;
}

.page-blog__intro-section .page-blog__section-title,
.page-blog__featured-articles .page-blog__section-title,
.page-blog__sports-betting-guide .page-blog__section-title,
.page-blog__news-updates .page-blog__section-title,
.page-blog__final-cta .page-blog__section-title {
  color: #ffffff;
}