/* style/resources-online-entertainment-platform-selection.css */
.page-resources-online-entertainment-platform-selection {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #1a1a2e;
}

.page-resources-online-entertainment-platform-selection__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-online-entertainment-platform-selection__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #017439;
  background-image: url('[GALLERY:hero:1920x1080:online_entertainment,student_safety,platform_selection]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-resources-online-entertainment-platform-selection__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-online-entertainment-platform-selection__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-resources-online-entertainment-platform-selection__btn-primary,
.page-resources-online-entertainment-platform-selection__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  cursor: pointer;
}

.page-resources-online-entertainment-platform-selection__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources-online-entertainment-platform-selection__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-resources-online-entertainment-platform-selection__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-resources-online-entertainment-platform-selection__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

.page-resources-online-entertainment-platform-selection__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-resources-online-entertainment-platform-selection__btn-register:hover {
  background-color: #9c0606;
  border-color: #9c0606;
}

.page-resources-online-entertainment-platform-selection__introduction-section,
.page-resources-online-entertainment-platform-selection__factors-section,
.page-resources-online-entertainment-platform-selection__advice-section,
.page-resources-online-entertainment-platform-selection__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-resources-online-entertainment-platform-selection__why-care-section,
.page-resources-online-entertainment-platform-selection__traps-section,
.page-resources-online-entertainment-platform-selection__cta-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-resources-online-entertainment-platform-selection__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: #FFFF00;
}

.page-resources-online-entertainment-platform-selection__introduction-section p,
.page-resources-online-entertainment-platform-selection__why-care-section p,
.page-resources-online-entertainment-platform-selection__traps-section p,
.page-resources-online-entertainment-platform-selection__advice-section p,
.page-resources-online-entertainment-platform-selection__cta-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-online-entertainment-platform-selection__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-online-entertainment-platform-selection__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources-online-entertainment-platform-selection__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #FFFF00;
  border-radius: 5px;
  font-size: 1.05em;
}

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

.page-resources-online-entertainment-platform-selection__card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-online-entertainment-platform-selection__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-resources-online-entertainment-platform-selection__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-resources-online-entertainment-platform-selection__card p {
  font-size: 0.95em;
  text-align: justify;
}

.page-resources-online-entertainment-platform-selection__cta-buttons {
  text-align: center;
  margin-top: 40px;
}

.page-resources-online-entertainment-platform-selection__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 8px;
}

.page-resources-online-entertainment-platform-selection__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources-online-entertainment-platform-selection__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-resources-online-entertainment-platform-selection__video-caption {
  text-align: center;
  font-style: italic;
  margin-top: 10px;
  font-size: 0.9em;
}

.page-resources-online-entertainment-platform-selection__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources-online-entertainment-platform-selection__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #FFFF00;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-online-entertainment-platform-selection__faq-question:hover {
  background-color: #005f2c;
}

.page-resources-online-entertainment-platform-selection__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-resources-online-entertainment-platform-selection__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-online-entertainment-platform-selection__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources-online-entertainment-platform-selection__faq-answer p {
  margin: 15px 0;
  text-align: justify;
}

.page-resources-online-entertainment-platform-selection__faq-item.active .page-resources-online-entertainment-platform-selection__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-resources-online-entertainment-platform-selection__faq-item.active .page-resources-online-entertainment-platform-selection__faq-toggle {
  transform: rotate(45deg);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-online-entertainment-platform-selection__hero-title {
    font-size: 2.5em;
  }

  .page-resources-online-entertainment-platform-selection__hero-description {
    font-size: 1em;
  }

  .page-resources-online-entertainment-platform-selection__section-title {
    font-size: 2em;
  }

  .page-resources-online-entertainment-platform-selection__card-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-online-entertainment-platform-selection__btn-primary,
  .page-resources-online-entertainment-platform-selection__btn-secondary {
    display: block;
    width: calc(100% - 30px); /* Adjust for padding */
    margin: 10px 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-online-entertainment-platform-selection__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-resources-online-entertainment-platform-selection__image,
  .page-resources-online-entertainment-platform-selection__video-wrapper,
  .page-resources-online-entertainment-platform-selection__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-online-entertainment-platform-selection__introduction-section,
  .page-resources-online-entertainment-platform-selection__why-care-section,
  .page-resources-online-entertainment-platform-selection__factors-section,
  .page-resources-online-entertainment-platform-selection__traps-section,
  .page-resources-online-entertainment-platform-selection__advice-section,
  .page-resources-online-entertainment-platform-selection__faq-section,
  .page-resources-online-entertainment-platform-selection__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-resources-online-entertainment-platform-selection__container {
    padding: 0;
  }

  .page-resources-online-entertainment-platform-selection__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-online-entertainment-platform-selection__video-wrapper {
    padding-bottom: 75%; /* Adjust for common mobile aspect ratios like 4:3 or keep 16:9 */
  }
}