.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f9fa;
}

.page-resources__dark-bg {
  background-color: #0A2239;
  color: #ffffff;
}

.page-resources__heading--white {
  color: #ffffff;
}

.page-resources__paragraph--white {
  color: #f0f0f0;
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.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); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 0 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-resources__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-resources__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-resources__heading {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #0A2239;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-resources__paragraph--white {
  color: #f0f0f0;
}

.page-resources__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-resources__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-resources__card--small {
  padding: 30px;
}

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

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #0A2239;
}

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

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

.page-resources__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #0A2239;
  border: 2px solid #FFD700;
}

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

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

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

.page-resources__btn-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom of card content */
  display: inline-block;
}

.page-resources__btn-link:hover {
  text-decoration: underline;
}

.page-resources__security-section {
  background-color: #f0f0f0;
}

.page-resources__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
  margin-top: 40px;
}

.page-resources__text-block {
  flex: 1;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-resources__list-item {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #333333;
}

.page-resources__list-item::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-resources__security-image {
  flex: 1;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: auto;
  display: block;
}

.page-resources__faq-section {
  padding-bottom: 80px;
}

.page-resources__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background: #0A2239;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-resources__faq-item.active {
  background: #0A2239;
  border-color: #FFD700;
}

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

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg); /* Explicitly set for '-' */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  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; /* Sufficiently large for content */
  padding: 15px 25px 25px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

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

.page-resources__cta-section .page-resources__heading {
  color: #0A2239;
}

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

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-resources__cta-section .page-resources__btn-primary {
  background-color: #0A2239;
  color: #ffffff;
  border-color: #0A2239;
}

.page-resources__cta-section .page-resources__btn-primary:hover {
  background-color: #1a3a5a;
  border-color: #1a3a5a;
}

.page-resources__cta-section .page-resources__btn-secondary {
  background-color: transparent;
  color: #0A2239;
  border-color: #0A2239;
}

.page-resources__cta-section .page-resources__btn-secondary:hover {
  background-color: #0A2239;
  color: #FFD700;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__heading {
    font-size: 2em;
  }
  .page-resources__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources__security-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
  }
  .page-resources__section {
    padding: 60px 15px;
  }
  .page-resources__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__paragraph {
    font-size: 0.95em;
  }
  .page-resources__overview-grid,
  .page-resources__guide-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card--small {
    padding: 20px;
  }
  .page-resources__card--big .page-resources__card-image {
    height: 200px;
  }
  .page-resources__card-content {
    padding: 20px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__security-content,
  .page-resources__faq-list,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__hero-content {
    padding: 0 15px;
  }
  .page-resources__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }
}