/* style/resources.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --button-login: #EA7C07;
  --color-black: #000000;
}

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
}

.page-resources a {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: var(--color-black);
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: left;
}

/* Hero Section */
.page-resources__hero-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  text-align: left;
}

.page-resources__hero-section .page-resources__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-resources__hero-content {
  flex: 1;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-resources__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: var(--button-login);
  color: var(--text-light);
  border: 2px solid var(--button-login);
}

.page-resources__btn-primary:hover {
  background-color: darken(var(--button-login), 10%);
  border-color: darken(var(--button-login), 10%);
  text-decoration: none;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-resources__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
}

/* Content Sections Layout */
.page-resources__introduction-section .page-resources__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__odds-analysis-section,
.page-resources__betting-guide-section,
.page-resources__news-updates-section {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 80px 0;
}

.page-resources__odds-analysis-section .page-resources__container,
.page-resources__betting-guide-section .page-resources__container,
.page-resources__news-updates-section .page-resources__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-resources__odds-analysis-section .page-resources__image-left,
.page-resources__news-updates-section .page-resources__image-left {
  flex: 1;
  order: 1;
}

.page-resources__odds-analysis-section .page-resources__text-right,
.page-resources__news-updates-section .page-resources__text-right {
  flex: 2;
  order: 2;
}

.page-resources__betting-guide-section .page-resources__image-right {
  flex: 1;
  order: 2;
}

.page-resources__betting-guide-section .page-resources__text-left {
  flex: 2;
  order: 1;
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__sub-title {
  color: var(--text-light);
}

.page-resources__dark-bg .page-resources__text-block a {
  color: var(--secondary-color);
}

.page-resources__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__sub-title {
  color: var(--primary-color);
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

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

.page-resources__faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-black);
}

.page-resources__faq-question:hover {
  color: var(--primary-color);
}

.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 15px;
  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 value */
  padding: 15px;
}

.page-resources__faq-answer p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* CTA Section */
.page-resources__cta-section {
  padding: 80px 0;
}

.page-resources__cta-section .page-resources__section-title {
  color: var(--text-light);
}

.page-resources__cta-section .page-resources__text-block {
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-section .page-resources__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-resources__cta-section .page-resources__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-resources__cta-section .page-resources__btn-secondary:hover {
  color: var(--primary-color);
  background-color: var(--text-light);
}

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

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

  .page-resources__hero-description {
    font-size: 1.1em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__sub-title {
    font-size: 1.5em;
  }

  .page-resources__odds-analysis-section .page-resources__container,
  .page-resources__betting-guide-section .page-resources__container,
  .page-resources__news-updates-section .page-resources__container {
    flex-direction: column;
  }

  .page-resources__odds-analysis-section .page-resources__image-left,
  .page-resources__odds-analysis-section .page-resources__text-right,
  .page-resources__betting-guide-section .page-resources__image-right,
  .page-resources__betting-guide-section .page-resources__text-left,
  .page-resources__news-updates-section .page-resources__image-left,
  .page-resources__news-updates-section .page-resources__text-right {
    order: unset;
    flex: none;
    width: 100%;
  }
}

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

  /* HERO 主图区域 */
  .page-resources__hero-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-resources__hero-section .page-resources__container {
    flex-direction: column-reverse !important;
    gap: 30px !important;
  }
  .page-resources__hero-content {
    text-align: center !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em !important;
    margin-bottom: 15px !important;
  }
  .page-resources__hero-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }
  .page-resources__hero-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
  }
  .page-resources__hero-image-wrapper {
    width: 100% !important;
  }

  /* 产品展示图区域 (N/A for this page, but general media query for images) */

  /* 通用图片与容器 */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-resources__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }
  .page-resources__sub-title {
    font-size: 1.3em !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
  }
  .page-resources__text-block {
    font-size: 0.95em !important;
  }

  /* 按钮与按钮容器 */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    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;
  }
  .page-resources__hero-buttons,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important; /* Force vertical stacking for buttons */
  }

  /* 其他内容模块 */
  .page-resources__section {
    padding: 40px 0 !important;
  }
  .page-resources__odds-analysis-section .page-resources__container,
  .page-resources__betting-guide-section .page-resources__container,
  .page-resources__news-updates-section .page-resources__container {
    flex-direction: column !important;
    gap: 30px !important;
  }
  .page-resources__faq-question {
    font-size: 1.1em !important;
  }
  .page-resources__faq-answer p {
    font-size: 0.9em !important;
  }
  .page-resources__cta-section .page-resources__text-block {
    font-size: 1em !important;
  }
}