/* style/resources.css */
:root {
  --primary-color: #1E3A8A;
  --secondary-color: #F59E0B;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-dark: #0a0a0a;
  --background-light: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-resources {
  color: var(--text-color-light); /* Body background is dark, so main text is light */
  background-color: var(--background-dark);
  padding-top: 120px; /* Adjust for fixed header */
}

.page-resources .highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-resources__hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a0a0a 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-color-light);
    border-bottom: 5px solid var(--secondary-color);
}

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

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

.page-resources__hero-description {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-resources__hero-cta-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-cta-button:hover {
    background-color: #e08e00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__section {
  padding: 60px 20px;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

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

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

.page-resources__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-resources__introduction p,
.page-resources__criteria p,
.page-resources__benefits p,
.page-resources__selection-guide p,
.page-resources__mistakes p,
.page-resources__faq-answer p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.page-resources__criteria-item {
  margin-bottom: 40px;
  padding: 20px;
  border-bottom: 1px dashed var(--border-color);
}

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

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

.page-resources__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__image--large {
  max-width: 800px;
}

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

.page-resources__benefit-item {
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__benefit-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-resources__step-item {
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-button:hover {
    background-color: #1a3070;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.page-resources__cta-button--large {
    padding: 18px 45px;
    font-size: 1.2em;
    border-radius: 50px;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-resources__cta-button--large:hover {
    background-color: #e08e00;
}

.page-resources__mistake-list {
  list-style: disc;
  margin-left: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-resources__mistake-list li {
  margin-bottom: 10px;
}

.page-resources__cta-final {
    padding: 80px 20px;
    text-align: center;
}

.page-resources__cta-card {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-resources__cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* FAQ Styles */
.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;
  padding: 0 15px;
  opacity: 0;
  background-color: #f9f9f9;
  color: var(--text-color-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__criteria-title {
    font-size: 1.6em;
  }
  .page-resources__benefit-title, .page-resources__step-title {
    font-size: 1.2em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-banner {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-button {
    padding: 14px 30px;
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__container {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__criteria-title {
    font-size: 1.4em;
  }
  .page-resources__introduction p,
  .page-resources__criteria p,
  .page-resources__benefits p,
  .page-resources__selection-guide p,
  .page-resources__mistakes p,
  .page-resources__faq-answer p {
    font-size: 1em;
  }
  .page-resources__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__benefit-list, .page-resources__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-button--large {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
}