/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F4F7FB; /* Page background */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-blog__dark-bg .page-blog__section-title,
.page-blog__dark-bg .page-blog__section-description,
.page-blog__dark-bg h3 {
  color: #ffffff;
}

.page-blog__light-bg {
  background: #FFFFFF;
  color: #333333;
}

/* Hero Section */
.page-blog__hero-section {
  padding: 10px 0 60px;
  display: flex;
  align-items: center;
}

.page-blog__hero-section .page-blog__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__hero-content {
  flex: 1;
  text-align: left;
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-blog__cta-group {
  display: flex;
  gap: 20px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  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, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

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

.page-blog__hero-image-wrapper {
  flex: 1;
  text-align: right;
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 60px 0;
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__article-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

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

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

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

.page-blog__article-title a {
  color: #1F2D3D;
  text-decoration: none;
}

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

.page-blog__article-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

.page-blog__read-more-btn:hover {
  text-decoration: underline;
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-blog__category-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-blog__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-blog__category-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-blog__category-title a {
  color: #1F2D3D;
  text-decoration: none;
}

.page-blog__category-title a:hover {
  color: #2F6BFF;
}

.page-blog__category-desc {
  font-size: 15px;
  color: #555;
  padding: 0 15px;
}

/* Why Follow Section */
.page-blog__why-follow-section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__why-follow-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-blog__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-blog__feature-item h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-blog__feature-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-blog__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
}

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;
}

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: #f5f5f5;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555;
}

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

.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__articles-grid,
.page-blog__categories-grid,
.page-blog__why-follow-content,
.page-blog__cta-group,
.page-blog__cta-wrapper {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Fixed header padding (rely on body padding-top from shared.css) */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles main offset */
}

/* Responsive styles */
@media (max-width: 1023px) {
  /* Homepage trial layout CSS - MUST BE INCLUDED AS IS for compliance, even if not directly used by blog page content */
  .page-blog__home-hero {
    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 {
    display: none !important;
  }
  .page-blog__game-trial {
    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 {
    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 {
    display: none !important;
  }
  .page-blog__game-trial-viewport {
    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 {
    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 {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  /* General blog page adjustments for tablet */
  .page-blog__hero-section .page-blog__container {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__hero-content {
    order: 2;
  }

  .page-blog__hero-image-wrapper {
    order: 1;
    text-align: center;
    margin-bottom: 30px;
  }

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

  .page-blog__articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__why-follow-content {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 1024px) {
  /* Homepage trial layout CSS - MUST BE INCLUDED AS IS for compliance, even if not directly used by blog page content */
  .page-blog__home-hero {
    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 {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }

  /* Placeholder for other PC modules if they were present on homepage */
  .page-blog__promo-strip { /* Example for promo strip, if it were on blog page */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-blog__promo-card-content { /* Example for promo card content */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .page-blog__hot-games-grid { /* Example for hot games grid, if it were on blog page */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: block;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Mobile specific adjustments for blog page */
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-blog__main-title {
    font-size: 32px;
    text-align: center;
  }

  .page-blog__hero-description {
    font-size: 16px;
    text-align: center;
  }

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

  .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: 12px 20px;
  }

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

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

  .page-blog__section-description {
    font-size: 16px;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__category-image {
    height: 160px;
  }

  .page-blog__category-title {
    font-size: 18px;
  }

  .page-blog__why-follow-content {
    grid-template-columns: 1fr;
  }

  .page-blog__feature-item {
    padding: 20px;
  }

  .page-blog__feature-item h3 {
    font-size: 20px;
  }

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

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

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

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

  /* General image responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Placeholder for promo strip for 768px */
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(1, 1fr);
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-blog__promo-card-content {
    flex-direction: column;
    text-align: center;
  }

  /* Placeholder for hot games for 768px */
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: none; /* Hide for mobile if needed */
  }

  /* Placeholder for brand intro for 768px */
  .page-blog__brand-intro {
    padding: 20px 15px;
  }

  /* Placeholder for winner ticker for 768px */
  .page-blog__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 0;
  }
  body {
    padding-bottom: 50px; /* Adjust if ticker height varies */
  }
}

/* Game Trial specific CSS, must be included as is */
.page-blog__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-blog__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}
.page-blog__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}
.page-blog__game-trial-shell{border:1px solid #D6E2FF;border-radius:10px;overflow:hidden;}
.page-blog__reward-modal{position:fixed;inset:0;z-index:10000;}
.page-blog__reward-modal.is-hidden{display:none!important;pointer-events:none!important;}
.page-blog__reward-modal-close{position:absolute;top:15px;right:15px;font-size:24px;color:#fff;cursor:pointer;background:none;border:none;}