/* General styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px; /* Small top padding, relying on body for header offset */
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.page-blog__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp as per H1 font size rule */
  color: #F2FFF6; /* Text Main */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-blog__description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* CTA Button */
.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* For responsiveness */
  white-space: normal; /* For responsiveness */
  word-wrap: break-word; /* For responsiveness */
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
}

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

.page-blog__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin: 60px 0 40px;
  font-weight: 700;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 40px 0;
}

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

.page-blog__post-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__post-title {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.page-blog__post-excerpt {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 13px;
  color: #2E7A4E; /* Border color used for date highlight */
  text-align: right;
  display: block;
  margin-top: auto;
}

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

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

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

.page-blog__category-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  text-decoration: none;
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-blog__category-name {
  font-size: 18px;
  font-weight: 600;
  padding: 0 15px;
}

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

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
}
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: #0A4B2C; /* Deep Green */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 17px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 26px; /* Larger icon */
  font-weight: bold;
  color: #2AD16F; /* Button highlight color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #08160F; /* Background */
  border-top: 1px solid #1E3A2A; /* Divider */
  border-radius: 0 0 8px 8px;
  color: #A7D9B8; /* Text Secondary */
}
.page-blog__faq-answer p {
  margin: 0;
  padding-top: 15px;
  font-size: 15px;
}
.page-blog__faq-answer a {
  color: #2AD16F; /* Link color */
  text-decoration: underline;
}
.page-blog__faq-answer a:hover {
  text-decoration: none;
}


/* CTA Section at bottom */
.page-blog__cta-section {
  padding: 60px 20px;
  text-align: center;
  background: #0A4B2C; /* Deep Green */
  margin-top: 40px;
  border-radius: 10px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-section .page-blog__section-title {
  margin-top: 0;
  color: #F2FFF6;
}

.page-blog__cta-section .page-blog__description {
  margin-bottom: 40px;
  color: #A7D9B8;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For responsiveness */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
}

.page-blog__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* Button highlight color */
  border: 2px solid #2AD16F; /* Border color */
}

.page-blog__btn-secondary:hover {
  background: #0A4B2C; /* Deep Green */
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
}

/* --- Responsive Design --- */

/* Mobile & Tablet common styles */
@media (max-width: 1023px) {
  /* Homepage specific rules (must be included as per prompt, even if not directly used by blog page) */
  .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;
  }

  /* Adjustments for blog content on smaller screens */
  .page-blog__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-blog__description {
    font-size: 16px;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  /* Homepage specific rules (must be included as per prompt, even if not directly used by blog page) */
  .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;
  }
  /* Additional homepage modules mentioned in prompt */
  .page-blog__promo-strip {
    margin-top: 16px; /* Placeholder for promo strip, if it were on blog */
  }
  .page-blog__hot-games-grid {
    /* Placeholder for hot games grid, if it were on blog */
    grid-template-columns: repeat(6, 1fr); /* 6 columns on desktop */
    gap: 20px;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: block; /* Show details on desktop */
  }
  .page-blog__hot-games-card .page-blog__game-image {
    width: 100%;
    height: auto;
  }
  .page-blog__hot-games-card .page-blog__game-title {
    text-align: center;
  }
  .page-blog__hero-brand .page-blog__trust-icons {
    display: flex; /* Horizontal for trust icons */
    justify-content: space-around;
  }
  .page-blog__winner-ticker {
    /* Placeholder for winner ticker, if it were on blog */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  /* General content area images and containers */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-section {
    flex-direction: column;
    padding-top: 20px; /* Small top padding */
  }
  .page-blog__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-blog__description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-blog__section-title {
    font-size: 26px;
    margin: 40px 0 30px;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 14px;
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-blog__category-image {
    height: 120px;
  }
  .page-blog__category-name {
    font-size: 16px;
  }
  /* FAQ styles for mobile */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
  }
  .page-blog__faq-answer p {
    font-size: 14px;
  }
  /* CTA buttons for mobile */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Ensure buttons have padding from edge */
  }
  .page-blog__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Placeholder for homepage promo strip (must be included) */
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(4, 1fr) !important; /* Ensure 4 columns, no overflow */
    overflow-x: hidden !important;
    padding: 0 15px; /* Add padding to prevent overflow */
    box-sizing: border-box !important;
  }
  .page-blog__promo-strip-card {
    flex-direction: column !important; /* Stack image and text */
    text-align: center;
  }
  .page-blog__promo-strip-card img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-blog__promo-strip-card .page-blog__promo-content {
    padding: 10px;
  }
  .page-blog__promo-strip-card .page-blog__promo-button {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Placeholder for homepage hot games (must be included) */
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box !important;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: none !important;
  }
  .page-blog__hot-games-card img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-blog__hot-games-card .page-blog__game-title {
    font-size: 15px;
    text-align: center;
  }

  /* Placeholder for brand intro (must be included if it were on blog and visible) */
  .page-blog__brand-intro {
    padding: 30px 15px !important;
  }

  /* Placeholder for winner ticker (must be included) */
  .page-blog__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0,0,0,0.8);
    padding: 10px 15px;
    box-sizing: border-box;
    color: #F2FFF6;
  }
  /* Adjust body/main padding to accommodate fixed footer */
  body {
    padding-bottom: 50px; /* Example value, adjust based on ticker height */
  }
  .page-blog {
    padding-bottom: 50px; /* Ensure content doesn't get covered */
  }
}

/* Specific overlay and modal styles for game trial if it were present (from 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;}
/* Additional styles for the reward modal (from prompt) */
.page-blog__reward-modal {
  display: flex;
  justify-content: center;
  align-items: 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: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
  color: #F2FFF6; /* Text Main */
}
.page-blog__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #A7D9B8; /* Text Secondary */
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.page-blog__reward-modal-close:hover {
  color: #F2FFF6;
}
.page-blog__reward-modal h3 {
  font-size: 24px;
  margin-top: 0;
  color: #F2C14E; /* Gold */
}
.page-blog__reward-modal p {
  font-size: 16px;
  margin-bottom: 25px;
}
.page-blog__reward-modal .page-blog__cta-button {
  width: auto;
  min-width: 150px;
}