/* style/resources.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles for the page */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  background-color: transparent; /* inherited from body, or could be #0a0a0a if not inherited */
}

/* Header offset for main content */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px);
  background-color: #0a0a0a; /* Ensure hero has a dark background */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-title {
  font-size: 3em;
  color: #26A9E0; /* Brand color for title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background-color: #d16e00;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* General section styling */
.page-resources__section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
  text-align: center;
}

.page-resources__section--light {
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__section-subtitle {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-resources__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.page-resources__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-resources__list-item {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #26A9E0;
  color: #ffffff;
}

.page-resources__list-item strong {
  color: #26A9E0;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
}

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

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 10px;
  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: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  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.1);
}

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

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important;
  padding: 15px 30px 30px;
}

/* General image styling */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__hero-content {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-resources__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-resources__video-wrapper {
    margin-top: 30px;
    border-radius: 8px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-resources__section,
  .page-resources__faq-section {
    padding: 40px 15px;
  }
}