/* style/resources.css */
/* Custom properties for colors (from design style info) */
:root {
  --primary-color: #007bff; /* Deep Blue */
  --secondary-color: #28a745; /* Bright Green */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --card-background-dark-theme: rgba(255, 255, 255, 0.1); /* Light transparent background for cards on dark body */
  --border-color-dark-theme: rgba(255, 255, 255, 0.2);
}

/* Base styles for the page-resources scope */
.page-resources {
  background-color: var(--background-dark); /* Ensure background matches body */
  color: var(--text-light); /* Light text for dark background */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  min-height: 100vh; /* Ensure full height */
  font-family: 'Arial', sans-serif; /* Example font */
}

/* Hero-like section for resources page */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Using brand colors */
  color: var(--text-light);
}

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

.page-resources__hero-image {
  margin-bottom: 30px;
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  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: #218838; /* Darken secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General content section styling */
.page-resources__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-resources__section h2 {
  font-size: 2.5em;
  color: var(--text-light);
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-resources__section h3 {
  font-size: 1.8em;
  color: var(--text-light);
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__section h4 {
  font-size: 1.4em;
  color: var(--text-light);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__section p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-resources__section ul,
.page-resources__section ol {
  list-style-position: inside;
  margin-left: 25px;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-resources__section li {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-resources__section li p {
    margin-bottom: 5px;
    margin-left: 10px; /* Indent paragraph under list item */
}

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

.page-resources__section a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-resources__note-text {
    font-style: italic;
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}

/* Card styling for criteria/tips */
.page-resources__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__card {
  background-color: var(--card-background-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

.page-resources__card h3 {
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-resources__card p {
  color: var(--text-light);
  font-size: 1em;
}

.page-resources__card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-resources__faq-section h2 {
  font-size: 2.5em;
  color: var(--text-light);
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark-theme);
}

.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 20px;
  opacity: 0;
  background: var(--card-background-dark-theme);
  color: var(--text-light);
}

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

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

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

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

.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;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-content h1 {
    font-size: 2.8em;
  }
  .page-resources__hero-content p {
    font-size: 1.1em;
  }
  .page-resources__section h2 {
    font-size: 2em;
  }
  .page-resources__section h3 {
    font-size: 1.6em;
  }
  .page-resources__section p, .page-resources__section li {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important;
  }
  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__hero-content h1 {
    font-size: 2.2em;
  }
  .page-resources__hero-content p {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__section h2 {
    font-size: 1.8em;
  }
  .page-resources__section h3 {
    font-size: 1.4em;
  }
  .page-resources__section h4 {
    font-size: 1.2em;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card h3 {
    font-size: 1.3em;
  }
  .page-resources__card-grid {
    gap: 20px;
  }
  .page-resources__faq-section {
    padding: 40px 15px;
  }
  .page-resources__faq-section h2 {
    font-size: 2em;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}