.page-resources {
  --primary-color: #0A1931;
  --secondary-color: #E0B400;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #ffffff;
  --bg-dark: #0A1931;
  
  color: var(--text-light); /* Default for dark body background */
  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;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__text-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* --- Hero Section --- */
.page-resources__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 600px;
  overflow: hidden;
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

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

.page-resources__hero-cta-buttons {
  display: flex;
  gap: 20px;
}

.page-resources__hero-image-wrapper {
  flex-shrink: 0;
  max-width: 600px;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-small {
  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;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-resources__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources__btn-small:hover {
  background-color: #ffc800;
  border-color: #ffc800;
}

/* --- General Section Styles --- */
.page-resources__introduction-section,
.page-resources__news-section,
.page-resources__faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 20px;
}

.page-resources__guides-section,
.page-resources__security-section,
.page-resources__cta-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 20px;
}

.page-resources__dark-section .page-resources__text-block {
  color: var(--text-light);
}

.page-resources__light-bg .page-resources__section-title {
  color: var(--primary-color);
}

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

.page-resources__guide-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources__card-description {
  font-size: 0.95em;
  color: var(--text-light);
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* --- News Section --- */
.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-color: var(--bg-light);
  color: var(--text-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-resources__news-card .page-resources__card-title {
  color: var(--primary-color);
}

.page-resources__news-card .page-resources__card-description {
  color: var(--text-dark);
}

/* --- Security Section --- */
.page-resources__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-resources__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Ensure min size */
}

.page-resources__security-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources__security-list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
}

.page-resources__list-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.page-resources__list-description {
  font-size: 0.95em;
  color: var(--text-light);
}

/* --- FAQ Section --- */
.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  background-color: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: var(--primary-color);
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  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, padding 0.3s ease;
  color: var(--text-dark);
  background-color: #ffffff;
}

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

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

/* --- CTA Section --- */
.page-resources__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 800px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-resources__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px;
  }

  .page-resources__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-resources__hero-cta-buttons {
    justify-content: center;
  }

  .page-resources__hero-image-wrapper {
    margin-top: 40px;
    max-width: 80%;
  }

  .page-resources__security-content {
    flex-direction: column;
  }

  .page-resources__security-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
  }

  .page-resources__hero-title {
    font-size: 2.5em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__text-block {
    font-size: 0.95em;
  }

  .page-resources__hero-cta-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Responsive images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Responsive image containers */
  .page-resources__hero-image-wrapper,
  .page-resources__guide-card,
  .page-resources__news-card,
  .page-resources__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Responsive buttons */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-small {
    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;
  }

  /* Button containers for mobile */
  .page-resources__hero-cta-buttons,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources__guide-image,
  .page-resources__news-image {
    height: auto;
    max-height: 250px;
  }

  .page-resources__security-image {
    max-width: 100%;
    min-width: 200px;
  }

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

  .page-resources__faq-question,
  .page-resources__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }

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

  .page-resources__hero-section {
    padding: 60px 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-small {
    padding: 12px 20px;
  }
}