.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #26A9E0; /* Brand primary color for hero */
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Minimum height for hero */
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* General Section Styling */
.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary brand color for titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-resources__light-bg .page-resources__section-title {
  color: #26A9E0; /* Primary color for titles on light background */
}

.page-resources__light-bg .page-resources__text-block {
  color: #333333;
}

.page-resources__dark-section {
  background-color: #0d0d0d; /* Slightly lighter than body background for contrast */
  color: #ffffff;
  padding: 60px 0;
}

.page-resources__dark-section .page-resources__section-title {
  color: #26A9E0; /* Primary color for titles on dark section */
}

.page-resources__dark-section .page-resources__text-block {
  color: #f0f0f0;
}

.page-resources__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  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;
  color: #ffffff;
  height: 100%; /* Ensure cards in a row have same height */
}

.page-resources__light-bg .page-resources__card {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 1.4em;
  padding: 15px 20px 10px;
  color: #26A9E0; /* Brand color for card titles */
  font-weight: bold;
}

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

.page-resources__card-title a:hover {
  color: #EA7C07;
}

.page-resources__card-description {
  font-size: 1em;
  padding: 0 20px 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* CTA Buttons Center Alignment */
.page-resources__cta-buttons--center {
  margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker for contrast */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for summary */
  transition: background-color 0.3s ease;
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-resources__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-qtext {
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0; /* Brand color for toggle icon */
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-resources__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-resources__faq-answer a {
    color: #26A9E0; /* Brand color for links in FAQ answers */
    text-decoration: underline;
}

/* CTA Section at bottom */
.page-resources__cta {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

/* Links within text blocks */
.page-resources__text-block a,
.page-resources__hero-description a,
.page-resources__card-description a {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-resources__text-block a:hover,
.page-resources__hero-description a:hover,
.page-resources__card-description a:hover {
    color: #EA7C07;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}