.page-resources {
  color: #f0f0f0; /* Default light text 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;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #8B0000; /* Use auxiliary color for contrast */
  background-image: linear-gradient(rgba(139, 0, 0, 0.8), rgba(139, 0, 0, 0.8)), url('[GALLERY:bg:1920x1080:cwin,resources_hero_bg,abstract_pattern]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-resources__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Primary gold color */
  color: #8B0000; /* Dark red text for contrast */
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold for section titles */
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-resources__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with body */
  color: #f0f0f0;
  padding: 80px 0;
}

.page-resources__dark-bg {
  background-color: #121212; /* Body background color */
  color: #f0f0f0;
  padding: 80px 0;
}

/* Knowledge Hub Section */
.page-resources__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__category-item {
  background-color: #2a2a2a; /* Darker card background */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto; /* Ensure responsiveness */
}

.page-resources__category-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for category titles */
  font-weight: bold;
}

.page-resources__category-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__category-title a:hover {
  color: #ffffff;
}

.page-resources__category-excerpt {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-resources__read-more-link:hover {
  color: #ffffff;
}

.page-resources__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-resources__read-more-link:hover .page-resources__arrow {
  transform: translateX(5px);
}

/* Guides Section */
.page-resources__guide-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-resources__guide-item {
  display: flex;
  background-color: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__guide-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  max-width: 100%; /* Ensure responsiveness */
  height: auto; /* Ensure responsiveness */
}

.page-resources__guide-content {
  width: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-resources__guide-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #FFD700;
  font-weight: bold;
}

.page-resources__guide-excerpt {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Why CWIN Resources Section */
.page-resources__advantage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__advantage-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-resources__advantage-description {
  font-size: 1em;
  color: #cccccc;
}

/* FAQ Section */
.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a; /* Darker card background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.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 20px;
  opacity: 0;
  color: #cccccc;
  background-color: #3a3a3a; /* Slightly lighter dark for answer background */
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; 
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}