.page-resources {
  color: #ffffff; /* Body background is dark, so text should be light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensure main background is dark */
}

.page-resources__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css sets body padding-top */
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  height: 550px; /* Fixed height for desktop hero */
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 20px;
  max-width: 900px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 800px;
}

.page-resources__section {
  padding: 80px 20px;
  background-color: #000000;
}

.page-resources__light-bg {
  background-color: #0d0d0d; /* Slightly lighter dark for contrast */
}

.page-resources__dark-bg {
  background-color: #000000;
}

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

.page-resources__section-title {
  font-size: 36px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__paragraph {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__guides-grid,
.page-resources__trends-grid,
.page-resources__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__card {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-resources__card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-resources__card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__card-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  margin-top: auto; /* Push button to bottom */
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #000080; /* Dark blue text on gold button */
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  color: #000050;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

.page-resources__faq-section {
  background-color: #0d0d0d;
}

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.12);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #DC143C; /* Accent red when active */
  transform: rotate(45deg);
}

.page-resources__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #000080; /* Dark blue brand color */
}

.page-resources__cta-title {
  font-size: 40px;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-resources__cta-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

  .page-resources__hero-description {
    font-size: 18px;
  }

  .page-resources__section-title {
    font-size: 32px;
  }

  .page-resources__paragraph {
    font-size: 17px;
  }

  .page-resources__guides-grid,
  .page-resources__trends-grid,
  .page-resources__safety-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-resources__card-title {
    font-size: 22px;
  }

  .page-resources__card-text {
    font-size: 15px;
  }

  .page-resources__faq-question h3 {
    font-size: 17px;
  }

  .page-resources__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }

  .page-resources__cta-title {
    font-size: 36px;
  }

  .page-resources__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-resources__hero-section {
    padding-top: 0 !important; /* Ensure no double padding if shared provides it */
  }
  .page-resources__hero-container {
    height: 400px; /* Adjust height for mobile */
  }
  .page-resources__hero-title {
    font-size: 30px !important;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 16px !important;
    padding: 0 10px;
  }

  /* General Section & Container */
  .page-resources__section {
    padding: 40px 15px !important;
  }
  .page-resources__container {
    padding: 0;
  }
  .page-resources__section-title {
    font-size: 26px !important;
    margin-bottom: 30px;
  }
  .page-resources__paragraph {
    font-size: 15px !important;
    margin-bottom: 15px;
  }

  /* Grids & Cards */
  .page-resources__guides-grid,
  .page-resources__trends-grid,
  .page-resources__safety-grid {
    grid-template-columns: 1fr !important; /* Single column for all grids */
    gap: 20px !important;
    margin-top: 20px;
  }
  .page-resources__card {
    margin: 0 auto;
    max-width: 400px; /* Constrain card width for better readability */
  }
  .page-resources__card-image {
    height: 200px !important;
  }
  .page-resources__card-content {
    padding: 15px !important;
  }
  .page-resources__card-title {
    font-size: 20px !important;
    margin-bottom: 10px;
  }
  .page-resources__card-text {
    font-size: 14px !important;
    margin-bottom: 15px;
  }

  /* Buttons */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px !important;
  }
  .page-resources__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* Images (General) */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Content area containers for images */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by section padding */
    /* padding-right: 15px; */ /* Handled by section padding */
  }

  /* FAQ Section */
  .page-resources__faq-section {
    padding: 40px 15px !important;
  }
  .page-resources__faq-question {
    padding: 15px !important;
  }
  .page-resources__faq-question h3 {
    font-size: 15px !important;
  }
  .page-resources__faq-toggle {
    font-size: 24px !important;
    width: 28px !important;
    height: 28px !important;
    margin-left: 10px !important;
  }
  .page-resources__faq-answer {
    padding: 0 15px !important;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* CTA Section */
  .page-resources__cta-section {
    padding: 50px 15px !important;
  }
  .page-resources__cta-title {
    font-size: 28px !important;
  }
  .page-resources__cta-description {
    font-size: 16px !important;
    margin-bottom: 30px;
  }
}