/* style/resources.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-light: #f1f3f5;
  --card-bg: #ffffff;
  --border-light: #e0e0e0;
}

.page-resources {
  background-color: var(--bg-dark); /* Body background is dark */
  color: var(--text-light); /* Default text color for dark body background */
  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;
}

/* --- Fixed Navbar Padding --- */
.page-resources__intro-section {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

@media (max-width: 768px) {
  .page-resources__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
  }
}

/* --- General Section Styling --- */
.page-resources__intro-section,
.page-resources__guide-section,
.page-resources__related-resources {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-resources__main-title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.page-resources__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-resources__section-title--light {
  color: var(--text-light);
}

.page-resources__section-description {
  font-size: 17px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.8);
}

.page-resources__center-content {
  text-align: center;
}

/* --- CTA Button --- */
.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--secondary-color), #f7d14d);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-resources__cta-button:hover {
  background: linear-gradient(135deg, #f7d14d, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
}

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

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

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

.page-resources__card-image {
  width: 100%;
  max-width: 300px; /* Example size, ensuring minimum 200px */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__card-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

/* --- Guide Section --- */
.page-resources__guide-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  color: var(--text-light);
}

.page-resources__guide-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--secondary-color);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__guide-list li strong {
  color: var(--secondary-color);
  font-size: 18px;
}

.page-resources__guide-list li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__guide-list li a:hover {
  text-decoration: underline;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

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

.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: 17px;
  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(--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: 28px;
  height: 28px;
}

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

/* --- Related Resources Section --- */
.page-resources__related-resources {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-resources__resource-card {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__resource-card .page-resources__card-image {
  width: 100%;
  max-width: 400px; /* Ensuring minimum 200px */
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-resources__resource-card .page-resources__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-align: left;
}

.page-resources__resource-card .page-resources__card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  flex-grow: 1;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-resources__main-title {
    font-size: 36px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__criteria-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources__resource-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-resources__criteria-card,
  .page-resources__resource-card {
    padding: 25px;
  }
  .page-resources__card-image {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__intro-section,
  .page-resources__criteria-section,
  .page-resources__guide-section,
  .page-resources__faq-section,
  .page-resources__related-resources {
    padding: 40px 0;
  }
  .page-resources__main-title {
    font-size: 28px;
  }
  .page-resources__section-title {
    font-size: 24px;
  }
  .page-resources__intro-text,
  .page-resources__section-description {
    font-size: 15px;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-resources__cta-button--large {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-resources__criteria-grid,
  .page-resources__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__criteria-card,
  .page-resources__resource-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__card-text {
    font-size: 14px;
  }
  .page-resources__guide-list li {
    font-size: 15px;
    padding: 15px 20px;
  }
  .page-resources__guide-list li strong {
    font-size: 16px;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
    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;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 24px;
  }
  .page-resources__section-title {
    font-size: 20px;
  }
  .page-resources__intro-text,
  .page-resources__section-description {
    font-size: 14px;
  }
  .page-resources__cta-button {
    font-size: 14px;
    padding: 10px 20px;
  }
  .page-resources__cta-button--large {
    font-size: 16px;
    padding: 12px 30px;
  }
}