/* Base Styles */
.page-blog-beginner-guide-thaibet {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF); /* Inherit from shared or default to white */
}

.page-blog-beginner-guide-thaibet__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.page-blog-beginner-guide-thaibet__section {
  padding: 60px 0;
}

.page-blog-beginner-guide-thaibet__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-blog-beginner-guide-thaibet__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-beginner-guide-thaibet__sub-title {
  font-size: 28px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 20px;
}

/* Hero Section */
.page-blog-beginner-guide-thaibet__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #017439;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog-beginner-guide-thaibet__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog-beginner-guide-thaibet__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-blog-beginner-guide-thaibet__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px 80px;
  color: #FFFFFF;
}

.page-blog-beginner-guide-thaibet__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-blog-beginner-guide-thaibet__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog-beginner-guide-thaibet__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-blog-beginner-guide-thaibet__btn-primary,
.page-blog-beginner-guide-thaibet__btn-secondary,
.page-blog-beginner-guide-thaibet__btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-blog-beginner-guide-thaibet__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-blog-beginner-guide-thaibet__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-blog-beginner-guide-thaibet__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #FFFFFF;
}

.page-blog-beginner-guide-thaibet__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

.page-blog-beginner-guide-thaibet__btn-card {
  background: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 16px;
}

.page-blog-beginner-guide-thaibet__btn-card:hover {
  background: #005a2d;
  border-color: #005a2d;
}

.page-blog-beginner-guide-thaibet__btn-text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog-beginner-guide-thaibet__btn-text-link:hover {
  color: #005a2d;
}

.page-blog-beginner-guide-thaibet__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* About Thaibet Section */
.page-blog-beginner-guide-thaibet__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-blog-beginner-guide-thaibet__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-blog-beginner-guide-thaibet__dark-bg .page-blog-beginner-guide-thaibet__section-title,
.page-blog-beginner-guide-thaibet__dark-bg .page-blog-beginner-guide-thaibet__sub-title {
  color: #FFFFFF;
}

.page-blog-beginner-guide-thaibet__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog-beginner-guide-thaibet__content-grid-reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 40px;
}

.page-blog-beginner-guide-thaibet__text-block {
  flex: 1;
}

.page-blog-beginner-guide-thaibet__image-block {
  flex: 1;
  text-align: center;
}

.page-blog-beginner-guide-thaibet__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 0 auto;
}

/* Register Guide Section */
.page-blog-beginner-guide-thaibet__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-beginner-guide-thaibet__step-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-blog-beginner-guide-thaibet__step-number {
  font-size: 48px;
  font-weight: 800;
  color: #FFFF00; /* Register/Login font color */
  margin-bottom: 15px;
  line-height: 1;
}

