/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the page, assuming dark background */
  background-color: var(--dark-bg); /* Inherit from shared.css, typically dark */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #0A1931; /* Main brand color for hero */
  color: #ffffff;
  overflow: hidden; /* Prevent content overflow */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E0B400; /* Accent color for title */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

/* General Section Styling */
.page-resources__section {
  padding: 80px 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 60px;
  color: #E0B400; /* Accent color for section titles */
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__introduction-section {
  background-color: var(--dark-bg); /* Assuming dark background from shared */
  color: #f0f0f0;
}

.page-resources__introduction-section .page-resources__section-title,
.page-resources__introduction-section .page-resources__sub-title {
  color: #E0B400;
}

.page-resources__introduction-section .page-resources__paragraph {
  color: #f0f0f0;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-resources__image--center {
  margin-left: auto;
  margin-right: auto;
}

/* Resource Types Section */
.page-resources__resource-types {
  background-color: #0A1931; /* Main brand color */
  color: #ffffff;
}

.page-resources__resource-types .page-resources__section-title {
  color: #E0B400;
}

.page-resources__resource-types .page-resources__paragraph {
  color: #f0f0f0;
}

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #E0B400;
}

.page-resources__card-title a {
  color: #E0B400;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-description {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1; /* Make description take available space */
  margin-bottom: 20px;
}

.page-resources__card-link {
  display: inline-block;
  background-color: #E0B400;
  color: #0A1931;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
  background-color: #ffc107; /* Lighter gold on hover */
}

/* Guide Section */
.page-resources__guide-section {
  background-color: var(--dark-bg);
  color: #f0f0f0;
}

.page-resources__guide-section .page-resources__section-title {
  color: #E0B400;
}

.page-resources__guide-section .page-resources__sub-title {
  color: #ffffff;
}

.page-resources__guide-section .page-resources__paragraph {
  color: #f0f0f0;
}

/* Benefits Section */
.page-resources__benefits-section {
  background-color: #0A1931;
  color: #ffffff;
}

.page-resources__benefits-section .page-resources__section-title {
  color: #E0B400;
}

.page-resources__benefits-section .page-resources__paragraph {
  color: #f0f0f0;
}

.page-resources__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__benefit-title {
  font-size: 1.6em;
  color: #E0B400;
  margin-bottom: 15px;
}

.page-resources__benefit-description {
  font-size: 1em;
  color: #cccccc;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: var(--dark-bg);
  color: #f0f0f0;
}

.page-resources__faq-section .page-resources__section-title {
  color: #E0B400;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #0A1931; /* Darker background for question */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #1a2c4d; /* Slightly lighter dark blue on hover */
}

.page-resources__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #E0B400;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-resources__faq-answer .page-resources__paragraph {
  color: #cccccc;
  margin-bottom: 0; /* No bottom margin for last paragraph in answer */
}

.page-resources__faq-answer a {
  color: #E0B400;
  text-decoration: none;
}

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

/* Call to Action Final Section */
.page-resources__cta-final {
  background-color: #0A1931;
  text-align: center;
  padding: 100px 0;
}

.page-resources__cta-final .page-resources__section-title {
  color: #E0B400;
}

.page-resources__cta-final .page-resources__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__text-link {
  color: #E0B400;
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Buttons */
.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #E0B400;
  color: #0A1931;
  border: 2px solid #E0B400;
}

.page-resources__btn-primary:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #E0B400;
  border: 2px solid #E0B400;
}

.page-resources__btn-secondary:hover {
  background-color: #E0B400;
  color: #0A1931;
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 450px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-resources__hero-content {
    padding: 20px;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .page-resources__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
  }

  .page-resources__paragraph {
    font-size: 1em;
  }

  .page-resources__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }

  .page-resources__cta-final {
    padding: 80px 0;
  }

  .page-resources__button-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image responsive adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container adaptation for images/videos/buttons */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__cta-final,
  .page-resources__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding padding to containers to prevent content touching edges */
    padding-left: 15px !important; 
    padding-right: 15px !important;
    overflow: hidden !important; /* Crucial for preventing horizontal scroll */
  }

  /* Specific for button group */
  .page-resources__button-group {
    flex-wrap: wrap !important; /* Allow buttons to wrap */
  }

  .page-resources__cta-button,
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Ensure button text has padding */
    padding-right: 15px !important;
  }
}