.page-resources-x88-link-security {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background: var(--secondary-color); /* Matches body background from shared.css */
}

.page-resources-x88-link-security__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-resources-x88-link-security__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #017439, #28a745);
  color: #ffffff;
  overflow: hidden;
}

.page-resources-x88-link-security__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.page-resources-x88-link-security__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-x88-link-security__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-resources-x88-link-security__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-resources-x88-link-security__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Special color for hero title for contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.page-resources-x88-link-security__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-x88-link-security__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-x88-link-security__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-x88-link-security__section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.page-resources-x88-link-security__section:last-of-type {
  border-bottom: none;
}

.page-resources-x88-link-security__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-resources-x88-link-security__intro-content p,
.page-resources-x88-link-security__risks-section p,
.page-resources-x88-link-security__identification-section p,
.page-resources-x88-link-security__benefits-section p,
.page-resources-x88-link-security__steps-section p,
.page-resources-x88-link-security__platform-section p,
.page-resources-x88-link-security__cta-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-x88-link-security__inline-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-resources-x88-link-security__inline-link:hover {
  color: #005f2c;
  text-decoration: none;
}

.page-resources-x88-link-security__dark-bg {
  background: #017439;
  color: #ffffff;
}

.page-resources-x88-link-security__dark-bg .page-resources-x88-link-security__section-title {
  color: #ffffff;
}

.page-resources-x88-link-security__dark-bg .page-resources-x88-link-security__section-title::after {
  background-color: #FFFF00;
}

.page-resources-x88-link-security__dark-bg .page-resources-x88-link-security__inline-link {
  color: #FFFF00;
}

.page-resources-x88-link-security__dark-bg .page-resources-x88-link-security__inline-link:hover {
  color: #ffcc00;
}

.page-resources-x88-link-security__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-x88-link-security__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px;
}

.page-resources-x88-link-security__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-x88-link-security__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-resources-x88-link-security__card-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-x88-link-security__card p {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-resources-x88-link-security__light-bg {
  background: #f9f9f9;
  color: #333333;
}

.page-resources-x88-link-security__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-resources-x88-link-security__content-block {
  text-align: left;
}

.page-resources-x88-link-security__sub-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-x88-link-security__content-block ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-resources-x88-link-security__content-block ul li {
  margin-bottom: 10px;
  color: #555555;
  font-size: 1.05em;
}

.page-resources-x88-link-security__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-resources-x88-link-security__numbered-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin-top: 40px;
}

.page-resources-x88-link-security__numbered-list li {
  counter-increment: item;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  font-size: 1.1em;
  color: #333333;
}

.page-resources-x88-link-security__numbered-list li::before {
  content: counter(item);
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  flex-shrink: 0;
  margin-right: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-resources-x88-link-security__numbered-list li p {
  margin: 0;
  text-align: justify;
}

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

.page-resources-x88-link-security__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: background 0.3s ease;
  color: #ffffff;
  min-height: 250px;
}

.page-resources-x88-link-security__feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-resources-x88-link-security__feature-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-x88-link-security__feature-item p {
  font-size: 1em;
  color: #f0f0f0;
  text-align: justify;
}

/* FAQ Section */
.page-resources-x88-link-security__faq-list {
  margin-top: 40px;
}

.page-resources-x88-link-security__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-x88-link-security__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-x88-link-security__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-x88-link-security__faq-question:active {
  background: #eeeeee;
}

.page-resources-x88-link-security__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-resources-x88-link-security__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-x88-link-security__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-resources-x88-link-security__faq-answer p {
  margin: 0;
  color: #555555;
  font-size: 1em;
}

.page-resources-x88-link-security__faq-item.active .page-resources-x88-link-security__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-resources-x88-link-security__faq-item.active .page-resources-x88-link-security__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

.page-resources-x88-link-security__faq-item.active .page-resources-x88-link-security__faq-toggle {
  color: #C30808;
  transform: rotate(45deg); /* Change from '-' to 'X' */
}

