/* style/resources.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f1f3f5;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text for dark body background */
  background-color: var(--background-dark); /* Body background is dark */
}

/* Ensure content is not hidden by fixed header */
.page-resources__hero-banner {
  padding-top: 120px; /* Desktop: Adjust for fixed header height */
}

.page-resources__section {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-dark); /* Default for light sections */
}

.page-resources__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-resources__light-bg {
  background: var(--background-light);
  color: var(--text-dark);
}

.page-resources__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), #1a3a7c);
  padding: 120px 20px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources__hero-title .highlight {
  color: var(--secondary-color);
}

.page-resources__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-resources__cta-button:hover {
  background: #ffc107;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources__cta-button--primary:hover {
  background: #ffc107;
}

.page-resources__cta-button--secondary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

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

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-resources__dark-section .page-resources__section-title {
  color: var(--text-light);
}

.page-resources__section-title .highlight {
  color: var(--secondary-color);
}

.page-resources__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-resources__dark-section .page-resources__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-resources__card, .page-resources__promo-card, .page-resources__news-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-resources__card:hover, .page-resources__promo-card:hover, .page-resources__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__card-image, .page-resources__content-image, .page-resources__promo-image, .page-resources__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure images are responsive */
  height: auto;
  display: block;
}

.page-resources__card-title, .page-resources__content-title, .page-resources__promo-title, .page-resources__news-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__card-text, .page-resources__content-text, .page-resources__promo-text, .page-resources__news-excerpt {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__news-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources__news-title a:hover {
  text-decoration: underline;
}

.page-resources__read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push to bottom */
}

.page-resources__read-more:hover {
  text-decoration: underline;
}

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

.page-resources__info-block {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-resources__info-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-resources__info-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%; /* Ensure images are responsive */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__info-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__info-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-resources__promo-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: auto;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-resources__promo-button:hover {
  background: #071a47;
  transform: translateY(-2px);
}

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

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 20px;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources__faq-question:active {
  background: #eeeeee;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__card-grid, .page-resources__content-grid, .page-resources__promo-grid, .page-resources__news-grid, .page-resources__info-blocks {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header height */
    padding-bottom: 50px;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__section-description {
    font-size: 16px;
  }
  .page-resources__card-title, .page-resources__content-title, .page-resources__promo-title, .page-resources__news-title {
    font-size: 20px;
  }
  .page-resources__card-text, .page-resources__content-text, .page-resources__promo-text, .page-resources__news-excerpt, .page-resources__info-text {
    font-size: 15px;
  }
  .page-resources__card, .page-resources__promo-card, .page-resources__news-card, .page-resources__info-block {
    padding: 20px;
  }
  .page-resources__card-image, .page-resources__content-image, .page-resources__promo-image, .page-resources__news-image {
    height: 180px;
  }
  .page-resources__info-icon {
    width: 80px;
    height: 80px;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
  }
  .page-resources__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  /* Mobile image adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__container,
  .page-resources__card,
  .page-resources__promo-card,
  .page-resources__news-card,
  .page-resources__info-block {
    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: 28px;
  }
  .page-resources__section-title {
    font-size: 24px;
  }
  .page-resources__cta-button {
    font-size: 16px;
    padding: 10px 25px;
  }
  .page-resources__card-image, .page-resources__content-image, .page-resources__promo-image, .page-resources__news-image {
    height: 150px;
  }
  .page-resources__card-title, .page-resources__content-title, .page-resources__promo-title, .page-resources__news-title {
    font-size: 18px;
  }
  .page-resources__info-title {
    font-size: 18px;
  }
}