/* style/resources-understanding-789club-mathsica.css */

.page-resources-understanding-789club-mathsica {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* Inherited from shared.css, assumed dark */
}

.page-resources-understanding-789club-mathsica__hero-section {
  position: relative;
  padding: 0; /* Assumes shared.css handles body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero section */
  background: linear-gradient(135deg, #26A9E0, #1a7fb3);
  overflow: hidden;
}

.page-resources-understanding-789club-mathsica__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources-understanding-789club-mathsica__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

.page-resources-understanding-789club-mathsica__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 60px 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources-understanding-789club-mathsica__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-resources-understanding-789club-mathsica__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources-understanding-789club-mathsica__hero-buttons,
.page-resources-understanding-789club-mathsica__cta-buttons,
.page-resources-understanding-789club-mathsica__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-understanding-789club-mathsica__btn-primary,
.page-resources-understanding-789club-mathsica__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 300px; /* Limit button width */
}

.page-resources-understanding-789club-mathsica__btn-primary {
  background-color: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-resources-understanding-789club-mathsica__btn-primary:hover {
  background-color: #d46c00;
  border-color: #d46c00;
  transform: translateY(-2px);
}

.page-resources-understanding-789club-mathsica__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-understanding-789club-mathsica__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-resources-understanding-789club-mathsica__content-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background for content */
  color: #333333; /* Dark text for light background */
}

.page-resources-understanding-789club-mathsica__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-understanding-789club-mathsica__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-understanding-789club-mathsica__subsection-title {
  font-size: 2em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-resources-understanding-789club-mathsica__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-resources-understanding-789club-mathsica__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-understanding-789club-mathsica__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-understanding-789club-mathsica__feature-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-resources-understanding-789club-mathsica__feature-card:hover {
  transform: translateY(-5px);
}

.page-resources-understanding-789club-mathsica__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-resources-understanding-789club-mathsica__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-understanding-789club-mathsica__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-resources-understanding-789club-mathsica__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-understanding-789club-mathsica__game-card {
  display: block;
  text-decoration: none;
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-resources-understanding-789club-mathsica__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-understanding-789club-mathsica__game-image {
  width: 100%;
  height: 200px; /* Fixed height for game images */
  object-fit: cover;
}

.page-resources-understanding-789club-mathsica__game-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin: 15px 15px 10px;
  font-weight: bold;
}

.page-resources-understanding-789club-mathsica__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
}

.page-resources-understanding-789club-mathsica__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-understanding-789club-mathsica__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-resources-understanding-789club-mathsica__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

.page-resources-understanding-789club-mathsica__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-understanding-789club-mathsica__faq-heading {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
  flex-grow: 1;
}

.page-resources-understanding-789club-mathsica__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-resources-understanding-789club-mathsica__faq-item.active .page-resources-understanding-789club-mathsica__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-understanding-789club-mathsica__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  color: #555555;
}

.page-resources-understanding-789club-mathsica__faq-item.active .page-resources-understanding-789club-mathsica__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

/* General image styling to prevent small icons and ensure responsiveness */
.page-resources-understanding-789club-mathsica img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

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

  .page-resources-understanding-789club-mathsica__hero-description {
    font-size: 1.1em;
  }

  .page-resources-understanding-789club-mathsica__section-title {
    font-size: 2.2em;
  }

  .page-resources-understanding-789club-mathsica__subsection-title {
    font-size: 1.8em;
  }

  .page-resources-understanding-789club-mathsica__features-grid,
  .page-resources-understanding-789club-mathsica__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-resources-understanding-789club-mathsica__hero-section {
    min-height: 450px;
    padding: 0; /* Ensures no double padding if shared.css sets body padding */
  }

  .page-resources-understanding-789club-mathsica__hero-content {
    padding: 40px 15px;
  }

  .page-resources-understanding-789club-mathsica__hero-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

  .page-resources-understanding-789club-mathsica__hero-description {
    font-size: 1em !important;
    margin-bottom: 25px;
  }

  /* 按钮与按钮容器 */
  .page-resources-understanding-789club-mathsica__hero-buttons,
  .page-resources-understanding-789club-mathsica__cta-buttons,
  .page-resources-understanding-789club-mathsica__final-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-understanding-789club-mathsica__btn-primary,
  .page-resources-understanding-789club-mathsica__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 其他内容模块 */
  .page-resources-understanding-789club-mathsica__content-section {
    padding: 40px 0;
  }

  .page-resources-understanding-789club-mathsica__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-understanding-789club-mathsica__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }

  .page-resources-understanding-789club-mathsica__subsection-title {
    font-size: 1.5em !important;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-resources-understanding-789club-mathsica__text-block {
    font-size: 1em !important;
  }

  /* 产品展示图区域 (gameshow) */
  .page-resources-understanding-789club-mathsica__games-grid {
    grid-template-columns: 1fr !important; /* Single column layout for games */
    gap: 20px !important;
    margin-top: 30px;
    margin-bottom: 40px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-resources-understanding-789club-mathsica__game-card {
    margin: 0 auto;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-resources-understanding-789club-mathsica__game-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-resources-understanding-789club-mathsica__features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px;
    margin-bottom: 40px;
  }

  .page-resources-understanding-789club-mathsica__feature-card {
    padding: 25px !important;
  }

  .page-resources-understanding-789club-mathsica__faq-question {
    padding: 15px !important;
  }

  .page-resources-understanding-789club-mathsica__faq-heading {
    font-size: 1.1em !important;
  }

  .page-resources-understanding-789club-mathsica__faq-answer {
    padding: 10px 15px !important;
  }

  /* 通用图片与容器 */
  .page-resources-understanding-789club-mathsica img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-resources-understanding-789club-mathsica__image-full-width {
    margin: 20px 0 !important;
  }

  .page-resources-understanding-789club-mathsica__hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}