.page-resources-ph8-security {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources-ph8-security__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-resources-ph8-security__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.page-resources-ph8-security__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight with accent color */
  line-height: 1.2;
}

.page-resources-ph8-security__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources-ph8-security__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-ph8-security__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, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-resources-ph8-security__register-button {
  background-color: #000000; /* Dark button background */
  color: #FFFFFF; /* White text for Register */
  border: 2px solid #FFFFFF;
}

.page-resources-ph8-security__register-button:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources-ph8-security__login-button {
  background-color: #FCBC45;
  color: #000000; /* Dark text for Login */
  border: 2px solid #FCBC45;
}

.page-resources-ph8-security__login-button:hover {
  background-color: #E0A030;
  color: #000000;
}

.page-resources-ph8-security__cta-buttons--bottom {
  margin-top: 50px;
  margin-bottom: 30px;
}

.page-resources-ph8-security__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources-ph8-security__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background */
  display: block;
}

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

.page-resources-ph8-security__section-title {
  font-size: 2.2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

.page-resources-ph8-security__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-resources-ph8-security__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-resources-ph8-security__list-item {
  margin-bottom: 10px;
}

.page-resources-ph8-security__image-container {
  margin: 30px 0;
  text-align: center;
}

.page-resources-ph8-security__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-resources-ph8-security__link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-ph8-security__link:hover {
  text-decoration: underline;
}

.page-resources-ph8-security__return-link-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-resources-ph8-security__return-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-resources-ph8-security__return-link:hover {
  background-color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources-ph8-security__hero-section {
    padding: 40px 15px;
  }

  .page-resources-ph8-security__main-title {
    font-size: 2.2em;
  }

  .page-resources-ph8-security__intro-text {
    font-size: 1em;
  }

  .page-resources-ph8-security__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-ph8-security__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-resources-ph8-security__content-area {
    padding: 20px 15px;
  }

  .page-resources-ph8-security__section-title {
    font-size: 1.8em;
    margin-top: 30px;
  }

  .page-resources-ph8-security__paragraph,
  .page-resources-ph8-security__list {
    font-size: 1em;
  }

  .page-resources-ph8-security__image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
    min-width: 200px;
    min-height: 200px;
  }

  /* Ensure content area doesn't cause horizontal scroll */
  .page-resources-ph8-security {
    overflow-x: hidden;
  }
}