/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from shared.css body */
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__paragraph {
  margin-bottom: 15px;
  color: #e0e0e0; /* Light gray for paragraphs on dark background */
}

.page-resources__unordered-list,
.page-resources__ordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-resources__list-item {
  margin-bottom: 10px;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  background-color: #017439; /* Brand main color */
  background-image: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero_background:1920x1080:cockfighting,stadium,crowd,excitement,vietnam]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 100px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color */
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Video Section */
.page-resources__video-section {
  background-color: #0a0a0a;
  padding: 60px 20px;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin: 0 auto;
}

.page-resources__video-wrapper .page-resources__video,
.page-resources__video-wrapper .page-resources__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.page-resources__video-link {
  display: block; /* Ensure the link covers the entire video area */
}

/* Content Area */
.page-resources__content-area {
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  color: #e0e0e0;
  padding: 60px 20px;
}

.page-resources__content-area .page-resources__section-title,
.page-resources__content-area .page-resources__sub-title {
  color: #FFFF00; /* Highlight titles in content area */
}

.page-resources__image-text-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.page-resources__image-text-block:nth-of-type(even) {
  flex-direction: row-reverse;
}

.page-resources__image--left,
.page-resources__image--right {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

.page-resources__text-content {
  flex: 2;
  min-width: 300px;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  background-color: #0a0a0a;
  border: 1px solid #017439;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #005f2e;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00; /* Highlight toggle icon */
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  background-color: #1a1a1a;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  color: #e0e0e0;
}

/* Call to Action Section */
.page-resources__cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-resources__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

  .page-resources__hero-description {
    font-size: 1.1em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__sub-title {
    font-size: 1.5em;
  }

  .page-resources__image-text-block {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources__image-text-block:nth-of-type(even) {
    flex-direction: column;
  }

  .page-resources__image--left,
  .page-resources__image--right {
    width: 100%;
    order: -1; /* Image always on top in column layout */
  }

  .page-resources__text-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    padding: 80px 15px;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    margin: 0 auto; /* Center buttons */
  }

  .page-resources__video-section,
  .page-resources__content-area,
  .page-resources__cta-section {
    padding: 40px 15px;
  }

  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__sub-title {
    font-size: 1.3em;
  }

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__video-wrapper,
  .page-resources__image-text-block,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

  .page-resources__hero-description {
    font-size: 0.9em;
  }

  .page-resources__section-title {
    font-size: 1.5em;
  }

  .page-resources__sub-title {
    font-size: 1.2em;
  }
}