.page-blog-beginner-guide-thaibet__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-blog-beginner-guide-thaibet__step-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Products Overview Section */
.page-blog-beginner-guide-thaibet__product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog-beginner-guide-thaibet__product-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-blog-beginner-guide-thaibet__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-blog-beginner-guide-thaibet__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog-beginner-guide-thaibet__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Promotions Section */
.page-blog-beginner-guide-thaibet__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog-beginner-guide-thaibet__promo-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-blog-beginner-guide-thaibet__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-blog-beginner-guide-thaibet__promo-text {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
details.page-blog-beginner-guide-thaibet__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-blog-beginner-guide-thaibet__faq-item summary.page-blog-beginner-guide-thaibet__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;
}
details.page-blog-beginner-guide-thaibet__faq-item summary.page-blog-beginner-guide-thaibet__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog-beginner-guide-thaibet__faq-item summary.page-blog-beginner-guide-thaibet__faq-question:hover {
  background: #f5f5f5;
}
.page-blog-beginner-guide-thaibet__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-blog-beginner-guide-thaibet__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog-beginner-guide-thaibet__faq-item .page-blog-beginner-guide-thaibet__faq-answer {
  padding: 0 25px 20px;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-blog-beginner-guide-thaibet__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

.page-blog-beginner-guide-thaibet__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* Global Image Styles */
.page-blog-beginner-guide-thaibet img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-beginner-guide-thaibet__main-title {
    font-size: clamp(30px, 4.5vw, 44px);
  }
  .page-blog-beginner-guide-thaibet__section-title {
    font-size: 32px;
  }
  .page-blog-beginner-guide-thaibet__sub-title {
    font-size: 24px;
  }
  .page-blog-beginner-guide-thaibet__description {
    font-size: 18px;
  }
  .page-blog-beginner-guide-thaibet__btn-primary,
  .page-blog-beginner-guide-thaibet__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-blog-beginner-guide-thaibet__product-card {
    padding-bottom: 15px;
  }
  .page-blog-beginner-guide-thaibet__card-title {
    font-size: 20px;
  }
  .page-blog-beginner-guide-thaibet__promo-title {
    font-size: 22px;
  }
  .page-blog-beginner-guide-thaibet__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 849px) {
  .page-blog-beginner-guide-thaibet__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog-beginner-guide-thaibet__hero-image-wrapper {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .page-blog-beginner-guide-thaibet__container {
    padding: 15px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-beginner-guide-thaibet__section {
    padding: 40px 0;
  }

  /* Hero Section */
  .page-blog-beginner-guide-thaibet__hero-section {
    padding-top: 10px; /* Ensure small top padding */
  }
  .page-blog-beginner-guide-thaibet__hero-content {
    padding: 30px 15px 60px;
  }
  .page-blog-beginner-guide-thaibet__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }
  .page-blog-beginner-guide-thaibet__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-blog-beginner-guide-thaibet__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-blog-beginner-guide-thaibet__btn-primary,
  .page-blog-beginner-guide-thaibet__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  /* Content Grids (About, Deposit/Withdraw, Support) */
  .page-blog-beginner-guide-thaibet__content-grid,
  .page-blog-beginner-guide-thaibet__content-grid-reverse {
    flex-direction: column;
    gap: 30px;
  }
  .page-blog-beginner-guide-thaibet__text-block,
  .page-blog-beginner-guide-thaibet__image-block {
    width: 100%;
  }
  .page-blog-beginner-guide-thaibet__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Section Titles */
  .page-blog-beginner-guide-thaibet__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-blog-beginner-guide-thaibet__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog-beginner-guide-thaibet__sub-title {
    font-size: 22px;
  }

  /* Register Steps */
  .page-blog-beginner-guide-thaibet__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog-beginner-guide-thaibet__step-card {
    padding: 25px;
  }
  .page-blog-beginner-guide-thaibet__step-number {
    font-size: 40px;
  }
  .page-blog-beginner-guide-thaibet__step-title {
    font-size: 20px;
  }

  /* Products Overview */
  .page-blog-beginner-guide-thaibet__product-cards-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-blog-beginner-guide-thaibet__card-image {
    height: 180px;
  }
  .page-blog-beginner-guide-thaibet__card-title {
    font-size: 20px;
  }
  .page-blog-beginner-guide-thaibet__card-text {
    font-size: 15px;
  }
  .page-blog-beginner-guide-thaibet__btn-card {
    max-width: calc(100% - 30px) !important; /* Adjust for padding in card */
    width: calc(100% - 30px) !important;
    margin: 0 auto;
  }

  /* Promotions */
  .page-blog-beginner-guide-thaibet__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog-beginner-guide-thaibet__promo-card {
    padding: 25px;
  }
  .page-blog-beginner-guide-thaibet__promo-title {
    font-size: 20px;
  }

  /* FAQ Section */
  details.page-blog-beginner-guide-thaibet__faq-item summary.page-blog-beginner-guide-thaibet__faq-question {
    padding: 15px 20px;
  }
  .page-blog-beginner-guide-thaibet__faq-qtext {
    font-size: 16px;
  }
  .page-blog-beginner-guide-thaibet__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-blog-beginner-guide-thaibet__faq-item .page-blog-beginner-guide-thaibet__faq-answer {
    padding: 0 20px 15px;
  }

  /* General Image Responsiveness */
  .page-blog-beginner-guide-thaibet img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog-beginner-guide-thaibet__section,
  .page-blog-beginner-guide-thaibet__card,
  .page-blog-beginner-guide-thaibet__container,
  .page-blog-beginner-guide-thaibet__product-card,
  .page-blog-beginner-guide-thaibet__promo-card,
  .page-blog-beginner-guide-thaibet__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by container */
    /* padding-right: 15px; */ /* Handled by container */
  }
  .page-blog-beginner-guide-thaibet__cta-buttons,
  .page-blog-beginner-guide-thaibet__button-group,
  .page-blog-beginner-guide-thaibet__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;
  }
}