/* Base styles for the Trách Nhiệm Cờ Bạc page */
.page-trach-nhiem-co-bac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF;
}

.page-trach-nhiem-co-bac__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-trach-nhiem-co-bac__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.page-trach-nhiem-co-bac__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px; /* Limit hero image height */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-trach-nhiem-co-bac__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-trach-nhiem-co-bac__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-trach-nhiem-co-bac__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

/* General Section Titles */
.page-trach-nhiem-co-bac__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #017439;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-trach-nhiem-co-bac__paragraph {
  margin-bottom: 15px;
  font-size: 1em;
  color: #333333;
}

.page-trach-nhiem-co-bac__highlight {
  color: #017439;
  font-weight: bold;
}

.page-trach-nhiem-co-bac__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-trach-nhiem-co-bac__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-trach-nhiem-co-bac__list-item {
  margin-bottom: 8px;
  font-size: 1em;
}

/* CTA Buttons */
.page-trach-nhiem-co-bac__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-trach-nhiem-co-bac__btn-primary,
.page-trach-nhiem-co-bac__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  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 wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-trach-nhiem-co-bac__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-trach-nhiem-co-bac__btn-primary:hover {
  background-color: #005a2a;
  border-color: #005a2a;
}

.page-trach-nhiem-co-bac__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-trach-nhiem-co-bac__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2a;
  border-color: #005a2a;
}

.page-trach-nhiem-co-bac__cta-buttons--bottom {
  margin-top: 40px;
  margin-bottom: 60px;
}

/* Feature Grid for Tools & Features */
.page-trach-nhiem-co-bac__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-trach-nhiem-co-bac__feature-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-trach-nhiem-co-bac__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-trach-nhiem-co-bac__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-trach-nhiem-co-bac__card-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-trach-nhiem-co-bac__card-description {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1; /* Allow description to take available space */
}

/* Support Resources Section */
.page-trach-nhiem-co-bac__support-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-trach-nhiem-co-bac__resource-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-trach-nhiem-co-bac__resource-card .page-trach-nhiem-co-bac__card-title {
  color: #017439;
  margin-bottom: 15px;
}

.page-trach-nhiem-co-bac__resource-card .page-trach-nhiem-co-bac__card-description {
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-trach-nhiem-co-bac__resource-card .page-trach-nhiem-co-bac__btn-primary,
.page-trach-nhiem-co-bac__resource-card .page-trach-nhiem-co-bac__btn-secondary {
  margin-top: auto; /* Push buttons to the bottom */
  width: 100%;
  max-width: 250px;
}

/* Ensure image responsiveness for all images */
.page-trach-nhiem-co-bac img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-trach-nhiem-co-bac__container {
    padding: 15px;
  }

  /* HERO Section */
  .page-trach-nhiem-co-bac__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-trach-nhiem-co-bac__main-title {
    font-size: 2em;
  }

  .page-trach-nhiem-co-bac__hero-description {
    font-size: 1em;
  }

  .page-trach-nhiem-co-bac__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-trach-nhiem-co-bac__btn-primary,
  .page-trach-nhiem-co-bac__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 0.95em;
  }

  /* General content */
  .page-trach-nhiem-co-bac__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 25px;
  }

  .page-trach-nhiem-co-bac__paragraph,
  .page-trach-nhiem-co-bac__list-item,
  .page-trach-nhiem-co-bac__card-description {
    font-size: 0.95em;
  }

  /* Feature Grid (Tools & Features) */
  .page-trach-nhiem-co-bac__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Support Resources */
  .page-trach-nhiem-co-bac__support-resources {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-trach-nhiem-co-bac__resource-card .page-trach-nhiem-co-bac__btn-primary,
  .page-trach-nhiem-co-bac__resource-card .page-trach-nhiem-co-bac__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Universal image and container responsiveness for mobile */
  .page-trach-nhiem-co-bac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-trach-nhiem-co-bac__section,
  .page-trach-nhiem-co-bac__card,
  .page-trach-nhiem-co-bac__container,
  .page-trach-nhiem-co-bac__feature-grid,
  .page-trach-nhiem-co-bac__support-resources {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}