/* style/resources.css */
:root {
  --page-resources-primary-color: #FFD700; /* Gold */
  --page-resources-secondary-color: #0A2463; /* Deep Blue */
  --page-resources-accent-color: #DC143C; /* Crimson for emphasis */
  --page-resources-text-dark: #2c3e50; /* Dark text for light backgrounds */
  --page-resources-text-light: #ffffff; /* Light text for dark backgrounds */
  --page-resources-background-light: #f8f9fa;
  --page-resources-background-dark: #1a2a4a;
  --page-resources-border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-resources-text-dark);
  background-color: var(--page-resources-background-light);
}

.page-resources-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-resources-hero {
  background: linear-gradient(135deg, var(--page-resources-secondary-color), #0A2463CC), url('[GALLERY:hero:uw88,resources,banner]') center/cover no-repeat;
  background-blend-mode: multiply;
  color: var(--page-resources-text-light);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--page-resources-primary-color);
}

.page-resources-hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-resources-primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-resources-hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.page-resources-hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--page-resources-primary-color);
  color: var(--page-resources-secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--page-resources-primary-color);
}

.page-resources-cta-button:hover {
  background-color: #FFC107; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-cta-secondary {
  background-color: transparent;
  color: var(--page-resources-primary-color);
  border-color: var(--page-resources-primary-color);
}

.page-resources-cta-secondary:hover {
  background-color: var(--page-resources-primary-color);
  color: var(--page-resources-secondary-color);
}

/* General Section Styling */
.page-resources-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-resources-border-color);
}

.page-resources-section:last-of-type {
  border-bottom: none;
}

.page-resources-section-title {
  font-size: 2.5em;
  color: var(--page-resources-secondary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.page-resources-section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--page-resources-primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-resources-section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #555;
}

/* Card Grid */
.page-resources-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-card-image {
  width: 100%;
  height: 220px; /* Ensure images are not too small */
  object-fit: cover;
  display: block;
}

.page-resources-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-resources-secondary-color);
}

.page-resources-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-card-title a:hover {
  color: var(--page-resources-primary-color);
}

.page-resources-card-text {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-card-link {
  display: inline-block;
  color: var(--page-resources-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-card-link:hover {
  color: var(--page-resources-secondary-color);
}

/* FAQ Section */
.page-resources-faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--page-resources-border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-resources-secondary-color);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1em;
  color: inherit;
}

.faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: var(--page-resources-background-light);
  color: var(--page-resources-text-dark);
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 20px 25px;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* News Section */
.page-resources-article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-resources-article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-resources-article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources-article-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--page-resources-secondary-color);
}

.page-resources-article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-article-title a:hover {
  color: var(--page-resources-primary-color);
}

.page-resources-article-excerpt {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources-article-date {
  font-size: 0.85em;
  color: #999;
  text-align: right;
}

/* Support Section */
.page-resources-content-flex {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-resources-text-content {
  flex: 1;
  min-width: 300px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-text-content h3 {
  font-size: 1.8em;
  color: var(--page-resources-secondary-color);
  margin-bottom: 15px;
}

.page-resources-text-content p {
  margin-bottom: 20px;
  color: #555;
}

.page-resources-link-text {
  color: var(--page-resources-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-link-text:hover {
  color: var(--page-resources-secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-hero-title {
    font-size: 2.8em;
  }
  .page-resources-section-title {
    font-size: 2em;
  }
  .page-resources-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources-article-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources-hero {
    padding: 80px 0;
  }
  .page-resources-hero-title {
    font-size: 2.2em;
  }
  .page-resources-hero-description {
    font-size: 1.1em;
  }
  .page-resources-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources-section {
    padding: 40px 0;
  }
  .page-resources-section-title {
    font-size: 1.8em;
  }
  .page-resources-section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources-card-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-article-list {
    grid-template-columns: 1fr;
  }
  .page-resources-card-image, .page-resources-article-image {
    height: 180px;
  }
  .faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-resources-text-content {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-resources-hero-title {
    font-size: 1.8em;
  }
  .page-resources-hero-description {
    font-size: 0.95em;
  }
  .page-resources-hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-cta-button {
    width: 80%;
    max-width: 250px;
  }
  .page-resources-section-title {
    font-size: 1.5em;
  }
  .page-resources-card-title {
    font-size: 1.3em;
  }
  .page-resources-article-title {
    font-size: 1.1em;
  }
}