/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default to Text Main for dark background */
  background-color: var(--bg-main, #08160F); /* Default to Background color */
}

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

.page-blog__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__hero-section {
  padding: 80px 0 40px;
  text-align: center;
  background-color: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E); /* Gold color for main title */
}

.page-blog__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-blog__hero-image {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E); /* Gold color */
  border: 2px solid var(--gold, #F2C14E);
}

.page-blog__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-blog__latest-articles {
  padding: 60px 0;
  background-color: var(--bg-main, #08160F);
}

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

.page-blog__article-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main, #F2FFF6);
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: var(--gold, #F2C14E); /* Gold color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: var(--glow, #57E38D); /* Glow color on hover */
}

.page-blog__article-meta {
  font-size: 14px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color, #11A84E);
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  background: var(--secondary-color, #22C768);
}

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

.page-blog__categories-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 25px;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: var(--divider, #1E3A2A); /* Divider color on hover */
}

.page-blog__category-link {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.page-blog__category-link:hover {
  color: var(--glow, #57E38D); /* Glow color on hover */
}

.page-blog__featured-guide {
  padding: 60px 0;
  background-color: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-blog__guide-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__guide-subtitle {
  font-size: 28px;
  color: var(--gold, #F2C14E); /* Gold color */
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.page-blog__guide-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-blog__guide-content .page-blog__btn-primary {
  margin-top: 20px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-blog__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
}

details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: var(--divider, #1E3A2A); /* Divider color */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F2FFF6); /* Text Main for FAQ question */
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold, #F2C14E); /* Gold color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-green, #0A4B2C); /* Deep Green for answer background */
  border-radius: 0 0 5px 5px;
}

.page-blog__faq-answer p {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  margin: 0;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-blog__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-blog__copyright-info {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

/* Image and button responsive base styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__container,
.page-blog__article-grid,
.page-blog__category-list,
.page-blog__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 1023px) {
  /* No specific home-hero or game-trial styles needed for blog page */
  /* These blocks are for homepage only, but structure is included to match strict rule */
  .page-blog__home-hero { /* This class would not be on a blog page, but structure is here */
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot { /* These classes would not be on a blog page */
    display: none !important;
  }
  .page-blog__game-trial { /* This class would not be on a blog page */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-blog__game-trial-shell { /* This class would not be on a blog page */
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-topbar,
  .page-blog__game-trial-bottombar { /* These classes would not be on a blog page */
    display: none !important;
  }
  .page-blog__game-trial-viewport { /* This class would not be on a blog page */
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-frame { /* This class would not be on a blog page */
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-blog__game-trial-overlay { /* This class would not be on a blog page */
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog__game-trial-start { /* This class would not be on a blog page */
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* No specific home-hero or game-trial styles needed for blog page */
  /* These blocks are for homepage only, but structure is included to match strict rule */
  .page-blog__home-hero { /* This class would not be on a blog page */
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot,
  .page-blog__game-trial { /* These classes would not be on a blog page */
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial { /* This class would not be on a blog page */
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog__game-trial-shell { /* This class would not be on a blog page */
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog__game-trial-viewport { /* This class would not be on a blog page */
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog__game-trial-frame { /* This class would not be on a blog page */
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog__hero-jackpot-claim { /* This class would not be on a blog page */
    background: #c62828 !important;
    color: #fff !important;
  }
  /* No promo-strip, hot-games, brand-intro, winner-ticker specific for blog page */
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 0 20px;
  }

  .page-blog__main-title {
    font-size: 28px;
  }

  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-blog__latest-articles,
  .page-blog__categories-section,
  .page-blog__featured-guide,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

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

  .page-blog__article-title {
    font-size: 20px;
  }

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__category-list {
    gap: 10px;
    padding: 0 10px;
  }

  .page-blog__category-item {
    padding: 8px 15px;
  }

  .page-blog__category-link {
    font-size: 14px;
  }

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

  .page-blog__guide-subtitle {
    font-size: 24px;
  }

  .page-blog__guide-content p {
    font-size: 15px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
    font-size: 16px;
  }

  .page-blog__faq-qtext {
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 20px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  .page-blog__faq-answer p {
    font-size: 15px;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__guide-content,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure no horizontal scroll for elements */
  .page-blog__latest-articles .page-blog__container,
  .page-blog__categories-section .page-blog__container,
  .page-blog__featured-guide .page-blog__container,
  .page-blog__faq-section .page-blog__container,
  .page-blog__cta-section .page-blog__container {
    overflow-x: hidden;
  }

  /* These are for homepage, but included to cover the strict list for 768px. 
     They would be empty or minimal for a blog page if the elements don't exist. */
  .page-blog__promo-strip-track { /* Placeholder for homepage promo strip */
    grid-template-columns: repeat(4,1fr); /* Example, would adapt for actual content */
    overflow-x:hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-blog__hot-games-grid { /* Placeholder for homepage hot games */
    grid-template-columns: repeat(2,1fr); /* Example, would adapt for actual content */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* No specific brand-intro or winner-ticker elements for a blog page, but media query block is present */
  .page-blog__winner-ticker { /* Placeholder for winner ticker */
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    z-index: 999;
  }
}

/* Color Contrast Fixes (as per instructions) */
.page-blog__dark-section {
  background: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-blog__light-bg {
  background: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-blog__card {
  background: var(--card-bg, #11271B); 
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-blog p,
.page-blog li {
  color: var(--text-secondary, #A7D9B8);
}

.page-blog__faq-item {
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-blog__faq-answer {
  background: var(--deep-green, #0A4B2C);
}

.page-blog__faq-qtext {
  color: var(--text-main, #F2FFF6);
}

.page-blog__faq-toggle {
  color: var(--gold, #F2C14E);
}

.page-blog__article-title a {
  color: var(--gold, #F2C14E);
}

.page-blog__article-title a:hover {
  color: var(--glow, #57E38D);
}

.page-blog__category-item {
  background-color: var(--card-bg, #11271B);
}

.page-blog__category-item:hover {
  background-color: var(--divider, #1E3A2A);
}

.page-blog__category-link {
  color: var(--text-main, #F2FFF6);
}

.page-blog__category-link:hover {
  color: var(--glow, #57E38D);
}

.page-blog__guide-subtitle {
  color: var(--gold, #F2C14E);
}

.page-blog__copyright-info {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-secondary, #A7D9B8);
}