.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text color for dark body background */
  background-color: var(--bg-dark-1, #0d0d0d);
}

.page-resources a {
  color: var(--secondary-color, #E3B505);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources a:hover {
  color: #ffda6a;
}

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

.page-resources__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: var(--bg-dark-2, #1a1a1a);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__dark-section {
  background-color: var(--primary-color, #0A2463);
  color: #ffffff;
}

.page-resources__hero-section {
  text-align: center;
  padding: 120px 20px 80px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, var(--primary-color, #0A2463) 0%, #1a3a70 100%);
  color: #ffffff;
  margin-bottom: 0; /* No margin-bottom for hero */
  border-radius: 0;
  box-shadow: none;
}

.page-resources__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

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

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

.page-resources__btn-primary {
  background: var(--secondary-color, #E3B505);
  color: var(--primary-color, #0A2463);
}

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

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

.page-resources__btn-secondary:hover {
  background: var(--secondary-color, #E3B505);
  color: var(--primary-color, #0A2463);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--secondary-color, #E3B505);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

.page-resources__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-resources__guide-text {
  padding: 20px;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__guide-text p {
  font-size: 1.05em;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-resources__guide-image-wrapper {
  position: relative;
  padding-bottom: 66.66%; /* 3:2 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources__full-width-btn {
  width: 100%;
  margin-top: 30px;
  padding: 15px 20px;
}

.page-resources__strategy-grid,
.page-resources__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__strategy-card,
.page-resources__promo-card {
  background-color: var(--bg-dark-3, #2a2a2a);
  border-radius: 8px;
  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: #e0e0e0;
}

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

.page-resources__strategy-image,
.page-resources__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card-title {
  font-size: 1.4em;
  color: var(--secondary-color, #E3B505);
  padding: 20px 20px 10px;
  font-weight: 600;
}

.page-resources__strategy-card p,
.page-resources__promo-card p {
  padding: 0 20px 20px;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-resources__card-link {
  display: block;
  padding: 15px 20px;
  background-color: var(--primary-color, #0A2463);
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
  background-color: #1a3a70;
  color: var(--secondary-color, #E3B505);
}

.page-resources__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* FAQ styles */
.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-dark-3, #2a2a2a);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--bg-dark-4, #3a3a3a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background-color: var(--bg-dark-5, #4a4a4a);
  border-color: var(--secondary-color, #E3B505);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #E3B505);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color, #E3B505);
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* For plus to cross effect */
  color: #ffffff;
  background-color: var(--secondary-color, #E3B505);
}

.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 25px;
  opacity: 0;
  color: #e0e0e0;
  font-size: 1.0em;
  line-height: 1.7;
  background-color: var(--bg-dark-3, #2a2a2a);
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
}

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

.page-resources__faq-answer p:last-child {
  margin-bottom: 0;
}

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

.page-resources__news-item {
  background-color: var(--bg-dark-3, #2a2a2a);
  border-radius: 8px;
  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;
}

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

.page-resources__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__news-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
  flex-grow: 1;
}

.page-resources__news-title a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
  color: var(--secondary-color, #E3B505);
}

.page-resources__news-excerpt {
  font-size: 0.95em;
  color: #c0c0c0;
  margin-bottom: 15px;
}

.page-resources__news-date {
  font-size: 0.85em;
  color: #888;
  text-align: right;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__content-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__content-grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-resources__guide-image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
  .page-resources__guide-text {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 100px 15px 60px; /* Mobile padding-top for fixed header */
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__main-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button,
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__guide-text p {
    font-size: 0.95em;
  }
  .page-resources__strategy-grid,
  .page-resources__promo-grid,
  .page-resources__news-list {
    gap: 20px;
  }
  .page-resources__strategy-image,
  .page-resources__promo-image,
  .page-resources__news-image {
    height: 180px;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-answer {
    padding: 15px 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image responsive fixes */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__guide-image-wrapper {
    padding-bottom: 75% !important; /* Adjust aspect ratio for mobile */
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__hero-section {
    padding-top: 80px; /* Even smaller padding for very small screens */
  }
}

/* Ensure all image containers are responsive */
.page-resources__section,
.page-resources__container,
.page-resources__content-grid,
.page-resources__guide-image-wrapper,
.page-resources__strategy-card,
.page-resources__promo-card,
.page-resources__news-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Specific fix for images inside cards/news items */
.page-resources__strategy-image,
.page-resources__promo-image,
.page-resources__news-image {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-resources__section,
  .page-resources__container,
  .page-resources__content-grid,
  .page-resources__guide-image-wrapper,
  .page-resources__strategy-card,
  .page-resources__promo-card,
  .page-resources__news-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__guide-image-wrapper,
  .page-resources__strategy-image,
  .page-resources__promo-image,
  .page-resources__news-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-resources__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure correct color contrast for all text */
.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4, .page-resources h5, .page-resources h6 {
  color: #ffffff; /* Default for dark background */
}

.page-resources p, .page-resources li, .page-resources span {
  color: #e0e0e0; /* Default for dark background */
}

.page-resources__dark-section h1,
.page-resources__dark-section h2,
.page-resources__dark-section h3,
.page-resources__dark-section p,
.page-resources__dark-section li,
.page-resources__dark-section span {
  color: #ffffff; /* Ensure white text on primary color background */
}

.page-resources__faq-question h3 {
  color: #ffffff;
}

.page-resources__faq-answer p {
  color: #e0e0e0;
}

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

.page-resources__news-excerpt {
  color: #c0c0c0;
}

.page-resources__news-date {
  color: #888;
}