.page-resources {
  background-color: #121212;
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-resources__section-heading {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
  background-color: #1a1a1a; /* Slightly lighter dark for hero */
  padding-top: var(--header-offset, 120px); /* Ensures 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;
  opacity: 0.6;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 40px 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.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;
  margin: 10px;
  cursor: pointer;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  flex-grow: 1;
}

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

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

.page-resources__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-resources__card-list {
  list-style: none;
  padding: 0;
  margin-top: auto; /* Pushes list to the bottom */
}

.page-resources__card-list li {
  margin-bottom: 8px;
  color: #f0f0f0;
}

.page-resources__card-list li a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-resources__content-block {
  text-align: left;
  margin-top: 40px;
  padding: 0 20px;
}

.page-resources__content-subheading {
  font-size: 2em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-resources__news-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  height: 100%;
}

.page-resources__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.page-resources__news-card .page-resources__news-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-resources__news-card .page-resources__news-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  margin: 0 20px 20px 20px;
}

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

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details tag */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.page-resources__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-resources__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.02);
}

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

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

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

.page-resources__safety-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-resources__safety-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-resources__safety-text a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-resources__safety-btn {
  margin-top: 40px;
}

.page-resources__cta-section {
  background-color: #1a1a1a; /* Darker background for CTA */
  padding: 80px 0;
}

.page-resources__cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-resources__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.2em;
  }
  .page-resources__section-heading {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile applies it */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-heading {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 300px; /* Limit button width on small screens */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 8px auto;
  }
  .page-resources__button-group {
    flex-direction: column;
    align-items: center;
  }
  .page-resources__card-grid,
  .page-resources__news-grid,
  .page-resources__safety-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card,
  .page-resources__news-card,
  .page-resources__safety-item {
    padding: 20px;
  }
  .page-resources__card-image,
  .page-resources__news-image {
    height: 180px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 10px 20px 15px 20px;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__content-block,
  .page-resources__news-card,
  .page-resources__safety-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__hero-content {
    padding: 20px 15px;
  }
  .page-resources__safety-icon {
    width: 80px;
    height: 80px;
  }
  .page-resources__content-block,
  .page-resources__faq-list {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-heading {
    font-size: 1.8em;
  }
  .page-resources__card-title,
  .page-resources__news-title,
  .page-resources__safety-title {
    font-size: 1.3em;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__faq-question {
    font-size: 1em;
  }
  .page-resources__faq-answer {
    font-size: 0.9em;
  }
}