/* style/resources.css */
.page-resources {
  /* body background is #121212 (dark), so main text color should be light */
  color: #ffffff; 
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Dark overlay for text readability */
    z-index: 1;
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 2;
}

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

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources__btn-link {
  background-color: transparent;
  color: #017439;
  border: 1px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

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

/* Sections */
.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
  padding: 60px 0;
}

.page-resources__dark-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* Light text for contrast */
  padding: 60px 0;
}

.page-resources__introduction .page-resources__section-title,
.page-resources__faq .page-resources__section-title,
.page-resources__tips-strategies .page-resources__section-title {
    color: #017439;
}

.page-resources__introduction .page-resources__text-block,
.page-resources__faq .page-resources__text-block,
.page-resources__tips-strategies .page-resources__text-block {
    color: #333333;
}

.page-resources__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Guide Grid */
.page-resources__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__guide-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 20px;
  color: #017439;
}

.page-resources__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__card-description {
  font-size: 1em;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-resources__card-link {
  display: inline-block;
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
  background-color: #e02a2a;
}

/* Tip Grid */
.page-resources__tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__tip-card {
  background-color: #017439;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
}

.page-resources__tip-card .page-resources__card-title {
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-resources__tip-card .page-resources__card-title a {
    color: #FFFF00;
}

.page-resources__tip-card .page-resources__card-description {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-resources__tip-card .page-resources__card-link {
    background-color: #C30808;
    color: #FFFF00;
}

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

.page-resources__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  color: #017439;
}

.page-resources__faq-item[open] > .page-resources__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

.page-resources__faq-answer .page-resources__btn-link {
    margin-top: 10px;
    text-align: left;
    display: inline-block;
}

/* News Updates Section */
.page-resources__news-updates .page-resources__btn-primary {
    margin-top: 30px;
}

/* CTA Bottom Section */
.page-resources__cta-bottom {
    text-align: center;
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-resources__cta-bottom .page-resources__section-title {
    color: #FFFF00;
}

.page-resources__cta-bottom .page-resources__text-block {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__cta-buttons,
  .page-resources__guide-grid,
  .page-resources__tip-grid,
  .page-resources__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__guide-grid,
  .page-resources__tip-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__text-block {
    font-size: 1em;
  }
  .page-resources__card-image {
      height: 200px;
  }
  /* Images responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__content-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-resources__guide-card .page-resources__card-image,
  .page-resources__tip-card .page-resources__card-image {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Video responsive - not used in this specific content, but for safety */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__hero-section {
      padding: 60px 0;
      padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__faq-question {
      font-size: 1.1em;
      padding: 15px 20px;
  }
}