/* style/resources.css */
/* 页面所有样式代码 */

/* Base styles for the resources page */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background */
}

/* Fixed header spacing */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Container for content */
.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__paragraph a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__highlight {
  font-weight: bold;
  color: #26A9E0;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.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); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

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

/* Buttons */
.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;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-resources__btn-primary:hover {
  background-color: #1a7fb8; /* Darker shade for hover */
  border-color: #1a7fb8;
}

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb8;
  border-color: #1a7fb8;
}

.page-resources__btn-center {
  display: block;
  margin: 40px auto 20px auto;
  text-align: center;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons on mobile */
  width: 100%; /* For mobile responsiveness */
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  overflow: hidden; /* For mobile responsiveness */
}

/* Dark Section Styling */
.page-resources__dark-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  padding: 60px 0;
}

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

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

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

.page-resources__dark-section .page-resources__paragraph a {
  color: #ffffff;
}

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

/* Overview Section */
.page-resources__overview-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Guides Section */
.page-resources__guides-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-resources__card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-resources__card:hover {
  transform: translateY(-5px);
}

.page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  display: block; /* Ensure responsiveness */
}

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

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

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

.page-resources__card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card .page-resources__btn-secondary {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-resources__cta-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.2em;
}

/* Strategies Section */
.page-resources__strategies-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-resources__strategy-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-resources__strategy-item .page-resources__list-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-resources__strategy-item .page-resources__list-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__strategy-item .page-resources__list-title a:hover {
  text-decoration: underline;
}

.page-resources__strategy-item p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-resources__strategy-item p a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__strategy-item p a:hover {
  text-decoration: underline;
}


/* Safety Section */
.page-resources__safety-section {
  padding: 60px 0;
  text-align: center;
}