.page-resources__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  text-align: center;
  background: linear-gradient(135deg, #336699, #1a334d);
  color: #ffffff;
  overflow: hidden;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:1920x1080:debet 2,abstract_pattern,geometric]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFCC00; /* Use secondary brand color for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-resources__btn-primary {
  background-color: #FFCC00;
  color: #1a334d; /* Darker text for contrast */
  border: 2px solid #FFCC00;
}

.page-resources__btn-primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #336699;
  transform: translateY(-2px);
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  color: #FFCC00; /* Highlighted title */
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFCC00;
  border-radius: 2px;
}

.page-resources__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark background */
}

.page-resources__content-area {
  padding: 60px 0;
}

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

.page-resources__light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

.page-resources__light-bg .page-resources__section-subtitle,
.page-resources__light-bg .page-resources__text-block p,
.page-resources__light-bg .page-resources__text-block h3,
.page-resources__light-bg .page-resources__sidebar-title,
.page-resources__light-bg .page-resources__news-list li a {
  color: #333333;
}

.page-resources__medium-bg {
  background-color: transparent; /* Titles on varying backgrounds */
}

.page-resources__video-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f5f5f5; /* Light background */
  color: #333333;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.page-resources__grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.page-resources__text-block {
  line-height: 1.7;
}

.page-resources__text-block h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFCC00; /* Secondary color for subheadings */
}

.page-resources__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Light text for dark background */
}

.page-resources__dark-bg .page-resources__text-block p {
  color: #ffffff;
}

.page-resources__text-block .page-resources__btn-primary,
.page-resources__text-block .page-resources__btn-secondary {
  margin-top: 20px;
  margin-right: 15px;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__sidebar {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sidebar on dark sections */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__light-bg .page-resources__sidebar {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__sidebar-title {
  font-size: 1.6em;
  margin-bottom: 25px;
  color: #FFCC00;
  text-align: center;
}

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

.page-resources__news-list li {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.page-resources__light-bg .page-resources__news-list li {
  border-bottom: 1px solid #e0e0e0;
}

.page-resources__news-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-resources__news-list li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-resources__light-bg .page-resources__news-list li a {
  color: #333333;
}

.page-resources__news-list li a:hover {
  color: #FFCC00;
}

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

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 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-color: #336699;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-resources__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f5f5f5;
  color: #333333;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-resources__sidebar {
    order: -1; /* Sidebar appears above content on smaller screens */
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-subtitle {
    font-size: 0.95em;
  }
  .page-resources__video-section,
  .page-resources__content-area,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-left: 0;
    margin-right: 0;
  }
  .page-resources__hero-cta-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__video,
  .page-resources__video-link {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 15px 20px;
  }
  .page-resources__dark-bg .page-resources__text-block p,
  .page-resources__dark-bg .page-resources__text-block h3 {
    color: #ffffff;
  }
  .page-resources__light-bg .page-resources__text-block p,
  .page-resources__light-bg .page-resources__text-block h3 {
    color: #333333;
  }
  .page-resources__sidebar {
    padding: 20px;
  }
  .page-resources__sidebar-title {
    font-size: 1.4em;
  }
  .page-resources__news-list li a {
    font-size: 1em;
  }
}