/* style/resources-ph4-platform-analysis.css */
.page-resources-ph4-platform-analysis {
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-ph4-platform-analysis__hero-section {
  background-color: #0A2463;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-resources-ph4-platform-analysis__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-ph4-platform-analysis__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #E5A000; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

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

.page-resources-ph4-platform-analysis__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-ph4-platform-analysis__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1em;
  cursor: pointer;
  text-align: center;
}

.page-resources-ph4-platform-analysis__button--primary {
  background-color: #E5A000;
  color: #0A2463;
  border: 2px solid #E5A000;
}

.page-resources-ph4-platform-analysis__button--primary:hover {
  background-color: #d19100;
  transform: translateY(-2px);
}

.page-resources-ph4-platform-analysis__button--secondary {
  background-color: transparent;
  color: #E5A000;
  border: 2px solid #E5A000;
}

.page-resources-ph4-platform-analysis__button--secondary:hover {
  background-color: rgba(229, 160, 0, 0.1);
  transform: translateY(-2px);
}

.page-resources-ph4-platform-analysis__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-resources-ph4-platform-analysis__hero-image {
  width: 100%;
  max-width: 900px; /* Constrain image width */
  margin-top: 40px;
}

.page-resources-ph4-platform-analysis__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources-ph4-platform-analysis__section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-resources-ph4-platform-analysis__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

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

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

.page-resources-ph4-platform-analysis__feature-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-resources-ph4-platform-analysis__feature-card:hover {
  transform: translateY(-5px);
}

.page-resources-ph4-platform-analysis__feature-icon {
  width: 250px; /* Min 200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-resources-ph4-platform-analysis__feature-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-resources-ph4-platform-analysis__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-resources-ph4-platform-analysis__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources-ph4-platform-analysis__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #E5A000;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-resources-ph4-platform-analysis__list-title {
  font-size: 1.3em;
  color: #0A2463;
  margin-bottom: 10px;
}

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

.page-resources-ph4-platform-analysis__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-resources-ph4-platform-analysis__game-card:hover {
  transform: translateY(-7px);
}

.page-resources-ph4-platform-analysis__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-resources-ph4-platform-analysis__game-title {
  font-size: 1.4em;
  color: #0A2463;
  margin: 20px 15px 10px;
}

.page-resources-ph4-platform-analysis__game-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-resources-ph4-platform-analysis__game-card .page-resources-ph4-platform-analysis__button {
  margin: 0 15px 20px;
}

.page-resources-ph4-platform-analysis__promo-highlight {
  background-color: #0A2463;
  color: #ffffff;
  border-radius: 15px;
  padding: 40px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-ph4-platform-analysis__promo-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-ph4-platform-analysis__promo-title {
  font-size: 2em;
  color: #E5A000;
  margin-bottom: 15px;
}

.page-resources-ph4-platform-analysis__promo-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-resources-ph4-platform-analysis__mobile-showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources-ph4-platform-analysis__mobile-image {
  flex: 1 1 350px;
  max-width: 450px; /* Constrain image width */
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources-ph4-platform-analysis__mobile-details {
  flex: 1 1 450px;
  text-align: left;
}

.page-resources-ph4-platform-analysis__mobile-details-title {
  font-size: 2em;
  color: #0A2463;
  margin-bottom: 20px;
}

.page-resources-ph4-platform-analysis__mobile-details-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-resources-ph4-platform-analysis__final-cta {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-ph4-platform-analysis__related-resources {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.page-resources-ph4-platform-analysis__resource-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  align-items: center;
}

.page-resources-ph4-platform-analysis__resource-link {
  color: #0A2463;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-resources-ph4-platform-analysis__resource-link:hover {
  color: #E5A000;
  text-decoration: underline;
}

.page-resources-ph4-platform-analysis__resource-link--back {
  font-weight: bold;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources-ph4-platform-analysis {
    padding-top: var(--header-offset, 80px);
  }

  .page-resources-ph4-platform-analysis__hero-section {
    padding: 60px 15px;
  }

  .page-resources-ph4-platform-analysis__hero-title {
    font-size: 2.5em;
  }

  .page-resources-ph4-platform-analysis__hero-description {
    font-size: 1.1em;
  }

  .page-resources-ph4-platform-analysis__hero-actions {
    flex-direction: column;
  }

  .page-resources-ph4-platform-analysis__button {
    width: 100%;
    max-width: 300px;
  }

  .page-resources-ph4-platform-analysis__section-title {
    font-size: 2em;
  }

  .page-resources-ph4-platform-analysis__paragraph {
    font-size: 1em;
  }

  .page-resources-ph4-platform-analysis__features-grid,
  .page-resources-ph4-platform-analysis__game-categories {
    grid-template-columns: 1fr;
  }

  .page-resources-ph4-platform-analysis__feature-icon,
  .page-resources-ph4-platform-analysis__game-image,
  .page-resources-ph4-platform-analysis__promo-image,
  .page-resources-ph4-platform-analysis__mobile-image {
    max-width: 100%;
    height: auto;
  }

  .page-resources-ph4-platform-analysis__mobile-showcase {
    flex-direction: column;
  }

  .page-resources-ph4-platform-analysis__mobile-details {
    text-align: center;
  }

  .page-resources-ph4-platform-analysis__mobile-details-title {
    font-size: 1.8em;
  }

  .page-resources-ph4-platform-analysis__final-cta {
    flex-direction: column;
  }

  /* Ensure content area images do not overflow */
  .page-resources-ph4-platform-analysis img {
    max-width: 100%;
    height: auto;
  }
}