/* -------------------------------------------------- */
/*            Verbatim Homepage Trial CSS             */
/* -------------------------------------------------- */
@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;
  }
}

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

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --text-main-color: #333333;
  --border-color: #E0E0E0;
}

.page-blog {
  color: var(--text-main-color); /* Default text color for light body background */
  background-color: var(--background-color);
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-blog__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 15px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  text-align: center;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.4);
}

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Intro Section */
.page-blog__intro-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* Featured Posts Section */
.page-blog__featured-posts {
  background: var(--primary-color);
  color: #ffffff;
  padding: 60px 0;
}

.page-blog__featured-posts .page-blog__section-title {
  color: #ffffff;
}

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__post-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

.page-blog__post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-blog__cta-row {
  text-align: center;
}

.page-blog__cta-button--outline {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.page-blog__cta-button--outline:hover {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background: var(--background-color);
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-blog__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-main-color);
}

/* Why Us Section */
.page-blog__why-us-section {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 60px 0;
}

.page-blog__why-us-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__why-us-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background: var(--background-color);
}

.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);
  overflow: hidden;
  background: var(--card-bg-color);
}
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-main-color);
}
.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: var(--text-main-color);
}

/* -------------------------------------------------- */
/*             Mobile & Tablet Responsiveness         */
/* -------------------------------------------------- */

@media (max-width: 1023px) {
  .page-blog__hero-image {
    height: 400px;
  }
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  /* General Image Responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* General Container Responsiveness */
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__intro-section,
  .page-blog__featured-posts,
  .page-blog__categories-section,
  .page-blog__why-us-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons Responsiveness */
  .page-blog__cta-button,
  .page-blog__cta-button--outline {
    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;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }
  .page-blog__cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Hero Section */
  .page-blog__hero-image {
    height: 300px;
  }
  .page-blog__hero-content {
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .page-blog__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* Section Titles */
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-top: 25px;
  }

  /* Featured Posts */
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-card {
    padding-bottom: 0;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.2rem;
  }

  /* Categories Section */
  .page-blog__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__category-icon {
    width: 80px;
    height: 80px;
  }
  .page-blog__category-title {
    font-size: 1.3rem;
  }

  /* FAQ Section */
  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; }
}

/* Verbatim CSS for Game Trial Overlay from the prompt */
.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;}
.page-blog__reward-modal-close{position:absolute;top:15px;right:15px;width:30px;height:30px;background:none;border:none;font-size:24px;color:#fff;cursor:pointer;}