/* Base styles for the huong-dan-ca-cuoc page */
.page-huong-dan-ca-cuoc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for clarity, though shared.css might define body */
}

/* Ensure all images are responsive by default */
.page-huong-dan-ca-cuoc img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
  object-fit: cover; /* Default for most images */
}

/* Section general styles */
.page-huong-dan-ca-cuoc__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-huong-dan-ca-cuoc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-huong-dan-ca-cuoc__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-huong-dan-ca-cuoc__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-huong-dan-ca-cuoc__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-huong-dan-ca-cuoc__text-block p {
  margin-bottom: 1em;
}

/* Light background sections */
.page-huong-dan-ca-cuoc__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Dark background sections */
.page-huong-dan-ca-cuoc__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-huong-dan-ca-cuoc__dark-bg .page-huong-dan-ca-cuoc__section-title,
.page-huong-dan-ca-cuoc__dark-bg .page-huong-dan-ca-cuoc__sub-title {
  color: #ffffff;
}

/* Buttons general style */
.page-huong-dan-ca-cuoc__btn-primary,
.page-huong-dan-ca-cuoc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Ensure padding/border included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-huong-dan-ca-cuoc__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-huong-dan-ca-cuoc__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
  transform: translateY(-2px);
}

.page-huong-dan-ca-cuoc__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-huong-dan-ca-cuoc__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a88bb;
  border-color: #1a88bb;
  transform: translateY(-2px);
}

/* Hero Section */
.page-huong-dan-ca-cuoc__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top margin, body handles header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Prevent content from overflowing */
}

.page-huong-dan-ca-cuoc__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-huong-dan-ca-cuoc__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover ensures image fills, but can crop */
  min-height: 300px; /* Minimum height for visual impact */
}

.page-huong-dan-ca-cuoc__hero-content {
  padding: 40px 20px;
  background-color: #f8f8f8; /* Light background for text */
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  text-align: center;
}

.page-huong-dan-ca-cuoc__hero-title {
  font-size: 44px;
  font-weight: 800;
  color: #000000; /* Darker color for H1 for contrast */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px; /* Limit H1 width */
  margin-left: auto;
  margin-right: auto;
}

.page-huong-dan-ca-cuoc__hero-description {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-huong-dan-ca-cuoc__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Understanding Section Specifics */
.page-huong-dan-ca-cuoc__understanding-section .page-huong-dan-ca-cuoc__content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-huong-dan-ca-cuoc__understanding-section .page-huong-dan-ca-cuoc__image-wrapper {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.page-huong-dan-ca-cuoc__understanding-section .page-huong-dan-ca-cuoc__image-wrapper img {
  border-radius: 8px;
  object-fit: contain; /* Ensure full image is visible */
  min-height: 200px; /* Minimum size */
}

/* Betting Types Section Specifics */
.page-huong-dan-ca-cuoc__betting-types-section .page-huong-dan-ca-cuoc__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-huong-dan-ca-cuoc__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px; /* Ensure cards have some height */
}

.page-huong-dan-ca-cuoc__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-huong-dan-ca-cuoc__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-huong-dan-ca-cuoc__card p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-huong-dan-ca-cuoc__card-link {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid #EA7C07;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-huong-dan-ca-cuoc__card-link:hover {
  color: #d16b00;
  border-color: #d16b00;
}

.page-huong-dan-ca-cuoc__image-full-width {
  width: 100%;
  text-align: center;
}

.page-huong-dan-ca-cuoc__image-full-width img {
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px;
}

/* Strategy & Mistakes Sections Specifics */
.page-huong-dan-ca-cuoc__grid-columns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.page-huong-dan-ca-cuoc__grid-columns--reverse {
  grid-template-columns: 2fr 1fr; /* Swap order for image on right */
}

.page-huong-dan-ca-cuoc__grid-columns--reverse .page-huong-dan-ca-cuoc__image-wrapper {
  order: 2; /* Move image to right */
}

.page-huong-dan-ca-cuoc__grid-columns--reverse .page-huong-dan-ca-cuoc__text-block {
  order: 1; /* Move text to left */
}

.page-huong-dan-ca-cuoc__grid-columns .page-huong-dan-ca-cuoc__image-wrapper {
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.page-huong-dan-ca-cuoc__grid-columns .page-huong-dan-ca-cuoc__image-wrapper img {
  border-radius: 8px;
  object-fit: contain;
  min-height: 200px;
}

.page-huong-dan-ca-cuoc__btn-full-width {
  width: 100%;
  max-width: 300px; /* Limit max width for full width button */
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits Section Specifics */
.page-huong-dan-ca-cuoc__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-huong-dan-ca-cuoc__benefit-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
}

.page-huong-dan-ca-cuoc__benefit-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-huong-dan-ca-cuoc__benefit-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-huong-dan-ca-cuoc__cta-bottom {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-huong-dan-ca-cuoc__image-centered {
  text-align: center;
  width: 100%;
}

.page-huong-dan-ca-cuoc__image-centered img {
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px;
}

/* FAQ Section Specifics */
details.page-huong-dan-ca-cuoc__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333; /* Ensure text is dark on light background */
}
details.page-huong-dan-ca-cuoc__faq-item summary.page-huong-dan-ca-cuoc__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-huong-dan-ca-cuoc__faq-item summary.page-huong-dan-ca-cuoc__faq-question::-webkit-details-marker {
  display: none;
}
details.page-huong-dan-ca-cuoc__faq-item summary.page-huong-dan-ca-cuoc__faq-question:hover {
  background: #f5f5f5;
}
.page-huong-dan-ca-cuoc__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #26A9E0; /* FAQ question color */
}
.page-huong-dan-ca-cuoc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-huong-dan-ca-cuoc__faq-item .page-huong-dan-ca-cuoc__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-huong-dan-ca-cuoc__faq-answer p {
  color: #555555;
  margin-bottom: 0; /* Remove default paragraph margin */
}
.page-huong-dan-ca-cuoc__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Conclusion Section Specifics */
.page-huong-dan-ca-cuoc__conclusion-section .page-huong-dan-ca-cuoc__text-block {
  color: #ffffff;
}

.page-huong-dan-ca-cuoc__conclusion-section .page-huong-dan-ca-cuoc__text-block a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.page-huong-dan-ca-cuoc__cta-final {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap */
}