/* style/resources.css */

/* Base Styles for page-resources */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background #1a1a2e */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__section--intro {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

.page-resources__section--rules,
.page-resources__section--community {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter dark background */
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__text-block--center {
  text-align: center;
}

.page-resources__link {
  color: #FFFF00; /* Custom color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__link:hover {
  color: #017439;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

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

.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: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Content Grid */
.page-resources__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-resources__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-resources__content-grid--reverse .page-resources__image {
  order: 2;
}

.page-resources__content-grid--reverse .page-resources__content-block {
  order: 1;
}

.page-resources__image,
.page-resources__video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.page-resources__video {
  cursor: pointer;
}

/* Dark Background Sections */
.page-resources__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  text-align: left;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure override */
  padding: 15px 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-resources__section--cta {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 80px 0;
}

.page-resources__container--center {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .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__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-resources__content-grid--reverse .page-resources__image {
    order: initial;
  }

  .page-resources__content-grid--reverse .page-resources__content-block {
    order: initial;
  }

  .page-resources__image--right,
  .page-resources__video--right {
    margin-top: 30px;
  }

  .page-resources__image--left {
    margin-bottom: 30px;
  }
}

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

  .page-resources__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .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;
    margin-left: auto;
    margin-right: auto;
  }

  .page-resources__section {
    padding: 40px 0;
  }

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

  .page-resources__text-block {
    font-size: 1em;
  }

  .page-resources__container,
  .page-resources__section,
  .page-resources__content-grid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-resources__video-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-resources__faq-answer {
    padding: 0 15px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 15px;
  }
}