.page-cong-cu-tinh-ty-le-cuoc {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text on light background */
  line-height: 1.6;
}

.page-cong-cu-tinh-ty-le-cuoc__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-cong-cu-tinh-ty-le-cuoc__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cong-cu-tinh-ty-le-cuoc__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-cong-cu-tinh-ty-le-cuoc__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8; /* Light background for the hero section */
}

.page-cong-cu-tinh-ty-le-cuoc__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-cong-cu-tinh-ty-le-cuoc__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
}

.page-cong-cu-tinh-ty-le-cuoc__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cong-cu-tinh-ty-le-cuoc__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #555555;
}

.page-cong-cu-tinh-ty-le-cuoc__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-cong-cu-tinh-ty-le-cuoc__btn-primary,
.page-cong-cu-tinh-ty-le-cuoc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
}

.page-cong-cu-tinh-ty-le-cuoc__btn-primary {
  background-color: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-cong-cu-tinh-ty-le-cuoc__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-cong-cu-tinh-ty-le-cuoc__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cong-cu-tinh-ty-le-cuoc__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cong-cu-tinh-ty-le-cuoc__hero-image-wrapper {
  flex: 1 1 40%;
  text-align: center;
  min-width: 300px;
}

.page-cong-cu-tinh-ty-le-cuoc__hero-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Calculator Section */
.page-cong-cu-tinh-ty-le-cuoc__calculator-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-cong-cu-tinh-ty-le-cuoc__calculator-tool {
  background-color: #f0f8ff; /* Light blue background for the tool */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  margin: 0 auto;
}

.page-cong-cu-tinh-ty-le-cuoc__input-group {
  margin-bottom: 20px;
}

.page-cong-cu-tinh-ty-le-cuoc__label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-cong-cu-tinh-ty-le-cuoc__select,
.page-cong-cu-tinh-ty-le-cuoc__input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-cong-cu-tinh-ty-le-cuoc__input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}
.page-cong-cu-tinh-ty-le-cuoc__input::-webkit-outer-spin-button,
.page-cong-cu-tinh-ty-le-cuoc__input::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Chrome, Safari, Edge */
  margin: 0;
}

#calculateBtn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

#calculateBtn:hover {
  background-color: #1e87c0;
}

.page-cong-cu-tinh-ty-le-cuoc__results {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.page-cong-cu-tinh-ty-le-cuoc__result-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-cong-cu-tinh-ty-le-cuoc__result-value {
  font-weight: bold;
  color: #EA7C07; /* Highlight results */
}

/* Guide Section */
.page-cong-cu-tinh-ty-le-cuoc__guide-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-cong-cu-tinh-ty-le-cuoc__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cong-cu-tinh-ty-le-cuoc__guide-step {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-cong-cu-tinh-ty-le-cuoc__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

.page-cong-cu-tinh-ty-le-cuoc__guide-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-cong-cu-tinh-ty-le-cuoc__guide-text {
  font-size: 1em;
  color: #555555;
}

/* Benefits Section */
.page-cong-cu-tinh-ty-le-cuoc__benefits-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-cong-cu-tinh-ty-le-cuoc__benefits-section .page-cong-cu-tinh-ty-le-cuoc__section-title,
.page-cong-cu-tinh-ty-le-cuoc__benefits-section .page-cong-cu-tinh-ty-le-cuoc__section-description {
  color: #ffffff; /* Ensure titles/descriptions are white */
}

.page-cong-cu-tinh-ty-le-cuoc__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-cong-cu-tinh-ty-le-cuoc__benefit-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-cong-cu-tinh-ty-le-cuoc__benefit-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cong-cu-tinh-ty-le-cuoc__benefit-text {
  font-size: 0.95em;
  line-height: 1.5;
}

/* FAQ Section */
.page-cong-cu-tinh-ty-le-cuoc__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-cong-cu-tinh-ty-le-cuoc__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-cong-cu-tinh-ty-le-cuoc__faq-item {
  background-color: #f0f8ff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cong-cu-tinh-ty-le-cuoc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Remove default marker for summary */
}

.page-cong-cu-tinh-ty-le-cuoc__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-cong-cu-tinh-ty-le-cuoc__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-cong-cu-tinh-ty-le-cuoc__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-left: 15px;
}

.page-cong-cu-tinh-ty-le-cuoc__faq-item[open] .page-cong-cu-tinh-ty-le-cuoc__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-cong-cu-tinh-ty-le-cuoc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

.page-cong-cu-tinh-ty-le-cuoc__faq-answer p {
  margin: 0;
}

/* Bottom CTA Section */
.page-cong-cu-tinh-ty-le-cuoc__cta-bottom-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-cong-cu-tinh-ty-le-cuoc__cta-bottom-section .page-cong-cu-tinh-ty-le-cuoc__section-title,
.page-cong-cu-tinh-ty-le-cuoc__cta-bottom-section .page-cong-cu-tinh-ty-le-cuoc__section-description {
  color: #ffffff;
}

.page-cong-cu-tinh-ty-le-cuoc__cta-bottom-section .page-cong-cu-tinh-ty-le-cuoc__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
  margin-top: 20px;
}

