/* style/resources-kingph-app-guide.css */
.page-resources-kingph-app-guide {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-resources-kingph-app-guide__hero-section {
  position: relative;
  background-color: #1E90FF; /* Auxiliary blue for hero background fallback */
  padding: 0; /* Image will handle padding visually */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Minimum height for hero */
}

.page-resources-kingph-app-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100%;
  z-index: 1;
}

.page-resources-kingph-app-guide__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 60px 20px;
}

.page-resources-kingph-app-guide__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
}

.page-resources-kingph-app-guide__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-kingph-app-guide__intro-text {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-resources-kingph-app-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources-kingph-app-guide__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-resources-kingph-app-guide__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #1E90FF; /* Dark blue text for contrast */
  border: 2px solid #FFD700;
}

.page-resources-kingph-app-guide__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources-kingph-app-guide__button--secondary {
  background-color: #1E90FF; /* Dark blue button */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #1E90FF;
}

.page-resources-kingph-app-guide__button--secondary:hover {
  background-color: #1565b3;
  transform: translateY(-2px);
}

.page-resources-kingph-app-guide__button--inline {
  margin-top: 20px;
  background-color: #1E90FF;
  color: #FFD700;
  border: 1px solid #1E90FF;
  padding: 10px 20px;
  font-size: 1em;
}

.page-resources-kingph-app-guide__button--inline:hover {
  background-color: #1565b3;
}

.page-resources-kingph-app-guide__content-area {
  max-width: 800px; /* Content width for readability */
  margin: 40px auto;
  padding: 0 20px;
}

.page-resources-kingph-app-guide__back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #1E90FF;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-kingph-app-guide__back-link:hover {
  color: #FFD700;
}

.page-resources-kingph-app-guide__article {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-kingph-app-guide__article-heading {
  font-size: 2.2em;
  color: #1E90FF;
  margin-bottom: 25px;
  text-align: center;
}

.page-resources-kingph-app-guide__sub-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.page-resources-kingph-app-guide__article p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-resources-kingph-app-guide__ordered-list,
.page-resources-kingph-app-guide__unordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-resources-kingph-app-guide__ordered-list li,
.page-resources-kingph-app-guide__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-kingph-app-guide__ordered-list li strong {
  color: #1E90FF;
}

.page-resources-kingph-app-guide__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block; /* Ensure images are block-level for margin auto to work */
  max-width: 100%;
}

.page-resources-kingph-app-guide__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-resources-kingph-app-guide__final-cta {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources-kingph-app-guide__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
  
  .page-resources-kingph-app-guide__hero-content {
    padding: 30px 20px;
  }

  .page-resources-kingph-app-guide__main-title {
    font-size: 2.2em;
  }

  .page-resources-kingph-app-guide__intro-text {
    font-size: 1em;
  }

  .page-resources-kingph-app-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-kingph-app-guide__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources-kingph-app-guide__content-area {
    padding: 0 15px;
    margin: 30px auto;
  }

  .page-resources-kingph-app-guide__article {
    padding: 20px;
  }

  .page-resources-kingph-app-guide__article-heading {
    font-size: 1.8em;
  }

  .page-resources-kingph-app-guide__sub-heading {
    font-size: 1.5em;
  }

  .page-resources-kingph-app-guide__article p,
  .page-resources-kingph-app-guide__ordered-list li,
  .page-resources-kingph-app-guide__unordered-list li {
    font-size: 1em;
  }

  /* Critical: Prevent content images from overflowing on mobile */
  .page-resources-kingph-app-guide img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources-kingph-app-guide__main-title {
    font-size: 1.8em;
  }
  .page-resources-kingph-app-guide__hero-content {
    padding: 20px 15px;
  }
}