/* style/resources.css */
.page-resources {
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: transparent; /* inherited from shared.css body */
  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;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

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

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

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

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

.page-resources__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: #FFFF00; /* Use custom color for button font */
  background-color: #C30808; /* Use custom color for button */
  border: 2px solid transparent;
}

.page-resources__hero-button:hover {
  background-color: #e00000;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
  padding-top: 40px;
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Categories Section */
.page-resources__categories-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

.page-resources__category-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
}

.page-resources__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
  padding: 0 15px;
}

.page-resources__card-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px;
}

/* Video Section */
.page-resources__video-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 20px auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-resources__video-link-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-resources__video-caption {
  color: #cccccc;
  font-style: italic;
  margin-top: 10px;
}

/* In-depth Guides Section */
.page-resources__guides-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-resources__guide-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-resources__guide-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 20px;
}

.page-resources__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-text {
  font-size: 1.05em;
  color: #f0f0f0;
  margin-bottom: 15px;
  text-align: justify;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #cccccc;
  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 accommodate content */
  padding: 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__dark-section .page-resources__section-intro {
  color: #f0f0f0;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: #FFFF00; /* Custom font color */
  border: 2px solid transparent;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Custom button color */
  border-color: #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #e00000;
  transform: translateY(-3px);
}

.page-resources__btn-secondary {
  background-color: transparent;
  border-color: #FFFF00; /* Custom font color for border */
  color: #FFFF00;
}

.page-resources__btn-secondary:hover {
  background-color: rgba(255, 255, 0, 0.1);
  transform: translateY(-3px);
}

.page-resources__cta-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
  }
  .page-resources__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    height: 160px;
  }
  .page-resources__guide-title {
    font-size: 1.6em;
  }
  .page-resources__guide-text {
    font-size: 0.9em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 15px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px; /* Limit width for stacked buttons */
    box-sizing: border-box;
    padding: 15px 20px;
    font-size: 1.1em;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Mobile responsive images, videos, and containers */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__categories-section,
  .page-resources__video-section,
  .page-resources__guides-section,
  .page-resources__faq-section,
  .page-resources__cta-section,
  .page-resources__video-wrapper,
  .page-resources__guide-item,
  .page-resources__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__faq-question {
    font-size: 1em;
  }
}