/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-resources__hero-section {
  position: relative;
  padding: 120px 20px 80px; /* Top padding for fixed header */
  background: linear-gradient(135deg, #1A2B4C, #3A5B8C); /* Dark blue gradient */
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #f0f0f0;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-resources__section-additional-info {
  font-size: 1em;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 40px auto 0;
}

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

.page-resources__grid {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

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

.page-resources__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-resources__grid--articles {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-resources__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  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: #ffffff;
}

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

.page-resources__card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for image consistency */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__card-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources__card-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto; /* Push button to bottom */
  text-align: center;
}

.page-resources__btn-primary {
  background: #FFD700;
  color: #1A2B4C;
  border: 2px solid #FFD700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-resources__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  color: #000000;
}

.page-resources__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-resources__btn-secondary:hover {
  background: #FFD700;
  color: #1A2B4C;
}

.page-resources__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-resources__text-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Strategy Section specific styles */
.page-resources__strategy-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* News Section specific styles */
.page-resources__news-section {
  background-color: #0d0d0d;
}

.page-resources__article-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.page-resources__article-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-resources__article-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-resources__article-readmore {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-resources__article-readmore:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* FAQ Section specific styles */
.page-resources__faq-section {
  background-color: #1a1a1a;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #ffffff;
}

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.page-resources__faq-toggle {
  font-size: 2em;
  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: 30px;
  height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate */
  color: #ffffff;
}

.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;
  color: #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
}

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

/* Support Section specific styles */
.page-resources__support-section {
  background-color: #1A2B4C;
  color: #ffffff;
}

.page-resources__contact-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-resources__contact-info p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-resources__contact-info strong {
  color: #FFD700;
}

.page-resources__support-btn {
  margin-top: 30px;
}

.page-resources__highlight {
  color: #FFD700;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding: 100px 15px 60px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-image-wrapper {
    height: 180px;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
  .page-resources__card-text {
    font-size: 0.9em;
  }
  .page-resources__card-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 1.1em;
  }
  .page-resources__faq-toggle {
    font-size: 1.8em;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources__contact-info {
    font-size: 1em;
  }
  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__card-image-wrapper {
    height: 150px;
  }
  .page-resources__card-title {
    font-size: 1.1em;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
  }
}

/* Contrast Fixes */
.page-resources__dark-bg {
  background: #1A2B4C;
  color: #ffffff;
}

.page-resources__light-bg {
  background: #1a1a1a; /* Adjusted for overall dark theme */
  color: #f0f0f0;
}