.page-arcade {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #FFFFFF;
}

.page-arcade__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-arcade__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
  overflow: hidden;
  position: relative;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FCBC45; /* Gold for emphasis */
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-arcade__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  min-width: 200px;
  text-align: center;
}

.page-arcade__hero-button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__hero-button--primary:hover {
  background-color: #e0a538;
  transform: translateY(-3px);
}

.page-arcade__hero-button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-arcade__hero-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.page-arcade__hero-image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-arcade__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-arcade__intro-section, .page-arcade__games-selection-section, .page-arcade__strategies-section, .page-arcade__phbet-advantage-section, .page-arcade__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-arcade__intro-section {
  background-color: #f8f8f8;
}

.page-arcade__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #000000;
  font-weight: bold;
}

.page-arcade__section-description {
  font-size: 1.15em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-arcade__section-description--bottom {
  margin-top: 40px;
  margin-bottom: 0;
}

.page-arcade__button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-arcade__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-arcade__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-arcade__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Ensure min width for images */
  min-height: 200px; /* Ensure min height for images */
}

.page-arcade__category-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

.page-arcade__category-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-arcade__category-title a:hover {
  color: #FCBC45;
}

.page-arcade__category-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__strategies-section {
  background-color: #f0f0f0;
}

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

.page-arcade__strategy-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade__strategy-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min width for images */
  min-height: 200px; /* Ensure min height for images */
}

.page-arcade__strategy-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

.page-arcade__strategy-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
}

.page-arcade__phbet-advantage-section {
  background-color: #FFFFFF;
}

.page-arcade__advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
  list-style: none;
  padding: 0;
}

.page-arcade__advantage-item {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background-color: #fdfdfd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-arcade__advantage-icon {
  width: 200px; /* Ensure min width for images */
  height: 200px; /* Ensure min height for images */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-arcade__advantage-heading {
  font-size: 1.7em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

.page-arcade__advantage-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

.page-arcade__cta-section--bottom {
  background-color: #000000;
  color: #FFFFFF;
}

.page-arcade__cta-section--bottom .page-arcade__section-title {
  color: #FCBC45;
}

.page-arcade__cta-section--bottom .page-arcade__section-description {
  color: #f0f0f0;
}

@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 2.8em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    flex-direction: column;
    padding: 60px 15px 30px;
  }
  .page-arcade__hero-content {
    margin-bottom: 30px;
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-button {
    width: 100%;
    margin: 10px 0;
  }
  .page-arcade__hero-image-wrapper {
    margin-top: 30px;
  }
  .page-arcade__intro-section, .page-arcade__games-selection-section, .page-arcade__strategies-section, .page-arcade__phbet-advantage-section, .page-arcade__cta-section {
    padding: 60px 0;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-arcade__game-categories, .page-arcade__strategy-grid, .page-arcade__advantage-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-arcade__container {
    padding: 0 15px;
  }
  /* Mobile content area image resizing */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__category-image, .page-arcade__strategy-image, .page-arcade__advantage-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size even on mobile if possible, but scale down if needed */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__hero-button {
    min-width: unset;
  }
}