/* style/resources.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Deep Sky Blue */
  --dark-bg: #1a1a1a; /* Dark background for contrast */
  --light-text: #ffffff;
  --gray-text: #cccccc;
  --card-bg: #2a2a2a;
  --border-color: #333333;
  --hover-color: #FFC107; /* Lighter gold for hover */
}

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

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

.page-resources-hero-banner {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #333333 100%);
  padding: 80px 0;
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
}

.page-resources-main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-resources-subtitle {
  font-size: 1.2em;
  color: var(--gray-text);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-cta-button:hover {
  background-color: var(--hover-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

.page-resources-small-button {
  padding: 10px 20px;
  font-size: 1em;
}

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

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

.page-resources-section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(30, 144, 255, 0.4);
}

.page-resources-description {
  font-size: 1.1em;
  color: var(--gray-text);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources-grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-resources-card-image {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small for cards */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

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

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

.page-resources-card p {
  color: var(--gray-text);
  font-size: 0.95em;
  flex-grow: 1;
}

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

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

.page-resources-guide-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-guide-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-resources-guide-item p {
  color: var(--gray-text);
  margin-bottom: 15px;
}

.page-resources-guide-item ol, .page-resources-guide-item ul {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-resources-guide-item ul {
  list-style-type: disc;
}

.page-resources-guide-item li {
  color: var(--gray-text);
  margin-bottom: 10px;
  font-size: 0.95em;
}

.page-resources-guide-item li strong {
  color: var(--light-text);
}

.page-resources-guide-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  object-fit: cover;
}

.page-resources-note {
  font-style: italic;
  font-size: 0.9em;
  color: var(--gray-text);
  margin-top: 15px;
}

.page-resources-mt-30 {
  margin-top: 30px;
}

/* FAQ Styles */
.faq-list {
  margin-top: 40px;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #3a3a3a;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--light-text);
}

.faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #222222;
  border-radius: 0 0 5px 5px;
  color: var(--gray-text);
  font-size: 0.95em;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px;
  border: 1px solid var(--border-color);
  border-top: none;
}

/* Latest News/Blog Styles */
.page-resources-news-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources-news-card .page-resources-card-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources-news-card .page-resources-card-title {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources-news-card .page-resources-card-title a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources-news-excerpt {
  color: var(--gray-text);
  font-size: 0.9em;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-resources-news-date {
  font-size: 0.8em;
  color: #888;
  text-align: right;
  display: block;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-main-title {
    font-size: 2.5em;
  }

  .page-resources-section-title {
    font-size: 2em;
  }

  .page-resources-grid-2-col, .page-resources-grid-3-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-resources-hero-banner {
    padding: 60px 0;
  }

  .page-resources-main-title {
    font-size: 2em;
  }

  .page-resources-subtitle {
    font-size: 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;
    margin-bottom: 30px;
  }

  .page-resources-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources-card {
    padding: 20px;
  }

  .page-resources-card-title {
    font-size: 1.3em;
  }

  .page-resources-guide-item {
    padding: 20px;
  }

  .page-resources-guide-title {
    font-size: 1.5em;
  }

  .faq-question h3 {
    font-size: 1em;
  }

  .faq-toggle {
    font-size: 1.2em;
  }

  .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-main-title {
    font-size: 1.8em;
  }

  .page-resources-section-title {
    font-size: 1.5em;
  }

  .page-resources-cta-button {
    width: 100%;
    max-width: 250px;
  }

  .page-resources-card-image {
    max-width: 250px;
  }
}