/* Base Styles for .page-huong-dan-ca-cuoc */
.page-huong-dan-ca-cuoc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-huong-dan-ca-cuoc__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-huong-dan-ca-cuoc__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-huong-dan-ca-cuoc p {
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-huong-dan-ca-cuoc ul,
.page-huong-dan-ca-cuoc ol {
  margin-bottom: 15px;
  padding-left: 20px;
  color: #1F2D3D;
}

.page-huong-dan-ca-cuoc li {
  margin-bottom: 8px;
}

/* Hero Section */
.page-huong-dan-ca-cuoc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 50px;
  background-color: #F4F7FB; /* Ensures a consistent background if image doesn't cover fully */
}

.page-huong-dan-ca-cuoc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  margin-bottom: 20px;
}

.page-huong-dan-ca-cuoc__hero-content {
  max-width: 900px;
  padding: 0 15px;
  margin-top: 20px; /* Space from image */
}

.page-huong-dan-ca-cuoc__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #2F6BFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-huong-dan-ca-cuoc__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-huong-dan-ca-cuoc__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-huong-dan-ca-cuoc__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

/* Intro Section */
.page-huong-dan-ca-cuoc__intro-section {
  padding: 50px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D;
}

/* Steps Section */
.page-huong-dan-ca-cuoc__steps-section {
  padding: 50px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D;
}

.page-huong-dan-ca-cuoc__step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-huong-dan-ca-cuoc__card {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #1F2D3D;
}

.page-huong-dan-ca-cuoc__card:hover {
  transform: translateY(-5px);
}

.page-huong-dan-ca-cuoc__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-huong-dan-ca-cuoc__small-button {
  display: inline-block;
  padding: 10px 20px;
  background: #6FA3FF; /* Auxiliary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-huong-dan-ca-cuoc__small-button:hover {
  background: #2F6BFF; /* Main color on hover */
}

/* Guide Section */
.page-huong-dan-ca-cuoc__guide-section {
  padding: 60px 0;
}

.page-huong-dan-ca-cuoc__dark-bg {
  background-color: #2F6BFF; /* Main color */
  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;
}

.page-huong-dan-ca-cuoc__light-bg {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D;
}

.page-huong-dan-ca-cuoc__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Example size limit */
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
details.page-huong-dan-ca-cuoc__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
  color: #1F2D3D;
}

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;
  color: #1F2D3D;
}

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-huong-dan-ca-cuoc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main color for toggle */
  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: #F4F7FB;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D;
}

/* Conclusion Section */
.page-huong-dan-ca-cuoc__conclusion-section {
  padding: 60px 0 80px;
  text-align: center;
  background-color: #2F6BFF; /* Main color */
  color: #ffffff;
}

.page-huong-dan-ca-cuoc__conclusion-section .page-huong-dan-ca-cuoc__section-title {
  color: #ffffff;
}

.page-huong-dan-ca-cuoc__conclusion-section p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-huong-dan-ca-cuoc__hero-content {
    max-width: 768px;
  }

  .page-huong-dan-ca-cuoc__main-title {
    font-size: clamp(30px, 4.5vw, 42px);
  }

  .page-huong-dan-ca-cuoc__description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* Top Section */
  .page-huong-dan-ca-cuoc__hero-section {
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    padding-bottom: 30px;
  }

  .page-huong-dan-ca-cuoc__hero-image {
    max-height: 400px !important;
  }

  .page-huong-dan-ca-cuoc__main-title {
    font-size: clamp(28px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-huong-dan-ca-cuoc__description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-huong-dan-ca-cuoc__cta-button {
    padding: 12px 25px !important;
    font-size: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Sections */
  .page-huong-dan-ca-cuoc__section-title {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-huong-dan-ca-cuoc__sub-title {
    font-size: clamp(20px, 4vw, 24px);
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-huong-dan-ca-cuoc p,
  .page-huong-dan-ca-cuoc li {
    font-size: 15px;
  }

  /* Step Cards */
  .page-huong-dan-ca-cuoc__step-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-huong-dan-ca-cuoc__card {
    padding: 25px;
  }

  .page-huong-dan-ca-cuoc__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-huong-dan-ca-cuoc__small-button {
    padding: 8px 15px !important;
    font-size: 14px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Content Images */
  .page-huong-dan-ca-cuoc__content-image {
    margin: 20px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* FAQ Section */
  details.page-huong-dan-ca-cuoc__faq-item summary.page-huong-dan-ca-cuoc__faq-question {
    padding: 15px;
  }

  .page-huong-dan-ca-cuoc__faq-qtext {
    font-size: 16px;
  }

  .page-huong-dan-ca-cuoc__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-huong-dan-ca-cuoc__faq-item .page-huong-dan-ca-cuoc__faq-answer {
    padding: 0 15px 15px;
  }

  /* Container padding for mobile */
  .page-huong-dan-ca-cuoc__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all sections and containers handle mobile width */
  .page-huong-dan-ca-cuoc__intro-section,
  .page-huong-dan-ca-cuoc__steps-section,
  .page-huong-dan-ca-cuoc__guide-section,
  .page-huong-dan-ca-cuoc__faq-section,
  .page-huong-dan-ca-cuoc__conclusion-section {
    padding: 30px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific overrides for buttons in general */
  .page-huong-dan-ca-cuoc a[class*="button"],
  .page-huong-dan-ca-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 !important;
    padding-right: 15px !important;
  }
}