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

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

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

.page-resources__section-title {
  font-size: 36px;
  color: #FFB81C; /* Auxiliary color for titles */
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-resources__section p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__section a {
  color: #FFB81C; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__section a:hover {
  color: #E44D26; /* Primary color on hover */
}

/* Hero Section */
.page-resources__hero-section {
  background: linear-gradient(135deg, #E44D26, #FFB81C); /* Brand colors for hero background */
  padding: 80px 0;
  padding-top: 0; /* Assuming shared.css sets body padding-top */
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  padding-top: 80px; /* Adjust if header offset is not on body */
}

.page-resources__main-title {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-resources__cta-buttons--center {
  margin-top: 40px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

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

.page-resources__btn-primary:hover {
  background-color: #FFB81C; /* Auxiliary color on hover */
  border-color: #FFB81C;
  color: #333333; /* Dark text for light background */
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #E44D26; /* Primary brand color on hover */
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-resources__introduction {
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-resources__introduction p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__image-gallery {
  margin-top: 40px;
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center the image */
}

/* Articles Section */
.page-resources__articles {
  background-color: #0d0d0d;
}

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

.page-resources__article-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

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

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

.page-resources__article-card h3 {
  font-size: 22px;
  color: #FFB81C;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

.page-resources__article-card h3 a {
  color: inherit;
}

.page-resources__article-card h3 a:hover {
  color: #E44D26;
}

.page-resources__article-excerpt {
  font-size: 16px;
  color: #cccccc;
  padding: 0 20px;
  flex-grow: 1;
}

.page-resources__read-more {
  display: inline-block;
  padding: 10px 20px;
  margin: 20px;
  background-color: #E44D26;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-resources__read-more:hover {
  background-color: #FFB81C;
  color: #333333;
}

/* Betting Tips Section */
.page-resources__betting-tips {
  background-color: #1a1a1a;
}

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

.page-resources__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-resources__feature-icon {
  width: 200px; /* Min size 200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__feature-title {
  font-size: 24px;
  color: #FFB81C;
  margin-bottom: 15px;
}

.page-resources__feature-item p {
  font-size: 16px;
  color: #cccccc;
}

/* Responsible Gambling Section */
.page-resources__responsible-gambling {
  background-color: #0d0d0d;
}

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

.page-resources__responsible-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 17px;
  color: #f0f0f0;
  position: relative;
  padding-left: 40px;
}

.page-resources__responsible-list li::before {
  content: '✓';
  color: #E44D26;
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 15px;
}

/* FAQ Section */
.page-resources__faq {
  background-color: #1a1a1a;
  padding-bottom: 80px;
}

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

/* FAQ容器样式 */
.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a; /* Darker background for FAQ items */
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Adjusted padding */
  opacity: 0;
  color: #cccccc;
  text-align: left;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background-color: #3a3a3a; /* Lighter background for active answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background-color: #3a3a3a;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question:active {
  background-color: #4a4a4a;
}

/* 问题标题样式 */
.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFB81C; /* Auxiliary color for question titles */
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-resources__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFB81C; /* Auxiliary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #E44D26; /* Primary color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* CTA Bottom Section */
.page-resources__cta-bottom {
  background: linear-gradient(135deg, #FFB81C, #E44D26); /* Reverse gradient for contrast */
  padding: 80px 0;
}

.page-resources__cta-bottom .page-resources__section-title {
  color: #ffffff;
}

.page-resources__cta-bottom p {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 40px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* Mobile general */
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__section {
    padding: 40px 0;
  }

  /* Hero Section */
  .page-resources__hero-content {
    padding-top: 40px;
  }
  .page-resources__main-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-left: 15px;
    margin-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .page-resources__cta-buttons--center {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
  }

  /* Buttons mobile specific */
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__article-card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__image-gallery,
  .page-resources__article-grid,
  .page-resources__features-grid,
  .page-resources__responsible-list,
  .page-resources__faq-list {
    padding-left: 0;
    padding-right: 0;
  }

  /* Article grid mobile */
  .page-resources__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__article-card {
    padding-bottom: 20px;
  }
  .page-resources__article-image {
    height: auto;
  }

  /* Feature grid mobile */
  .page-resources__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ mobile */
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure content area images are at least 200px where applicable */
.page-resources__content-image,
.page-resources__article-image,
.page-resources__feature-icon {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* Use contain to avoid cropping for feature icons, cover for main images */
}

.page-resources__article-image {
  object-fit: cover; /* Articles should cover */
}