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

/* Fixed navigation bar spacing */
.page-resources__hero-section {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0d0d0d, #2a2a2a); /* Dark gradient for hero */
  color: #ffffff;
}

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

.page-resources__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #ffd700; /* Gold for emphasis */
}

.page-resources__hero-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__btn-primary {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 30px;
  background: #007bff; /* Primary brand color */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-resources__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.page-resources__section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for sections */
  color: #f0f0f0;
}

.page-resources__section:nth-child(even) {
  background-color: #0d0d0d; /* Slightly darker alternating background */
}

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

.page-resources__section-title--light {
  color: #ffffff; /* White for titles on dark blue background */
}

.page-resources__section-description {
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #cccccc;
}

.page-resources__section-description--light {
  color: #f0f0f0;
}

.page-resources__highlight {
  color: #ffc107; /* Auxiliary brand color for highlights */
  font-weight: 700;
}

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

.page-resources__card {
  background: #2a2a2a; /* Darker card background */
  border-radius: 12px;
  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;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: #ffd700;
}

.page-resources__card-text {
  font-size: 15px;
  margin: 0 20px 20px;
  flex-grow: 1;
  color: #cccccc;
}

.page-resources__articles-list {
  display: grid;
  gap: 25px;
}

.page-resources__article-item {
  background: #2a2a2a;
  border-radius: 12px;
  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;
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.page-resources__article-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.page-resources__article-image {
  width: 250px; /* Fixed width for article image */
  height: 180px; /* Fixed height */
  object-fit: cover;
  flex-shrink: 0;
}

.page-resources__article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-resources__article-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffd700;
}

.page-resources__article-excerpt {
  font-size: 15px;
  margin-bottom: 10px;
  color: #cccccc;
}

.page-resources__article-date {
  font-size: 13px;
  color: #888888;
}

.page-resources__more-articles {
  text-align: center;
  margin-top: 40px;
}

.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffc107; /* Auxiliary brand color */
  color: #000000; /* Black text for contrast */
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

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

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a2a; /* Darker background for FAQ items */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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 20px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px !important;
  opacity: 1;
  background: #1a1a1a; /* Slightly lighter dark background for answer */
  border-radius: 0 0 10px 10px;
  color: #cccccc;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #3a3a3a; /* Dark background for question */
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
  color: #f0f0f0;
}

.page-resources__faq-question:hover {
  background: #4a4a4a;
}

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

.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: 15px;
  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: #ffffff;
  transform: rotate(45deg); /* Optional: animate to 'x' or rotate */
}

.page-resources__section--cta {
  background: #007bff; /* Primary brand color for CTA section */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-resources__section--cta .page-resources__container {
  padding: 0 20px;
}

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

.page-resources__btn-primary--large,
.page-resources__btn-secondary--large {
  font-size: 20px;
  padding: 18px 35px;
}

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

.page-resources__btn-secondary--large:hover {
  background: #e0e0e0;
  color: #0056b3;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 42px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__article-image {
    width: 200px;
    height: 150px;
  }
  .page-resources__article-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: 100px; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__btn-primary {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__section-description {
    font-size: 14px;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-item {
    flex-direction: column;
  }
  .page-resources__article-image {
    width: 100%;
    height: 200px;
  }
  .page-resources__article-content {
    padding: 15px;
  }
  .page-resources__article-title {
    font-size: 18px;
  }
  .page-resources__article-excerpt {
    font-size: 14px;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary--large,
  .page-resources__btn-secondary--large {
    width: 80%;
    margin: 0 auto;
    font-size: 18px;
    padding: 15px 30px;
  }
  /* Ensure all images are responsive and prevent overflow */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  .page-resources__container,
  .page-resources__section,
  .page-resources__card,
  .page-resources__article-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}