.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-green);
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 600px; /* Limit hero image height */
}

.page-blog__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(8, 22, 15, 0.9), rgba(8, 22, 15, 0.6), rgba(8, 22, 15, 0));
  color: var(--text-main);
  text-align: center;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

.page-blog__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  opacity: 0.9;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
  text-shadow: 0 0 5px rgba(87, 227, 141, 0.5);
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow);
  border-radius: 2px;
}

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

.page-blog__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
  margin-bottom: 30px;
}

.page-blog__latest-articles, .page-blog__games-section, .page-blog__safety-support-section, .page-blog__faq-section {
  background-color: #08160F;
  color: var(--text-main);
}

.page-blog__guide-section, .page-blog__promotions-section, .page-blog__future-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-blog__article-grid, .page-blog__game-categories, .page-blog__promo-cards, .page-blog__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-blog__article-card, .page-blog__category-card, .page-blog__promo-card, .page-blog__feature-item {
  background-color: var(--card-b-g);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover, .page-blog__category-card:hover, .page-blog__promo-card:hover, .page-blog__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(17, 168, 78, 0.4);
}

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

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

.page-blog__card-title, .page-blog__category-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__card-title a, .page-blog__category-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover, .page-blog__category-title a:hover {
  color: var(--glow);
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-blog__card-excerpt, .page-blog__category-description {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-blog__button-container {
  text-align: center;
  margin-top: 40px;
}

.page-blog__image-with-text {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-blog__image-left {
  width: 50%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.page-blog__text-content {
  width: 50%;
}

.page-blog__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__text-content p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-blog__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-blog__feature-description {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--glow);
  border: 2px solid var(--glow);
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin-left: 20px;
}

.page-blog__btn-secondary:hover {
  background: var(--glow);
  color: #08160F;
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

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

.page-blog__faq-item {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  background-color: #11271B;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #1a362a;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--glow);
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
}

.page-blog__faq-answer p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Details tag specific styling for native behavior */
.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-item summary {
  list-style: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 30px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 3.5vw, 3em);
  }

  .page-blog__hero-description {
    font-size: clamp(0.9em, 1.3vw, 1.1em);
    max-width: 90%;
  }

  .page-blog__section-title {
    font-size: clamp(1.6em, 2.5vw, 2.2em);
  }

  .page-blog__image-with-text {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__image-left, .page-blog__text-content {
    width: 100%;
  }

  .page-blog__image-left {
    margin-bottom: 20px;
  }

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

  .page-blog__card-title, .page-blog__category-title {
    font-size: 1.2em;
  }

  .page-blog__feature-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-blog img, .page-blog__article-image, .page-blog__category-image, .page-blog__promo-image, .page-blog__image-left, .page-blog__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__container, .page-blog__hero-section, .page-blog__latest-articles, .page-blog__guide-section, .page-blog__games-section, .page-blog__promotions-section, .page-blog__safety-support-section, .page-blog__future-section, .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-blog__hero-content {
    position: relative;
    background: linear-gradient(to bottom, rgba(8, 22, 15, 0.9), rgba(8, 22, 15, 0.9));
    padding: 20px 15px;
  }

  .page-blog__hero-image {
    position: relative;
    margin-bottom: -1px; /* Remove gap between image and content */
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

  .page-blog__cta-button, .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
  }

  .page-blog__button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__article-grid, .page-blog__game-categories, .page-blog__promo-cards, .page-blog__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__image-with-text {
    flex-direction: column;
  }

  .page-blog__image-left, .page-blog__text-content {
    width: 100%;
  }

  .page-blog__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px;
  }

  .page-blog__faq-item[open] .page-blog__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    padding: 15px 10px;
  }

  .page-blog__main-title {
    font-size: clamp(1.3em, 7vw, 2em);
  }

  .page-blog__hero-description {
    font-size: 0.85em;
  }

  .page-blog__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }

  .page-blog__text-block, .page-blog__card-excerpt, .page-blog__category-description, .page-blog__text-content p, .page-blog__feature-description, .page-blog__faq-answer p {
    font-size: 0.9em;
  }

  .page-blog__cta-button, .page-blog__btn-secondary {
    font-size: 0.95em !important;
  }
}