/* style/resources-cf68-platform-overview.css */
.page-resources-cf68-platform-overview {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: var(--background-color, #ffffff);
}

.page-resources-cf68-platform-overview__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-cf68-platform-overview__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  color: #ffffff;
  background-color: #26A9E0;
  position: relative;
  overflow: hidden;
}

.page-resources-cf68-platform-overview__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  text-align: left;
}

.page-resources-cf68-platform-overview__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 0;
  padding-left: 40px; /* Space between text and image */
}

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

.page-resources-cf68-platform-overview__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-resources-cf68-platform-overview__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-resources-cf68-platform-overview__cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-resources-cf68-platform-overview__btn-primary,
.page-resources-cf68-platform-overview__btn-secondary,
.page-resources-cf68-platform-overview__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-resources-cf68-platform-overview__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-resources-cf68-platform-overview__btn-primary:hover {
  background-color: #d46c00;
  transform: translateY(-2px);
}

.page-resources-cf68-platform-overview__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources-cf68-platform-overview__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-resources-cf68-platform-overview__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-resources-cf68-platform-overview__btn-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources-cf68-platform-overview__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

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

.page-resources-cf68-platform-overview__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-cf68-platform-overview__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Section */
.page-resources-cf68-platform-overview__about-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

/* Games Section */
.page-resources-cf68-platform-overview__games-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources-cf68-platform-overview__games-section .page-resources-cf68-platform-overview__section-title {
  color: #ffffff;
}

.page-resources-cf68-platform-overview__games-section .page-resources-cf68-platform-overview__section-title::after {
  background-color: #ffffff;
}

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

.page-resources-cf68-platform-overview__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px;
}

.page-resources-cf68-platform-overview__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-resources-cf68-platform-overview__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-resources-cf68-platform-overview__card-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Advantages Section */
.page-resources-cf68-platform-overview__advantages-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-resources-cf68-platform-overview__advantage-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-resources-cf68-platform-overview__advantage-item:hover {
  transform: translateY(-5px);
}

.page-resources-cf68-platform-overview__advantage-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources-cf68-platform-overview__advantage-description {
  font-size: 1em;
  line-height: 1.7;
}

/* How to Join Section */
.page-resources-cf68-platform-overview__how-to-join-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources-cf68-platform-overview__how-to-join-section .page-resources-cf68-platform-overview__section-title {
  color: #ffffff;
}

.page-resources-cf68-platform-overview__how-to-join-section .page-resources-cf68-platform-overview__section-title::after {
  background-color: #ffffff;
}

.page-resources-cf68-platform-overview__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-resources-cf68-platform-overview__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.page-resources-cf68-platform-overview__step-item p {
  color: #f0f0f0;
}

.page-resources-cf68-platform-overview__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-resources-cf68-platform-overview__btn-full-width {
  width: 100%;
  display: block;
  margin-top: 50px;
}

/* Promotions Section */
.page-resources-cf68-platform-overview__promotions-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-resources-cf68-platform-overview__promotions-grid .page-resources-cf68-platform-overview__card {
  min-height: auto; /* Override min-height for games card */
}

/* FAQ Section */
.page-resources-cf68-platform-overview__faq-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources-cf68-platform-overview__faq-section .page-resources-cf68-platform-overview__section-title {
  color: #ffffff;
}

.page-resources-cf68-platform-overview__faq-section .page-resources-cf68-platform-overview__section-title::after {
  background-color: #ffffff;
}

.page-resources-cf68-platform-overview__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-cf68-platform-overview__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-resources-cf68-platform-overview__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-cf68-platform-overview__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  list-style: none;
  user-select: none;
}

.page-resources-cf68-platform-overview__faq-question::-webkit-details-marker {
  display: none;
}

.page-resources-cf68-platform-overview__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-resources-cf68-platform-overview__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-resources-cf68-platform-overview__faq-item[open] .page-resources-cf68-platform-overview__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-cf68-platform-overview__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* CTA Section */
.page-resources-cf68-platform-overview__cta-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
  text-align: center;
}

.page-resources-cf68-platform-overview__cta-content {
  max-width: 800px;
}

.page-resources-cf68-platform-overview__cta-buttons {
  justify-content: center;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-resources-cf68-platform-overview__hero-title {
    font-size: 2.8em;
  }
  .page-resources-cf68-platform-overview__section-title {
    font-size: 2em;
  }
  .page-resources-cf68-platform-overview__hero-section .page-resources-cf68-platform-overview__container {
    flex-direction: column;
    text-align: center;
  }
  .page-resources-cf68-platform-overview__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }
  .page-resources-cf68-platform-overview__hero-image-wrapper {
    justify-content: center;
    padding-left: 0;
  }
  .page-resources-cf68-platform-overview__hero-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-resources-cf68-platform-overview {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-cf68-platform-overview__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Fixed header offset for mobile */
  .page-resources-cf68-platform-overview__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-cf68-platform-overview__hero-title {
    font-size: 2.2em;
  }
  .page-resources-cf68-platform-overview__hero-description {
    font-size: 1em;
  }
  .page-resources-cf68-platform-overview__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* Image responsiveness */
  .page-resources-cf68-platform-overview img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure image containers are also responsive */
  .page-resources-cf68-platform-overview__image-content,
  .page-resources-cf68-platform-overview__hero-image-wrapper,
  .page-resources-cf68-platform-overview__card-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .page-resources-cf68-platform-overview__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-cf68-platform-overview__btn-primary,
  .page-resources-cf68-platform-overview__btn-secondary,
  .page-resources-cf68-platform-overview__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-resources-cf68-platform-overview__card {
    padding: 20px !important;
    min-height: auto; /* Allow cards to adjust height */
  }

  .page-resources-cf68-platform-overview__advantage-item {
    padding: 25px !important;
  }
}