/* style/resources.css */
.page-resources {
  color: #ffffff; /* 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;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  background-color: #0A2E36; /* Main brand color for hero */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-resources__hero-section .page-resources__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-resources__hero-content {
  flex: 1;
  max-width: 60%;
  text-align: left;
}

.page-resources__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Accent color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-resources__hero-image-wrapper {
  flex: 1;
  max-width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__hero-image {
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources__section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__methods-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Accent color for section titles */
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__method-card {
  background-color: #2a2a2a; /* Darker background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 350px; /* Ensure cards have similar height */
}

.page-resources__method-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources__method-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__method-text {
  color: #cccccc;
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__faq-section {
  background-color: #0A2E36; /* Main brand color */
  color: #ffffff;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #FFD700;
}

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  font-size: 1em;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 20px;
}

.page-resources__efficiency-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-resources__efficiency-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px; /* Consistent card height */
}

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

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

.page-resources__card-text {
  color: #cccccc;
  font-size: 1em;
  flex-grow: 1;
}

.page-resources__benefits-section {
  background-color: #0A2E36;
  color: #ffffff;
}

.page-resources__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-resources__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-resources__benefit-item strong {
  color: #FFD700;
}

.page-resources__benefit-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources__cta-section {
  background-color: #1a1a1a; /* Dark background for CTA */
  color: #ffffff;
  padding: 60px 0;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Accent color for primary button */
  color: #0A2E36;
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2E36;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-section .page-resources__container {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__hero-content,
  .page-resources__hero-image-wrapper {
    max-width: 100%;
  }

  .page-resources__main-title {
    font-size: 2.8em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources__main-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description,
  .page-resources__section-description,
  .page-resources__method-text,
  .page-resources__card-text,
  .page-resources__benefit-item p,
  .page-resources__faq-answer p {
    font-size: 0.95em;
  }

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

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

  .page-resources__faq-answer {
    padding: 0 20px;
  }

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

  .page-resources__method-card,
  .page-resources__efficiency-card {
    min-height: unset; /* Allow height to adjust */
  }

  /* Mobile responsive for all images */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for all containers */
  .page-resources__section,
  .page-resources__container,
  .page-resources__method-card,
  .page-resources__efficiency-card,
  .page-resources__faq-item,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific for CTA buttons to stack */
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important; /* Full width buttons */
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__hero-section,
  .page-resources__section {
    padding: 40px 0;
  }

  .page-resources__faq-question {
    font-size: 1em;
  }
}