/* -------------------------------------------------------------------------- */
/*                              Blog Page Styles                              */
/* -------------------------------------------------------------------------- */

/* Base Styles & Typography */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-blog__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-blog__section-intro,
.page-blog__section-text {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  line-height: 1.7;
  color: #FFF6D6;
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 1) 100%), url('[GALLERY:hero:1920x1080:gh88,blog,online_betting,vietnam,golden_black]');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-blog__hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-blog__hero-description {
  font-size: 19px;
  color: #FFF6D6;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-blog__hero-cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
  border: none;
  cursor: pointer;
}

.page-blog__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-blog__article-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border color */
}

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-blog__article-content {
  padding: 20px;
}

.page-blog__article-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-blog__read-more {
  display: inline-flex;
  align-items: center;
  color: #F2C14E; /* Main color */
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FFD36B; /* Glow */
}

.page-blog__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__arrow {
  transform: translateX(5px);
}

.page-blog__cta-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-blog__view-all-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 211, 107, 0.3);
  border: none;
  cursor: pointer;
}

.page-blog__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.5);
}

/* Popular Topics Section */
.page-blog__popular-topics-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
}

.page-blog__topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-blog__topic-card {
  display: block;
  background-color: #0A0A0A; /* Background */
  color: #FFD36B; /* Glow */
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #3A2A12; /* Border color */
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.page-blog__topic-card:hover {
  background-color: rgba(255, 211, 107, 0.1);
  transform: translateY(-5px);
  border-color: #FFD36B;
}

/* Insights & Guides Section */
.page-blog__insights-guides-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
}

.page-blog__faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__faq-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #0A0A0A; /* Background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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;
  color: #FFD36B; /* Glow */
}

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: rgba(255, 211, 107, 0.05);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

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

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #0A0A0A; /* Background */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6; /* Text Main */
  font-size: 16px;
  line-height: 1.7;
}

/* CTA Bottom Section */
.page-blog__cta-bottom-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  text-align: center;
}

.page-blog__cta-bottom-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

.page-blog__cta-bottom-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

/* -------------------------------------------------------------------------- */
/*                               Responsive Styles                            */
/* -------------------------------------------------------------------------- */

/* Mobile/Tablet Specific Styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
  }

  .page-blog__hero-title {
    font-size: clamp(30px, 8vw, 48px);
  }

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

  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__article-title {
    font-size: 20px;
  }

  .page-blog__article-excerpt {
    font-size: 15px;
  }

  .page-blog__view-all-button {
    padding: 10px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__topics-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__topic-card {
    font-size: 16px;
    padding: 15px;
  }

  .page-blog__faq-qtext {
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }

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

  .page-blog__cta-bottom-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image and container responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__cta-button-wrapper,
  .page-blog__topics-grid,
  .page-blog__articles-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}

/* No 1023px/1024px specific rules for blog page as it's not a homepage with game trial */

/* Fixed header padding handled by shared.css body padding-top */

/* Default button styles (for non-specific buttons) */
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Colors for contrast safety - assuming body background is dark (#0A0A0A) */
.page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
    color: #FFD36B;
}
.page-blog p, .page-blog li, .page-blog span, .page-blog a {
    color: #FFF6D6;
}
.page-blog__article-card {
    background: #111111;
    color: #FFF6D6;
}
.page-blog__article-title {
    color: #FFD36B;
}
.page-blog__topic-card {
    background: #0A0A0A;
    color: #FFD36B;
    border-color: #3A2A12;
}
.page-blog__faq-item {
    background: #0A0A0A;
    border-color: #3A2A12;
}
.page-blog__faq-qtext {
    color: #FFD36B;
}
.page-blog__faq-toggle {
    color: #F2C14E;
}
.page-blog__faq-answer {
    color: #FFF6D6;
}