:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-color: #C30808;
  --login-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
}

.page-resources-cambodia-cockfighting-culture-history {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color);
}

.page-resources-cambodia-cockfighting-culture-history__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  color: var(--secondary-color); /* White text for dark background */
  background-color: var(--primary-color);
  overflow: hidden;
}

.page-resources-cambodia-cockfighting-culture-history__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources-cambodia-cockfighting-culture-history__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources-cambodia-cockfighting-culture-history__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-cambodia-cockfighting-culture-history__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-cambodia-cockfighting-culture-history__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-resources-cambodia-cockfighting-culture-history__intro-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--secondary-color);
}

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

.page-resources-cambodia-cockfighting-culture-history__cta-button:hover {
  background: darken(var(--register-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-cambodia-cockfighting-culture-history__content-section {
  padding: 60px 20px;
  background-color: var(--background-color);
  color: #333333;
}

.page-resources-cambodia-cockfighting-culture-history__dark-bg {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources-cambodia-cockfighting-culture-history__light-bg {
  background-color: var(--background-color);
  color: #333333;
}

.page-resources-cambodia-cockfighting-culture-history__dark-text-fix {
  color: var(--secondary-color) !important; /* Ensure white text on dark background */
}

.page-resources-cambodia-cockfighting-culture-history__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-resources-cambodia-cockfighting-culture-history__section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

.page-resources-cambodia-cockfighting-culture-history__dark-bg .page-resources-cambodia-cockfighting-culture-history__section-title {
  color: var(--secondary-color);
}

.page-resources-cambodia-cockfighting-culture-history__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources-cambodia-cockfighting-culture-history__dark-bg .page-resources-cambodia-cockfighting-culture-history__sub-title {
  color: var(--secondary-color);
}

.page-resources-cambodia-cockfighting-culture-history__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-resources-cambodia-cockfighting-culture-history__image-block {
  margin: 30px auto;
  text-align: center;
}

.page-resources-cambodia-cockfighting-culture-history__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-resources-cambodia-cockfighting-culture-history__cta-section {
  padding: 80px 20px;
  text-align: center;
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

.page-resources-cambodia-cockfighting-culture-history__btn-primary {
  background: var(--register-color);
  color: var(--register-login-font-color);
  border: 2px solid transparent;
}

.page-resources-cambodia-cockfighting-culture-history__btn-primary:hover {
  background: darken(var(--register-color), 10%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-cambodia-cockfighting-culture-history__main-title {
    font-size: 36px;
  }

  .page-resources-cambodia-cockfighting-culture-history__intro-text {
    font-size: 17px;
  }

  .page-resources-cambodia-cockfighting-culture-history__section-title {
    font-size: 28px;
  }

  .page-resources-cambodia-cockfighting-culture-history__sub-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-resources-cambodia-cockfighting-culture-history__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-cambodia-cockfighting-culture-history__hero-image img {
    border-radius: 4px;
  }

  .page-resources-cambodia-cockfighting-culture-history__main-title {
    font-size: 28px;
  }

  .page-resources-cambodia-cockfighting-culture-history__intro-text {
    font-size: 16px;
  }

  .page-resources-cambodia-cockfighting-culture-history__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: 0;
    margin-right: 0;
  }

  .page-resources-cambodia-cockfighting-culture-history__content-section,
  .page-resources-cambodia-cockfighting-culture-history__cta-section {
    padding: 40px 15px;
  }

  .page-resources-cambodia-cockfighting-culture-history__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-cambodia-cockfighting-culture-history__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .page-resources-cambodia-cockfighting-culture-history__sub-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-resources-cambodia-cockfighting-culture-history__paragraph {
    font-size: 15px;
  }

  .page-resources-cambodia-cockfighting-culture-history img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-cambodia-cockfighting-culture-history__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-cambodia-cockfighting-culture-history__hero-image {
    margin-bottom: 20px;
  }
}