/* style/resources.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --accent-color: #FFC107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0d0d0d; /* Assuming a dark body background from shared.css */
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text-light); /* Main text color for the page, assuming dark body bg */
  background-color: var(--bg-dark); /* Fallback, should be inherited from body */
}

/* Ensure content is not hidden by fixed header */
.page-resources__hero-banner {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

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

.page-resources__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.page-resources__hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
  opacity: 0.9;
}

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

.page-resources__hero-cta-button:hover {
  background: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__section {
  padding: 60px 20px;
  background-color: var(--bg-dark); /* Dark background for sections */
  color: var(--text-light); /* Light text for sections */
}

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

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

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__text-block a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__text-block a:hover {
  text-decoration: underline;
}

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

.page-resources__card,
.page-resources__benefit-item,
.page-resources__tip-item {
  background: #2a2a2a; /* Slightly lighter dark for cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card:hover,
.page-resources__benefit-item:hover,
.page-resources__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__card-image,
.page-resources__benefit-icon,
.page-resources__tip-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__card-image { max-width: 300px; height: 200px; }
.page-resources__benefit-icon { max-width: 150px; height: 150px; }
.page-resources__tip-image { max-width: 250px; height: 180px; }

.page-resources__card-title,
.page-resources__benefit-title,
.page-resources__tip-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.page-resources__card-description,
.page-resources__benefit-description,
.page-resources__tip-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
}

.page-resources__card-description a,
.page-resources__benefit-description a,
.page-resources__tip-description a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__card-description a:hover,
.page-resources__benefit-description a:hover,
.page-resources__tip-description a:hover {
  text-decoration: underline;
}

.page-resources__section--cta {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  padding: 80px 20px;
  text-align: center;
}

.page-resources__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-resources__cta-image {
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-resources__cta-content {
  max-width: 800px;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__cta-description a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__cta-description a:hover {
  text-decoration: underline;
}

.page-resources__btn-primary {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 18px 45px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-resources__btn-primary:hover {
  background: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  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: #3a3a3a;
}

.page-resources__faq-question:active {
  background: #4a4a4a;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: bold;
  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(--accent-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Visually change to 'X' or 'minus' */
}

.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: #1a1a1a; /* Darker background for answer */
  color: #cccccc;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-resources__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

.page-resources__faq-answer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title { font-size: 2.5em; }
  .page-resources__hero-subtitle { font-size: 1.1em; }
  .page-resources__section-title { font-size: 2em; }
  .page-resources__cta-title { font-size: 2.2em; }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__container,
  .page-resources__card,
  .page-resources__benefit-item,
  .page-resources__tip-item,
  .page-resources__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-title { font-size: 2em; }
  .page-resources__hero-subtitle { font-size: 1em; }
  .page-resources__hero-cta-button { padding: 12px 30px; font-size: 1em; }
  .page-resources__section-title { font-size: 1.8em; margin-bottom: 30px; }
  .page-resources__text-block { font-size: 0.95em; }
  .page-resources__card-grid, .page-resources__benefits-grid, .page-resources__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card-image { height: 180px; }
  .page-resources__card-title, .page-resources__benefit-title, .page-resources__tip-title { font-size: 1.3em; }
  .page-resources__cta-image { max-width: 100%; }
  .page-resources__cta-title { font-size: 1.8em; }
  .page-resources__cta-description { font-size: 1em; }
  .page-resources__btn-primary { padding: 15px 35px; font-size: 1em; }
  .page-resources__faq-question { padding: 15px 20px; }
  .page-resources__faq-question h3 { font-size: 1em; }
  .page-resources__faq-toggle { font-size: 24px; width: 28px; height: 28px; margin-left: 15px; }
  .page-resources__faq-answer { padding: 0 20px; }
  .page-resources__faq-item.active .page-resources__faq-answer { padding: 15px 20px !important; }
}

@media (max-width: 480px) {
  .page-resources__hero-title { font-size: 1.7em; }
  .page-resources__hero-subtitle { font-size: 0.9em; }
  .page-resources__section-title { font-size: 1.5em; }
  .page-resources__cta-title { font-size: 1.5em; }
  .page-resources__btn-primary { padding: 10px 25px; font-size: 0.9em; }
  .page-resources__faq-question h3 { font-size: 0.9em; }
  .page-resources__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px; }
}