.page-resources {
  color: #ffffff; /* Dark background, so light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(204, 0, 0, 0.2); /* Semi-transparent red from brand color */
  overflow: hidden;
}

.page-resources__hero-section .page-resources__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-resources__hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Subtle filter, not color changing */
}

/* General Section Styling */
.page-resources__section-title {
  font-size: 2.5em;
  color: #CC0000; /* Red for main titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

/* Main Resources Section */
.page-resources__main-resources-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-resources__resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources__resource-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-resources__resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-resources__resource-card .page-resources__card-title {
  font-size: 1.5em;
  color: #FFD700;
  padding: 20px 20px 10px 20px;
}

.page-resources__resource-card .page-resources__card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__resource-card .page-resources__card-title a:hover {
  color: #CC0000;
}

.page-resources__card-text {
  font-size: 1em;
  color: #cccccc;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: flex;
  align-items: center;
  color: #CC0000;
  text-decoration: none;
  padding: 10px 20px 20px 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-resources__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-resources__card-link:hover .page-resources__arrow {
  transform: translateX(5px);
}

/* Getting Started Section */
.page-resources__getting-started-section {
  padding: 80px 0;
  background-color: #CC0000; /* Brand red for a strong section */
  color: #ffffff;
}

.page-resources__getting-started-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__getting-started-section .page-resources__section-description {
  color: #f0f0f0;
}

.page-resources__step-by-step-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources__guide-item {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-resources__guide-item:hover {
  transform: translateY(-5px);
}

.page-resources__guide-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-resources__guide-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-resources__guide-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__guide-title a:hover {
  color: #ffffff;
}

.page-resources__guide-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Safety and Support Section */
.page-resources__safety-support-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-resources__safety-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources__support-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-resources__support-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__support-card .page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-resources__support-card .page-resources__card-title {
  font-size: 1.5em;
  color: #FFD700;
  padding: 20px 20px 10px 20px;
}

.page-resources__support-card .page-resources__card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__support-card .page-resources__card-title a:hover {
  color: #CC0000;
}

.page-resources__support-card .page-resources__card-text {
  font-size: 1em;
  color: #cccccc;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-resources__support-card .page-resources__card-link {
  display: flex;
  align-items: center;
  color: #CC0000;
  text-decoration: none;
  padding: 10px 20px 20px 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__support-card .page-resources__card-link:hover {
  color: #FFD700;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  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: #FFD700;
  cursor: pointer;
  background-color: #2a2a2a;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #3a3a3a;
}

.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-out, padding 0.3s ease-out;
  color: #cccccc;
  background-color: #1a1a1a;
}

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

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

/* Call to Action Section */
.page-resources__cta-section {
  padding: 80px 0;
  background-color: #FFD700; /* Gold for prominence */
  color: #000000; /* Dark text on light background */
  text-align: center;
}

.page-resources__cta-section .page-resources__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-resources__cta-content {
  max-width: 800px;
  text-align: center;
  color: #000000;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #CC0000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
}

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

.page-resources__cta-image-wrapper {
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  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: #CC0000;
  color: #ffffff;
  border: 2px solid #CC0000;
}

.page-resources__btn-primary:hover {
  background-color: #FFD700;
  color: #000000;
  border-color: #FFD700;
  transform: translateY(-3px);
}

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

.page-resources__btn-secondary:hover {
  background-color: #CC0000;
  color: #ffffff;
  border-color: #CC0000;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__resource-grid,
  .page-resources__step-by-step-guide,
  .page-resources__safety-support-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-resources__hero-section {
    padding: 60px 0;
    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__hero-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;
  }

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

  .page-resources__section-description,
  .page-resources__cta-description {
    font-size: 0.95em;
  }

  .page-resources__main-resources-section,
  .page-resources__getting-started-section,
  .page-resources__safety-support-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }

  .page-resources__resource-card,
  .page-resources__guide-item,
  .page-resources__support-card {
    margin: 0 15px;
  }

  .page-resources__card-image,
  .page-resources__guide-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  /* Ensure all images within page-resources are responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers for images, videos, buttons */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section .page-resources__container,
  .page-resources__resource-grid,
  .page-resources__step-by-step-guide,
  .page-resources__safety-support-grid,
  .page-resources__faq-list,
  .page-resources__hero-buttons,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Color Contrast Fixes (if needed - applied based on body bg being dark) */
.page-resources__dark-bg {
  color: #ffffff;
}

.page-resources__dark-section {
  background: #CC0000;
  color: #ffffff;
}

.page-resources__cta-section {
  background: #FFD700;
  color: #000000;
}

.page-resources__cta-section .page-resources__cta-title {
  color: #CC0000;
}

.page-resources__cta-section .page-resources__cta-description {
  color: #333333;
}

.page-resources__resource-card, .page-resources__support-card {
  background-color: #2a2a2a;
  color: #ffffff;
}

.page-resources__faq-item {
  background-color: #1a1a1a;
}

.page-resources__faq-answer {
  background-color: #1a1a1a;
  color: #cccccc;
}