/* style/resources.css */
:root {
  --primary-color: #001F3F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light-card: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherits from body if not overridden by section */
  padding-top: 120px; /* Adjust for fixed header */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%); /* Darker gradient for hero */
  color: var(--text-light);
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-resources__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* Highlight with gold */
}

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

.page-resources__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

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

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

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

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

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

.page-resources__intro-section .page-resources__section-title {
  color: var(--primary-color);
}

.page-resources__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__text-block strong {
  color: var(--secondary-color);
}

.page-resources__intro-section .page-resources__text-block strong {
  color: var(--primary-color);
}

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

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

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

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-section .page-resources__section-title {
  color: var(--secondary-color);
}

.page-resources__dark-section .page-resources__text-block strong,
.page-resources__dark-section .highlight {
  color: var(--secondary-color);
}

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

.page-resources__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-resources__content-grid.grid-reverse {
  flex-direction: row-reverse;
}

.page-resources__image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources__text-content {
  flex: 1;
  max-width: 50%;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-resources__list-item {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  font-size: 1.1em;
}

.page-resources__why-reputable .page-resources__list-item {
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources__list-item::before {
  content: '✔';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-resources__why-reputable .page-resources__list-item::before {
  color: var(--primary-color);
}

.page-resources__list-item strong {
  color: var(--secondary-color);
}

.page-resources__why-reputable .page-resources__list-item strong {
  color: var(--primary-color);
}

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

.page-resources__inline-link:hover {
  color: #e6b800;
  text-decoration: underline;
}

.page-resources__why-reputable .page-resources__inline-link {
  color: var(--primary-color);
}

.page-resources__why-reputable .page-resources__inline-link:hover {
  color: #003366;
}

.page-resources__strategy-list .page-resources__list-item {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.page-resources__strategy-list .page-resources__list-item::before {
  content: '💡'; /* Lightbulb icon */
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-resources__strategy-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources__strategy-list .page-resources__list-item p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 0;
}

/* FAQ Section */
.page-resources__faq-section {
  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: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  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-answer p {
  margin: 0;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #002A52; /* Slightly lighter primary for question */
  border: 1px solid #003366; /* Darker border */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #003366;
  border-color: #004080;
}

.page-resources__faq-question:active {
  background: #003d7a;
}

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

.page-resources__faq-toggle {
  font-size: 2em;
  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-item.active .page-resources__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-resources__conclusion-section {
  background-color: var(--bg-light-card);
  color: var(--text-dark);
  text-align: center;
}

.page-resources__conclusion-section .page-resources__section-title {
  color: var(--primary-color);
}

.page-resources__conclusion-section .page-resources__text-block strong {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-subtitle {
    font-size: 1.3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__text-block {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-resources__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-button {
    font-size: 1em;
    padding: 12px 30px;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }
  .page-resources__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources__image-wrapper,
  .page-resources__text-content {
    max-width: 100%;
    min-width: unset;
  }
  .page-resources__list-item {
    font-size: 0.95em;
    padding: 12px 15px;
  }
  .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: 28px;
    height: 28px;
    font-size: 1.8em;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image specific styles */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__image-wrapper {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
}