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

.page-resources__section {
  padding: 60px 20px;
  margin-bottom: 0;
}

.page-resources__section:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-resources__text-center {
  text-align: center;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__section-description {
  font-size: 18px;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero section */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header, assuming shared doesn't set body padding-top */
  padding-bottom: 0;
  margin-top: 0;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image to ensure text contrast */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #FFD700; /* Gold for hero title */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 22px;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* CTA Button */
.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #121212; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

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

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

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

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

.page-resources__content-card {
  background-color: rgba(255, 255, 255, 0.08); /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-resources__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: #8B0000; /* Dark red for card link */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
  background-color: #a50000;
}

.page-resources__button-group {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__faq-list {
  margin-top: 30px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  border: 1px solid #444;
  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: #3a3a3a;
  border-color: #666;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for FAQ question */
  pointer-events: none;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #8B0000; /* Dark red when active */
  transform: rotate(45deg); /* Plus sign to X */
}

.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-color: #1a1a1a;
  border-top: 1px solid #333;
  border-radius: 0 0 8px 8px;
}

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

.page-resources__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
}

/* General image styling for content areas */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-section {
    height: 500px;
  }

  .page-resources__hero-title {
    font-size: 44px;
  }

  .page-resources__hero-description {
    font-size: 20px;
  }

  .page-resources__section-title {
    font-size: 32px;
  }

  .page-resources__section-description {
    font-size: 17px;
  }

  .page-resources__content-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-resources__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* HERO Section mobile rules */
  .page-resources__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 80px) !important; /* Ensure header offset on mobile */
    padding-bottom: 40px;
    align-items: flex-start;
    justify-content: center;
  }

  .page-resources__hero-content {
    padding: 15px;
  }

  .page-resources__hero-title {
    font-size: 32px !important;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 16px !important;
    margin-bottom: 30px;
  }

  /* General content section mobile rules */
  .page-resources__section {
    padding: 40px 15px;
  }

  .page-resources__container {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-resources__section-title {
    font-size: 28px !important;
    margin-bottom: 15px;
  }

  .page-resources__section-description {
    font-size: 15px !important;
    margin-bottom: 30px;
  }

  /* Content grid and cards mobile rules */
  .page-resources__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-resources__content-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px; /* Constrain card width for better readability on small screens */
  }

  .page-resources__card-title {
    font-size: 20px;
    padding: 15px 15px 5px;
  }

  .page-resources__card-text {
    font-size: 15px;
    padding: 0 15px 15px;
  }

  .page-resources__card-link {
    margin: 0 15px 15px;
  }

  /* Buttons and button containers mobile rules */
  .page-resources__cta-button,
  .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: 16px;
  }

  .page-resources__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* Universal image responsive rules for content area */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section mobile rules */
  .page-resources__faq-list {
    padding: 0 15px;
  }

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

  .page-resources__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px); /* Adjust for toggle icon */
  }

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

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

  .page-resources__faq-answer p {
    font-size: 15px;
  }
}