/* style/resources.css */
:root {
  --primary-color: #B80F0A;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-medium-dark: #1a1a1a;
  --bg-light-dark: #222222;
  --border-color: rgba(255, 255, 255, 0.1);
}

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

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

/* Intro Section */
.page-resources__intro-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  text-align: center;
  padding-top: 180px; /* Desktop: Spacing for fixed header */
}

.page-resources__main-title {
  font-size: 42px;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__intro-text {
  font-size: 18px;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

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

/* Section Titles */
.page-resources__section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin: 60px 0 20px 0;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 17px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Guide Section */
.page-resources__guide-section {
  background-color: var(--bg-medium-dark);
  padding: 60px 0;
}

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

.page-resources__guide-item {
  background-color: var(--bg-light-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-resources__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-resources__guide-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__guide-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__guide-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Articles Section */
.page-resources__articles-section {
  background-color: var(--bg-dark);
  padding: 60px 0;
}

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

.page-resources__article-card {
  background-color: var(--bg-light-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-resources__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__article-card h3 {
  font-size: 20px;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-resources__article-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__article-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 20px 20px 20px;
}

.page-resources__read-more-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease;
}

.page-resources__read-more-button:hover {
  background-color: #9a0d08;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: var(--bg-medium-dark);
  padding: 60px 0;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--bg-light-dark);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background: #2a2a2a;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: 32px;
  height: 32px;
}

.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;
  background: #121212;
  color: rgba(255, 255, 255, 0.8);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure it expands enough */
  padding: 20px 25px !important;
  opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__main-title {
    font-size: 36px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__intro-text {
    font-size: 16px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-resources__guide-item h3 {
    font-size: 20px;
  }
  .page-resources__guide-item p,
  .page-resources__article-card p {
    font-size: 15px;
  }
  .page-resources__article-card h3 {
    font-size: 18px;
  }
  .page-resources__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-resources__intro-section {
    padding-top: 160px !important; /* Mobile: Spacing for fixed header */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__main-title {
    font-size: 30px;
  }
  .page-resources__section-title {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 15px;
  }
  .page-resources__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-resources__guide-grid,
  .page-resources__article-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__guide-item,
  .page-resources__article-card {
    padding: 20px;
  }
  .page-resources__guide-image {
    max-width: 250px;
  }
  .page-resources__article-image {
    height: 180px;
  }
  .page-resources__article-card h3 {
    font-size: 17px;
    margin: 15px 15px 8px 15px;
  }
  .page-resources__article-card p {
    font-size: 14px;
    padding: 0 15px 15px 15px;
  }
  .page-resources__read-more-button {
    margin: 0 15px 15px 15px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  /* Ensure all images and containers prevent horizontal scroll */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__intro-section,
  .page-resources__guide-section,
  .page-resources__articles-section,
  .page-resources__faq-section,
  .page-resources__container,
  .page-resources__guide-item,
  .page-resources__article-card,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}