/* ------------------------------------------ */
/*            Homepage Game Trial CSS         */
/*    (Required for output, even if not used) */
/* ------------------------------------------ */
@media (max-width: 1023px) {
  .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;
  }
}

@media (min-width: 1024px) {
  .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;
  }
  /* Homepage specific sections */
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-blog__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .page-blog__promo-card-image {
    width: 120px;
    height: auto;
    margin-right: 15px;
  }
  .page-blog__promo-card-content {
    flex: 1;
  }
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-blog__hot-games-item-name,
  .page-blog__hot-games-item-rtp,
  .page-blog__hot-games-item-desc {
    display: block;
  }
  .page-blog__hot-games-item-image-wrapper {
    text-align: center;
  }
  .page-blog__hot-games-item-image {
    width: 100%;
    height: auto;
  }
  .page-blog__hot-games-item-content {
    text-align: center;
  }
  .page-blog__winner-ticker {
    position: static;
    padding-bottom: 0;
  }
  .page-blog__brand-intro {
    display: block;
  }
  .page-blog__brand-intro-trust-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }
  .page-blog__brand-intro-trust-icon {
    width: 80px;
    height: auto;
  }
}

/* ------------------------------------------ */
/*            Blog Page Specific CSS          */
/* ------------------------------------------ */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --button-login: #EA7C07;
}

.page-blog {
  color: var(--text-dark); /* Assuming body is light from shared.css */
  background-color: var(--bg-light);
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 40px;
  padding-top: 10px; /* Small top padding */
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-blog__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-light);
}

.page-blog__hero-cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid transparent;
}

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

.page-blog__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.page-blog__section {
  padding: 60px 0;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-blog__post-card {
  background: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-blog__post-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-card-title a:hover {
  color: var(--primary-color);
}

.page-blog__post-card-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.page-blog__post-card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.page-blog__post-card-read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.page-blog__post-card-read-more:hover {
  color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-blog__categories {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-blog__categories .page-blog__section-title {
  color: var(--text-light);
}

.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: rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
  background: rgba(255, 255, 255, 0.3);
}

.page-blog__category-item a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.page-blog__dark-section .page-blog__section-title {
  color: var(--text-light);
}

.page-blog__cta-section {
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-blog__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6);
}

.page-blog__cta-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 700px;
  padding: 20px;
}

.page-blog__cta-content .page-blog__section-title {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-blog__faq-section {
  padding: 60px 0;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.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;
}

/* ------------------------------------------ */
/*              Mobile Responsiveness         */
/* ------------------------------------------ */

@media (max-width: 768px) {
  .page-blog__hero-section {
    height: 350px;
    margin-bottom: 30px;
  }
  .page-blog__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-blog__hero-cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-card-image {
    height: 180px;
  }
  .page-blog__post-card-title {
    font-size: 1.2rem;
  }
  .page-blog__post-card-meta,
  .page-blog__post-card-excerpt {
    font-size: 0.85rem;
  }

  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__category-item {
    width: 100%;
    text-align: center;
  }

  .page-blog__cta-section {
    padding: 60px 0;
  }
  .page-blog__cta-content .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__cta-description {
    font-size: 1rem;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-buttons .page-blog__btn-primary,
  .page-blog__cta-buttons .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* General mobile image and container adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__section,
  .page-blog__post-card,
  .page-blog__category-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Homepage specific 768px checklist items */
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
    gap: 15px;
  }
  .page-blog__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__promo-card-image {
    margin-right: 0;
    margin-bottom: 10px;
    width: 80px;
    height: auto;
  }
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-blog__hot-games-item-name,
  .page-blog__hot-games-item-rtp,
  .page-blog__hot-games-item-desc {
    display: none;
  }
  .page-blog__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    padding: 10px 0;
  }
  body {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
  .page-blog__brand-intro {
    padding: 30px 15px;
  }
  .page-blog__brand-intro-trust-icons {
    flex-wrap: wrap;
  }
}

/* Overlay for homepage game trial (required for output) */
.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 rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-blog__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-blog__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-blog__reward-modal-content {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-blog__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 5px;
}
.page-blog__reward-modal-close:hover {
  color: #333;
}
.page-blog__reward-modal h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.page-blog__reward-modal p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}
.page-blog__reward-modal .page-blog__btn-primary {
  width: auto;
  padding: 10px 25px;
}