/* style/blog-understanding-game-bai-rules.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #007bff; /* A slightly darker blue for hover */
  --text-color: #333333;
  --light-bg: #f9f9f9;
  --white-color: #FFFFFF;
  --border-color: #e0e0e0;
  --login-button-color: #EA7C07;
}

.page-blog-understanding-game-bai-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-color); /* Default body background is white */
}

.page-blog-understanding-game-bai-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO Section */
.page-blog-understanding-game-bai-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* body handles padding-top for header offset; this is for internal spacing */
  padding-top: 10px; 
  background-color: var(--light-bg);
}

.page-blog-understanding-game-bai-rules__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop for flex */
}

.page-blog-understanding-game-bai-rules__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-blog-understanding-game-bai-rules__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog-understanding-game-bai-rules__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-blog-understanding-game-bai-rules__main-title {
  font-size: clamp(2.2rem, 5vw, 3rem); /* Responsive font size */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog-understanding-game-bai-rules__intro-text {
  font-size: 1.15rem;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-blog-understanding-game-bai-rules__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Using login color for primary CTA */
  color: var(--white-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-understanding-game-bai-rules__cta-button:hover {
  background: #c76500; /* Slightly darker orange */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.page-blog-understanding-game-bai-rules__content-section {
  padding: 60px 0;
  background-color: var(--white-color);
}

.page-blog-understanding-game-bai-rules__section-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-blog-understanding-game-bai-rules__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.page-blog-understanding-game-bai-rules__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-blog-understanding-game-bai-rules__list-item {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

/* Card Grid */
.page-blog-understanding-game-bai-rules__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog-understanding-game-bai-rules__card {
  background: var(--white-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.page-blog-understanding-game-bai-rules__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog-understanding-game-bai-rules__card-image {
  width: 100%;
  height: 250px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
}

.page-blog-understanding-game-bai-rules__card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  font-weight: 600;
}

.page-blog-understanding-game-bai-rules__card-text {
  font-size: 1rem;
  color: var(--text-color);
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* CTA Banner */
.page-blog-understanding-game-bai-rules__cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), #007bff);
  border-radius: 10px;
  padding: 40px;
  margin: 60px auto;
  text-align: center;
  color: var(--white-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog-understanding-game-bai-rules__cta-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
  object-fit: cover;
}

.page-blog-understanding-game-bai-rules__cta-content {
  max-width: 800px;
}

.page-blog-understanding-game-bai-rules__cta-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--white-color);
}

.page-blog-understanding-game-bai-rules__cta-description {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--white-color);
}

.page-blog-understanding-game-bai-rules__cta-button--small {
  padding: 12px 30px;
  font-size: 16px;
  background: var(--login-button-color);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-understanding-game-bai-rules__cta-button--small:hover {
  background: #c76500;
}

/* FAQ Section */
.page-blog-understanding-game-bai-rules__faq-list {
  margin-top: 40px;
}

details.page-blog-understanding-game-bai-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--white-color);
}

details.page-blog-understanding-game-bai-rules__faq-item summary.page-blog-understanding-game-bai-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-blog-understanding-game-bai-rules__faq-item summary.page-blog-understanding-game-bai-rules__faq-question::-webkit-details-marker {
  display: none;
}

details.page-blog-understanding-game-bai-rules__faq-item summary.page-blog-understanding-game-bai-rules__faq-question:hover {
  background: var(--light-bg);
}

.page-blog-understanding-game-bai-rules__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color);
}

.page-blog-understanding-game-bai-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog-understanding-game-bai-rules__faq-item .page-blog-understanding-game-bai-rules__faq-answer {
  padding: 0 20px 20px;
  background: var(--light-bg);
  border-radius: 0 0 5px 5px;
  color: var(--text-color);
}

.page-blog-understanding-game-bai-rules__faq-answer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog-understanding-game-bai-rules__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .page-blog-understanding-game-bai-rules__section-title {
    font-size: 2rem;
  }
  .page-blog-understanding-game-bai-rules__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog-understanding-game-bai-rules__cta-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-blog-understanding-game-bai-rules__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog-understanding-game-bai-rules__hero-image img {
    border-radius: 4px;
  }
  
  .page-blog-understanding-game-bai-rules__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-blog-understanding-game-bai-rules__content-section {
    padding: 40px 0;
  }

  .page-blog-understanding-game-bai-rules__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-understanding-game-bai-rules__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog-understanding-game-bai-rules__intro-text {
    font-size: 1rem;
  }

  .page-blog-understanding-game-bai-rules__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-blog-understanding-game-bai-rules__paragraph,
  .page-blog-understanding-game-bai-rules__list-item {
    font-size: 0.95rem;
  }

  .page-blog-understanding-game-bai-rules__card-grid {
    gap: 20px;
  }
  
  .page-blog-understanding-game-bai-rules__card-image {
    height: 200px;
  }

  .page-blog-understanding-game-bai-rules__card-title {
    font-size: 1.3rem;
    margin: 15px 15px 8px;
  }

  .page-blog-understanding-game-bai-rules__card-text {
    padding: 0 15px 15px;
  }

  .page-blog-understanding-game-bai-rules__cta-banner {
    padding: 30px 20px;
    margin: 40px auto;
  }

  .page-blog-understanding-game-bai-rules__cta-title {
    font-size: 1.5rem;
  }

  .page-blog-understanding-game-bai-rules__cta-description {
    font-size: 1rem;
  }

  .page-blog-understanding-game-bai-rules__cta-button--small {
    padding: 10px 25px;
    font-size: 15px;
  }

  details.page-blog-understanding-game-bai-rules__faq-item summary.page-blog-understanding-game-bai-rules__faq-question {
    padding: 15px;
  }

  .page-blog-understanding-game-bai-rules__faq-qtext {
    font-size: 1rem;
  }
  
  .page-blog-understanding-game-bai-rules__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all images are responsive */
  .page-blog-understanding-game-bai-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Ensure all button containers are responsive */
  .page-blog-understanding-game-bai-rules__cta-buttons,
  .page-blog-understanding-game-bai-rules__button-group,
  .page-blog-understanding-game-bai-rules__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-understanding-game-bai-rules__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}