.page-index-game-portfolio {
  padding-top: 10px; /* Small top padding for main content below header */
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index-game-portfolio__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  padding-bottom: 40px; /* Spacing below the hero content */
}

.page-index-game-portfolio__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and content */
}

.page-index-game-portfolio__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-index-game-portfolio__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
  font-weight: bold;
  color: #FFD36B; /* Highlight color */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-index-game-portfolio__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-game-portfolio__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-game-portfolio__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-index-game-portfolio__button--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A;
}

.page-index-game-portfolio__button--primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-index-game-portfolio__button--secondary {
  background-color: transparent;
  border: 2px solid #FFD36B;
  color: #FFD36B;
}

.page-index-game-portfolio__button--secondary:hover {
  background-color: #FFD36B;
  color: #0A0A0A;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.4);
}

.page-index-game-portfolio__section-title {
  font-size: 2.2em;
  color: #FFD36B;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-index-game-portfolio__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

/* Game Categories Section */
.page-index-game-portfolio__game-categories-section {
  padding: 60px 0;
}

.page-index-game-portfolio__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-game-portfolio__category-card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #FFF6D6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 200px; /* Ensure minimum size for card content */
}

.page-index-game-portfolio__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-index-game-portfolio__category-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image */
  object-fit: cover;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-index-game-portfolio__category-card .page-index-game-portfolio__card-title {
  font-size: 1.4em;
  color: #F2C14E;
  padding: 15px 20px 10px;
  margin: 0;
}

.page-index-game-portfolio__category-card .page-index-game-portfolio__card-text {
  font-size: 0.95em;
  padding: 0 20px 20px;
  margin: 0;
  flex-grow: 1;
}

/* Featured Games Section */
.page-index-game-portfolio__featured-games-section {
  padding: 60px 0;
}

.page-index-game-portfolio__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-game-portfolio__game-card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

.page-index-game-portfolio__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-index-game-portfolio__game-card img {
  width: 100%;
  height: 250px; /* Consistent image height for game cards */
  object-fit: cover;
  margin-bottom: 15px;
  border-bottom: 1px solid #3A2A12;
}

.page-index-game-portfolio__game-card .page-index-game-portfolio__game-title {
  font-size: 1.3em;
  color: #F2C14E;
  margin-bottom: 8px;
  padding: 0 15px;
}

.page-index-game-portfolio__game-card .page-index-game-portfolio__game-provider {
  font-size: 0.9em;
  color: #FFF6D6;
  margin-bottom: 15px;
  opacity: 0.7;
  padding: 0 15px;
}

.page-index-game-portfolio__button--small {
  padding: 8px 20px;
  font-size: 0.9em;
  min-width: unset;
}

/* Why Choose Section */
.page-index-game-portfolio__why-choose-section {
  padding: 60px 0;
}

.page-index-game-portfolio__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-game-portfolio__feature-item {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-game-portfolio__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-index-game-portfolio__feature-item img {
  width: 200px; /* Display size matches HTML attribute */
  height: 200px; /* Display size matches HTML attribute */
  object-fit: contain; /* Ensure the image fits within the 200x200 box */
  margin: 0 auto 15px auto; /* Center the image */
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 211, 107, 0.5)); /* Glow effect */
}

.page-index-game-portfolio__feature-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-index-game-portfolio__feature-text {
  font-size: 0.95em;
  color: #FFF6D6;
}

.page-index-game-portfolio__cta-buttons {
  text-align: center;
  margin-top: 40px;
}

/* App Access Section */
.page-index-game-portfolio__app-access-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-index-game-portfolio__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-game-portfolio__app-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-index-game-portfolio__app-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  color: #FFF6D6;
}

.page-index-game-portfolio__app-features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-index-game-portfolio__app-features li::before {
  content: '✓';
  color: #F2C14E;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index-game-portfolio__app-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-index-game-portfolio__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index-game-portfolio__app-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-index-game-portfolio__faq-section {
  padding: 60px 0 80px;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-index-game-portfolio__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index-game-portfolio__faq-item {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
}

.page-index-game-portfolio__faq-question {
  font-size: 1.2em;
  color: #F2C14E;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-index-game-portfolio__faq-answer {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-index-game-portfolio__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em);
  }

  .page-index-game-portfolio__section-title {
    font-size: 1.8em;
  }

  .page-index-game-portfolio__hero-actions,
  .page-index-game-portfolio__app-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-index-game-portfolio__button {
    width: 80%;
    max-width: 300px;
  }

  .page-index-game-portfolio__categories-grid,
  .page-index-game-portfolio__games-grid,
  .page-index-game-portfolio__features-grid {
    grid-template-columns: 1fr;
  }

  .page-index-game-portfolio__category-card img,
  .page-index-game-portfolio__game-card img {
     /* Adjust height for smaller screens */
  }

  .page-index-game-portfolio__app-content {
    flex-direction: column;
    padding: 25px;
  }

  .page-index-game-portfolio__app-text,
  .page-index-game-portfolio__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  /* Mobile content area images must be constrained */
  .page-index-game-portfolio img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure feature images also respect the 200px minimum display size even on mobile */
  .page-index-game-portfolio__feature-item img {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px auto;
  }
}