.page-resources-okfun-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-okfun-security__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero text */
  padding: 0;
}

.page-resources-okfun-security__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-resources-okfun-security__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  padding: 20px;
  z-index: 10;
}

.page-resources-okfun-security__hero-title {
  font-size: 3em;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-okfun-security__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-resources-okfun-security__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources-okfun-security__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-resources-okfun-security__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-resources-okfun-security__button--register:hover {
  background-color: #F0F0F0;
  transform: translateY(-2px);
}

.page-resources-okfun-security__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources-okfun-security__button--login:hover {
  background-color: #E8A832;
  transform: translateY(-2px);
}

.page-resources-okfun-security__article-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-resources-okfun-security__intro-paragraph {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: justify;
}

.page-resources-okfun-security__section-title {
  font-size: 2.2em;
  color: #000000;
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

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

.page-resources-okfun-security__feature-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-okfun-security__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-resources-okfun-security__feature-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  border-radius: 6px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources-okfun-security__feature-heading {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-resources-okfun-security__feature-item p {
  font-size: 0.95em;
  color: #555555;
  text-align: justify;
}

.page-resources-okfun-security__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 10px;
}

.page-resources-okfun-security__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-resources-okfun-security__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #F0F0F0;
}

.page-resources-okfun-security__button--join {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources-okfun-security__button--join:hover {
  background-color: #E8A832;
  transform: translateY(-2px);
}

.page-resources-okfun-security__return-link-container {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 40px;
}

.page-resources-okfun-security__return-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-resources-okfun-security__return-link:hover {
  color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources-okfun-security__hero-title {
    font-size: 2.2em;
  }

  .page-resources-okfun-security__hero-description {
    font-size: 1em;
  }

  .page-resources-okfun-security__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-okfun-security__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-resources-okfun-security__section-title {
    font-size: 1.8em;
  }

  .page-resources-okfun-security__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-okfun-security__feature-image {
    max-width: 100%;
    width: 100%; /* Ensure mobile images don't overflow */
    height: auto;
  }

  .page-resources-okfun-security__cta-title {
    font-size: 2em;
  }

  .page-resources-okfun-security__cta-description {
    font-size: 1em;
  }

  /* Ensure all content images are responsive and do not cause overflow */
  .page-resources-okfun-security img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources-okfun-security__hero-title {
    font-size: 1.8em;
  }

  .page-resources-okfun-security__hero-description {
    font-size: 0.9em;
  }

  .page-resources-okfun-security__section-title {
    font-size: 1.5em;
  }

  .page-resources-okfun-security__cta-title {
    font-size: 1.8em;
  }
}