/* style/index-about-ph88.css */

/* Base styles for the page content, ensuring contrast with shared body background */
.page-index-about-ph88 {
  color: #333333; /* Default text color for light backgrounds */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Container for content sections */
.page-index-about-ph88__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-index-about-ph88__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-index-about-ph88__section-description {
  font-size: clamp(1em, 2vw, 1.2em);
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Buttons */
.page-index-about-ph88__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index-about-ph88__btn-primary,
.page-index-about-ph88__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

.page-index-about-ph88__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-index-about-ph88__btn-primary:hover {
  background-color: #1a78a2;
  border-color: #1a78a2;
}

.page-index-about-ph88__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-about-ph88__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a78a2;
  border-color: #1a78a2;
}

.page-index-about-ph88__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-index-about-ph88__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-index-about-ph88__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-about-ph88__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index-about-ph88__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin-top: 30px; /* Space between image and text */
}

.page-index-about-ph88__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: #26A9E0; /* Brand color for main title */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-index-about-ph88__tagline {
  font-size: clamp(1.1em, 2.5vw, 1.4em);
  color: #333333;
  margin-bottom: 30px;
}

/* Intro Section */
.page-index-about-ph88__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-index-about-ph88__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-index-about-ph88__text-block {
  flex: 1;
  min-width: 300px;
}

.page-index-about-ph88__image-block {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index-about-ph88__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Features Section */
.page-index-about-ph88__features-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF;
}

.page-index-about-ph88__features-section .page-index-about-ph88__section-title {
  color: #FFFFFF;
}

.page-index-about-ph88__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-about-ph88__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-about-ph88__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index-about-ph88__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-index-about-ph88__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Games Section */
.page-index-about-ph88__games-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-index-about-ph88__game-card {
  display: block;
  text-decoration: none;
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-index-about-ph88__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index-about-ph88__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index-about-ph88__game-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 15px 15px 10px;
  color: #26A9E0;
}

.page-index-about-ph88__game-description {
  font-size: 0.95em;
  padding: 0 15px 20px;
  color: #555555;
}

/* Commitment Section */
.page-index-about-ph88__commitment-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF;
}

.page-index-about-ph88__commitment-section .page-index-about-ph88__section-title {
  color: #FFFFFF;
}

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

.page-index-about-ph88__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-about-ph88__commitment-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-index-about-ph88__commitment-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-index-about-ph88__link {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: bold;
}

.page-index-about-ph88__link:hover {
  color: #f0f0f0;
}

/* FAQ Section */
.page-index-about-ph88__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-index-about-ph88__faq-list {
  margin-top: 40px;
}

.page-index-about-ph88__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-about-ph88__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7ff;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-index-about-ph88__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-about-ph88__faq-question:hover {
  background-color: #dbeeff;
}

.page-index-about-ph88__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-index-about-ph88__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

/* Register CTA Section */
.page-index-about-ph88__register-cta {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF;
  text-align: center;
}

.page-index-about-ph88__register-cta .page-index-about-ph88__section-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-index-about-ph88__register-cta .page-index-about-ph88__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-index-about-ph88__hero-content {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-index-about-ph88__container {
    padding: 0 15px;
  }

  .page-index-about-ph88__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-index-about-ph88__tagline {
    font-size: 1.05em;
  }

  .page-index-about-ph88__main-title {
    font-size: 2em;
  }

  .page-index-about-ph88__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-about-ph88__btn-primary,
  .page-index-about-ph88__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-about-ph88__intro-section,
  .page-index-about-ph88__features-section,
  .page-index-about-ph88__games-section,
  .page-index-about-ph88__commitment-section,
  .page-index-about-ph88__faq-section,
  .page-index-about-ph88__register-cta {
    padding: 40px 0;
  }

  .page-index-about-ph88__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-index-about-ph88__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-bottom: 40px;
  }

  /* Mobile image responsiveness */
  .page-index-about-ph88 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile image/video/button containers responsiveness */
  .page-index-about-ph88__section,
  .page-index-about-ph88__card,
  .page-index-about-ph88__container,
  .page-index-about-ph88__hero-image-wrapper,
  .page-index-about-ph88__content-wrapper,
  .page-index-about-ph88__image-block,
  .page-index-about-ph88__features-grid,
  .page-index-about-ph88__games-grid,
  .page-index-about-ph88__commitment-grid,
  .page-index-about-ph88__faq-list,
  .page-index-about-ph88__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-index-about-ph88__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index-about-ph88__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}