.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Dark body background #0d1117, so light text */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources__section {
  padding: 60px 0;
  margin-bottom: 0; /* Remove default margins */
}

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

.page-resources__hero-section {
  position: relative;
  padding-top: 0; /* shared.css is assumed to handle body padding-top */
  padding-bottom: 0;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Dark blue gradient */
  color: #ffffff;
  overflow: hidden;
}

.page-resources__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  gap: 40px;
}

.page-resources__hero-content {
  flex: 1;
  max-width: 55%;
  padding-right: 20px;
}

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

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

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

.page-resources__hero-image-wrapper {
  flex: 1;
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color for titles */
  font-weight: 700;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #cccccc;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #007bff; /* Primary color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-resources__text-content {
  flex: 1;
}

.page-resources__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-resources__image-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__image-content--center {
  align-items: center;
  margin-top: 40px;
}

.page-resources__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-resources__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-resources__info-text {
  font-style: italic;
  color: #aaa;
  margin-top: 20px;
  font-size: 0.95em;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #ffc107;
  color: #1a1a1a; /* Dark text for bright button */
  border: 2px solid #ffc107;
}

.page-resources__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #0d1117;
}

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

.page-resources__btn-secondary:hover {
  background-color: #007bff;
  color: #ffffff;
}

.page-resources__cta-group,
.page-resources__cta-single {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__cta-single {
  justify-content: center;
}

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

.page-resources__strategy-card,
.page-resources__contact-item,
.page-resources__update-card,
.page-resources__article-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__card-title {
  font-size: 1.4em;
  color: #ffc107;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__card-text {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
}

.page-resources__read-more {
  display: inline-block;
  margin-top: 15px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

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

.page-resources__article-card .page-resources__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__article-card .page-resources__card-link:hover .page-resources__card-title {
  color: #007bff;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  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: 18px 25px;
  background: rgba(255, 255, 255, 0.1); /* Light background for question */
  border: 1px solid rgba(255, 255, 255, 0.2);
  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: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #007bff;
  transform: rotate(45deg); /* Change to minus sign visually */
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03); /* Slightly darker background for answer */
  border-radius: 0 0 8px 8px;
  color: #e0e0e0;
}

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

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

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

.page-resources__contact-item {
  background: rgba(255, 255, 255, 0.07); /* Darker card for contact */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__contact-item .page-resources__card-title {
  color: #ffc107;
  margin-bottom: 10px;
}

.page-resources__contact-item p {
  color: #cccccc;
  margin-bottom: 25px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    gap: 30px;
  }

  .page-resources__hero-content {
    max-width: 100%;
    padding-right: 0;
  }

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

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

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

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

  .page-resources__content-wrapper {
    flex-direction: column;
  }

  .page-resources__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-resources__text-content,
  .page-resources__image-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources__section {
    padding: 40px 0;
  }

  .page-resources__container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

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

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

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

  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources__sub-title {
    font-size: 1.5em;
  }

  .page-resources__list {
    padding-left: 15px;
  }

  .page-resources__list li {
    font-size: 0.95em;
  }

  .page-resources__info-text {
    font-size: 0.9em;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-resources__cta-group,
  .page-resources__cta-single {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-resources__content-grid,
  .page-resources__updates-grid,
  .page-resources__articles-grid,
  .page-resources__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__strategy-card,
  .page-resources__contact-item,
  .page-resources__update-card,
  .page-resources__article-card {
    padding: 20px;
  }

  .page-resources__card-title {
    font-size: 1.2em;
  }

  .page-resources__card-text {
    font-size: 0.95em;
  }

  .page-resources__faq-question {
    padding: 15px;
  }

  .page-resources__faq-question h3 {
    font-size: 1.1em;
  }

  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-resources__faq-answer {
    padding: 0 15px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__content-wrapper,
  .page-resources__cta-group,
  .page-resources__cta-single,
  .page-resources__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}