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

/* General Styling */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Matches shared.css body background */
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Brand color gradient */
  color: #ffffff;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-resources__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background: #f0f0f0;
  color: #1a7bb5;
  border-color: #1a7bb5;
  transform: translateY(-2px);
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content Sections */
.page-resources__content-area,
.page-resources__strategy-section,
.page-resources__security-section,
.page-resources__faq-section,
.page-resources__contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0;
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: #f0f0f0; /* For dark background sections */
}

/* Light Background Sections */
.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}
.page-resources__light-bg .page-resources__section-title {
  color: #26A9E0;
}
.page-resources__light-bg .page-resources__section-intro {
  color: #555555;
}
.page-resources__light-bg .page-resources__card-title a,
.page-resources__light-bg .page-resources__card-link {
  color: #26A9E0;
}
.page-resources__light-bg .page-resources__card-title a:hover,
.page-resources__light-bg .page-resources__card-link:hover {
  color: #1a7bb5;
}

/* Dark Background Sections */
.page-resources__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}
.page-resources__dark-bg .page-resources__section-title {
  color: #26A9E0;
}
.page-resources__dark-bg .page-resources__section-intro {
  color: #f0f0f0;
}
.page-resources__dark-bg .page-resources__strategy-title a {
  color: #ffffff;
}
.page-resources__dark-bg .page-resources__strategy-title a:hover {
  color: #26A9E0;
}

/* Card Grid */
.page-resources__card-grid,
.page-resources__strategy-grid,
.page-resources__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__card,
.page-resources__strategy-item,
.page-resources__security-item {
  background: #fdfdfd; /* Slightly off-white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333; /* Dark text for light card background */
}

.page-resources__card:hover,
.page-resources__strategy-item:hover,
.page-resources__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__card-image,
.page-resources__strategy-image,
.page-resources__security-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-title,
.page-resources__strategy-title,
.page-resources__security-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #26A9E0;
}
.page-resources__card-title a,
.page-resources__strategy-title a,
.page-resources__security-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
.page-resources__card-title a:hover,
.page-resources__strategy-title a:hover,
.page-resources__security-title a:hover {
  color: #1a7bb5;
}


.page-resources__card-text,
.page-resources__strategy-text,
.page-resources__security-text {
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Ensures text takes available space */
}

.page-resources__card-link {
  display: inline-block;
  margin: 0 20px 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #1a7bb5;
  text-decoration: underline;
}

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

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly visible on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background 0.3s ease;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
}

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

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

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px !important;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-resources__faq-cta {
  text-align: center;
  margin-top: 40px;
}

/* Contact Section */
.page-resources__contact-cta {
  text-align: center;
  margin-top: 40px;
}


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