/* style/resources.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --dark-bg-color: #1a1a1a;
  --light-text-color: #f0f0f0;
  --dark-text-color: #333333;
  --card-bg-color: #2a2a2a;
  --border-color: #444444;
  --hover-color: #FFEB3B;
}

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

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

.page-resources__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.page-resources h1,
.page-resources h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources h1 {
  font-size: 3.2em;
}

.page-resources h2 {
  font-size: 2.5em;
}

.page-resources h3 {
  color: var(--light-text-color);
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources__hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #330000 100%);
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-resources__hero-content h1 {
  font-size: 3.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-content p {
  font-size: 1.3em;
  color: var(--light-text-color);
  margin-bottom: 30px;
}

.page-resources__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-resources__btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.page-resources__btn--primary {
  background-color: var(--primary-color);
  color: var(--dark-bg-color);
  border: 2px solid var(--primary-color);
}

.page-resources__btn--primary:hover {
  background-color: var(--hover-color);
  border-color: var(--hover-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-resources__card h3 {
  padding: 20px 20px 0;
  margin-bottom: 10px;
  text-align: left;
}

.page-resources__card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card h3 a:hover {
  color: var(--hover-color);
}

.page-resources__card p {
  padding: 0 20px;
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
  text-align: left;
}

.page-resources__card-link {
  display: inline-block;
  padding: 15px 20px;
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: 20px; /* Space above the link */
}

.page-resources__card-link:hover {
  background-color: #a00000;
  color: var(--primary-color);
}

.page-resources__call-to-action-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.2em;
  color: var(--light-text-color);
}

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

.page-resources__inline-link:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #333333;
  color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

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

.faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  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;
  padding: 0 20px;
  background-color: var(--card-bg-color);
  color: var(--light-text-color);
}

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

.faq-answer p {
  margin: 0;
  text-align: left;
  font-size: 1em;
}

/* Blog/News Specific Styles */
.page-resources__grid--blog .page-resources__card img {
  height: 200px;
}

.page-resources__contact-info {
  text-align: center;
  margin-top: 30px;
}

.page-resources__contact-info p {
  font-size: 1.2em;
  margin-bottom: 15px;
}

.page-resources__contact-info strong {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources h1 {
    font-size: 3em;
  }
  .page-resources h2 {
    font-size: 2em;
  }
  .page-resources__hero-content h1 {
    font-size: 3em;
  }
  .page-resources__hero-content p {
    font-size: 1.1em;
  }
  .page-resources__card img {
    height: 200px;
  }
  .page-resources__card h3 {
    font-size: 1.4em;
  }
  .faq-question h3 {
    font-size: 1.2em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__hero {
    padding: 60px 0;
  }
  .page-resources__hero-content h1 {
    font-size: 2.5em;
  }
  .page-resources__hero-content p {
    font-size: 1em;
  }
  .page-resources__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card img {
    height: 180px;
  }
  .page-resources__card h3 {
    font-size: 1.3em;
  }
  .page-resources__card p {
    font-size: 0.95em;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-answer {
    padding: 15px;
  }
  .page-resources__call-to-action-text {
    font-size: 1em;
  }
  .page-resources__contact-info p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources h1 {
    font-size: 2.2em;
  }
  .page-resources h2 {
    font-size: 1.8em;
  }
  .page-resources__hero-content h1 {
    font-size: 2em;
  }
  .page-resources__card img {
    height: 160px;
  }
  .page-resources__card h3 {
    font-size: 1.2em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
}