.page-resources-x88-link-security__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.page-resources-x88-link-security__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
}

.page-resources-x88-link-security__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-x88-link-security__cta-section .page-resources-x88-link-security__section-title {
  color: #017439;
  margin-bottom: 20px;
}

.page-resources-x88-link-security__cta-section .page-resources-x88-link-security__section-title::after {
  background-color: #017439;
}

.page-resources-x88-link-security__cta-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  color: #555555;
}

/* Floating Buttons */
.page-resources-x88-link-security__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-resources-x88-link-security__floating-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 0.9em;
  line-height: 1.2;
}

.page-resources-x88-link-security__floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-resources-x88-link-security__floating-btn--register {
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
}

.page-resources-x88-link-security__floating-btn--login {
  background: #C30808; /* Login color */
  color: #FFFF00; /* Login font color */
}

.page-resources-x88-link-security__floating-btn-text {
  font-size: 0.7em;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-x88-link-security__main-title {
    font-size: 2.8em;
  }
  .page-resources-x88-link-security__intro-description {
    font-size: 1.1em;
  }
  .page-resources-x88-link-security__section-title {
    font-size: 2em;
  }
  .page-resources-x88-link-security__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-resources-x88-link-security__image-block {
    order: -1; /* Image on top for mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources-x88-link-security__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-x88-link-security__main-title {
    font-size: 2.2em;
  }
  .page-resources-x88-link-security__intro-description {
    font-size: 1em;
  }
  .page-resources-x88-link-security__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-x88-link-security__section {
    padding: 40px 0;
  }
  .page-resources-x88-link-security__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-x88-link-security__container,
  .page-resources-x88-link-security__card,
  .page-resources-x88-link-security__feature-item,
  .page-resources-x88-link-security__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-x88-link-security img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-x88-link-security__card {
    min-height: auto;
    padding: 20px;
  }
  .page-resources-x88-link-security__card-image {
    height: 150px;
  }
  .page-resources-x88-link-security__sub-title {
    font-size: 1.3em;
  }
  .page-resources-x88-link-security__numbered-list li {
    font-size: 1em;
  }
  .page-resources-x88-link-security__numbered-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1em;
  }
  .page-resources-x88-link-security__feature-item {
    min-height: auto;
    padding: 20px;
  }
  .page-resources-x88-link-security__feature-title {
    font-size: 1.3em;
  }
  .page-resources-x88-link-security__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources-x88-link-security__faq-question h3 {
    font-size: 1.05em;
    width: calc(100% - 40px);
  }
  .page-resources-x88-link-security__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources-x88-link-security__faq-answer {
    padding: 0 15px;
  }
  .page-resources-x88-link-security__faq-item.active .page-resources-x88-link-security__faq-answer {
    padding: 15px !important;
  }
  .page-resources-x88-link-security__floating-buttons {
    flex-direction: row;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    bottom: 15px;
    justify-content: space-around;
  }
  .page-resources-x88-link-security__floating-btn {
    width: 70px;
    height: 70px;
    font-size: 0.8em;
  }
  .page-resources-x88-link-security__floating-btn-text {
    font-size: 0.65em;
  }
}

@media (max-width: 480px) {
  .page-resources-x88-link-security__main-title {
    font-size: 1.8em;
  }
  .page-resources-x88-link-security__intro-description {
    font-size: 0.95em;
  }
  .page-resources-x88-link-security__section-title {
    font-size: 1.6em;
  }
  .page-resources-x88-link-security__grid-3-cols {
    grid-template-columns: 1fr;
  }
  .page-resources-x88-link-security__feature-list {
    grid-template-columns: 1fr;
  }
  .page-resources-x88-link-security__floating-btn {
    width: 65px;
    height: 65px;
    font-size: 0.75em;
  }
  .page-resources-x88-link-security__floating-btn-text {
    font-size: 0.6em;
  }
}