.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: var(--bg-color, #08160F); /* Background */
}

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

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

.page-blog__dark-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-blog__text-block {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-blog__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__card p {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1;
}

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

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

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

.page-blog__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2AD16F; /* Button color for border */
}

.page-blog__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F;
  transform: translateY(-2px);
}

.page-blog__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-blog__btn-text:hover {
  color: #F2C14E; /* Gold */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect, but not on the image itself */
  padding: 30px;
  background: rgba(17, 39, 27, 0.9); /* Card B G with opacity */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E;
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.1;
}

.page-blog__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-content .page-blog__btn-primary {
  margin-top: 20px;
}

/* About Section */
.page-blog__about-section .page-blog__image-container {
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
}

.page-blog__about-section .page-blog__image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

/* Features Section */
.page-blog__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__feature-item {
  text-align: center;
}

.page-blog__feature-item p {
  text-align: left;
}

.page-blog__features-section .page-blog__btn-secondary {
  margin-top: 40px;
}

/* Games Showcase Section */
.page-blog__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E;
}

.page-blog__game-card .page-blog__card-title {
  font-size: 20px;
  text-align: center;
}

.page-blog__game-card p {
  font-size: 15px;
  text-align: center;
}

.page-blog__game-card .page-blog__btn-text {
  display: block;
  text-align: center;
}

/* Guide Section */
.page-blog__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-blog__guide-text {
  flex: 1;
  min-width: 300px;
}

.page-blog__guide-text p {
  text-align: left;
  margin-bottom: 20px;
  color: #A7D9B8;
}

.page-blog__guide-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__guide-text .page-blog__btn-primary,
.page-blog__guide-text .page-blog__btn-secondary {
  margin-right: 15px;
  margin-top: 20px;
}

.page-blog__guide-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-blog__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

/* Latest Posts Section */
.page-blog__latest-posts .page-blog__text-block {
  margin-bottom: 40px;
}

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
}

.page-blog__post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E;
}

.page-blog__post-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #57E38D; /* Glow */
}

.page-blog__post-meta {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

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

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

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card B G */
  color: #F2FFF6; /* Text Main */
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

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: #1E3A2A; /* Divider */
}

.page-blog__faq-qtext {
  flex: 1;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

.page-blog__faq-answer p {
    margin-bottom: 0;
    text-align: left;
    color: #A7D9B8; /* Text Secondary */
}

/* CTA Section */
.page-blog__cta-section {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-blog__cta-section .page-blog__text-block {
  margin-bottom: 40px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -100px;
    padding: 25px;
  }

  .page-blog__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-blog__hero-description {
    font-size: 17px;
  }

  .page-blog__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }

  .page-blog__text-block {
    font-size: 16px;
  }

  .page-blog__feature-grid,
  .page-blog__game-cards-grid,
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-blog__guide-content {
    flex-direction: column;
  }

  .page-blog__guide-text,
  .page-blog__guide-image {
    width: 100%;
    min-width: unset;
  }
}

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

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

  .page-blog__hero-section {
    padding-bottom: 40px;
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-blog__hero-image {
    height: 350px;
  }

  .page-blog__hero-image img {
    object-fit: contain !important; /* Mobile HERO image object-fit: contain */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-blog__hero-content {
    margin-top: -80px;
    padding: 20px;
    max-width: calc(100% - 30px);
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 38px);
    margin-bottom: 15px;
  }

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

  .page-blog__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 30px;
  }

  .page-blog__text-block {
    font-size: 15px;
    margin-bottom: 20px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__card {
    padding: 20px;
  }

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

  .page-blog__card p {
    font-size: 14px;
  }

  .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 15px;
    font-size: 15px;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important; /* Mobile buttons stack vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__guide-text .page-blog__btn-primary,
  .page-blog__guide-text .page-blog__btn-secondary {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-blog__feature-grid,
  .page-blog__game-cards-grid,
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__game-card img,
  .page-blog__post-card img {
    
  }

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

  .page-blog__post-meta,
  .page-blog__post-excerpt {
    font-size: 13px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
    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 15px;
    font-size: 14px;
  }

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image,
  .page-blog__guide-image,
  .page-blog__about-section .page-blog__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-blog__hero-image, .page-blog__guide-image {
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__games-showcase .page-blog__text-block,
  .page-blog__latest-posts .page-blog__text-block {
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog__post-grid {
    overflow-x: hidden; /* Ensure no horizontal scroll for blog post grid */
  }
}