.page-cong-cu-tinh-ty-le-cuoc__cta-bottom-section .page-cong-cu-tinh-ty-le-cuoc__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* General image responsive styles */
.page-cong-cu-tinh-ty-le-cuoc img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cong-cu-tinh-ty-le-cuoc__hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-cong-cu-tinh-ty-le-cuoc__hero-content {
    text-align: center;
  }

  .page-cong-cu-tinh-ty-le-cuoc__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* HERO Section mobile */
  .page-cong-cu-tinh-ty-le-cuoc__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__main-title {
    font-size: 2em;
  }
  .page-cong-cu-tinh-ty-le-cuoc__hero-description {
    font-size: 1em;
  }
  .page-cong-cu-tinh-ty-le-cuoc__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__btn-primary,
  .page-cong-cu-tinh-ty-le-cuoc__btn-secondary,
  .page-cong-cu-tinh-ty-le-cuoc a[class*="button"],
  .page-cong-cu-tinh-ty-le-cuoc a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Calculator Section mobile */
  .page-cong-cu-tinh-ty-le-cuoc__calculator-tool {
    padding: 20px 15px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__select,
  .page-cong-cu-tinh-ty-le-cuoc__input,
  #calculateBtn {
    padding: 10px;
    font-size: 0.95em;
  }
  .page-cong-cu-tinh-ty-le-cuoc__result-item {
    font-size: 1em;
  }

  /* Guide Section mobile */
  .page-cong-cu-tinh-ty-le-cuoc__guide-section {
    padding: 40px 0;
  }
  .page-cong-cu-tinh-ty-le-cuoc__guide-steps {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__guide-step {
    padding: 20px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__guide-title {
    font-size: 1.2em;
  }
  .page-cong-cu-tinh-ty-le-cuoc__guide-text {
    font-size: 0.9em;
  }

  /* Benefits Section mobile */
  .page-cong-cu-tinh-ty-le-cuoc__benefits-section {
    padding: 40px 0;
  }
  .page-cong-cu-tinh-ty-le-cuoc__benefits-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__benefit-card {
    padding: 20px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__benefit-title {
    font-size: 1.1em;
  }
  .page-cong-cu-tinh-ty-le-cuoc__benefit-text {
    font-size: 0.85em;
  }

  /* FAQ Section mobile */
  .page-cong-cu-tinh-ty-le-cuoc__faq-section {
    padding: 40px 0;
  }
  .page-cong-cu-tinh-ty-le-cuoc__faq-list {
    padding: 0 15px;
  }
  .page-cong-cu-tinh-ty-le-cuoc__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-cong-cu-tinh-ty-le-cuoc__faq-toggle {
    font-size: 1.2em;
  }
  .page-cong-cu-tinh-ty-le-cuoc__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }

  /* Bottom CTA Section mobile */
  .page-cong-cu-tinh-ty-le-cuoc__cta-bottom-section {
    padding: 40px 15px;
  }

  /* General image and container responsive styles */
  .page-cong-cu-tinh-ty-le-cuoc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cong-cu-tinh-ty-le-cuoc__container,
  .page-cong-cu-tinh-ty-le-cuoc__calculator-tool,
  .page-cong-cu-tinh-ty-le-cuoc__guide-step,
  .page-cong-cu-tinh-ty-le-cuoc__benefit-card,
  .page-cong-cu-tinh-ty-le-cuoc__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}