/* style/resources-tk88-safe-access.css */
.page-resources-tk88-safe-access {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but for safety */
}

.page-resources-tk88-safe-access__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-tk88-safe-access__hero-section {
  position: relative;
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-tk88-safe-access__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources-tk88-safe-access__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-tk88-safe-access__hero-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  opacity: 0.3;
  z-index: 0;
  object-fit: cover;
}

.page-resources-tk88-safe-access__hero-section > .page-resources-tk88-safe-access__container {
  position: relative;
  z-index: 1;
}

.page-resources-tk88-safe-access__section-title {
  font-size: 2.5em;
  color: #017439; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-resources-tk88-safe-access__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-tk88-safe-access__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-tk88-safe-access__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark body background */
}

.page-resources-tk88-safe-access__text-block strong {
  color: #ffffff;
}

.page-resources-tk88-safe-access__content-area {
  padding: 60px 0;
  color: #f0f0f0;
  background-color: #1a1a2e;
}

.page-resources-tk88-safe-access__light-bg {
  background-color: #1a1a2e;
  color: #f0f0f0;
}

.page-resources-tk88-safe-access__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-tk88-safe-access__image-text-block,
.page-resources-tk88-safe-access__text-image-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-resources-tk88-safe-access__image-text-block .page-resources-tk88-safe-access__image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-tk88-safe-access__text-image-block .page-resources-tk88-safe-access__image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-tk88-safe-access__text-content {
  flex: 1;
}

.page-resources-tk88-safe-access__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-tk88-safe-access__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: left;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources-tk88-safe-access__card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-resources-tk88-safe-access__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-resources-tk88-safe-access__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources-tk88-safe-access__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-tk88-safe-access__list-item strong {
  color: #ffffff;
}

.page-resources-tk88-safe-access__faq-container {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-resources-tk88-safe-access__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-tk88-safe-access__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.page-resources-tk88-safe-access__faq-question::-webkit-details-marker {
  display: none;
}

.page-resources-tk88-safe-access__faq-question::marker {
  display: none;
}

.page-resources-tk88-safe-access__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Register/Login font color */
}

.page-resources-tk88-safe-access__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-resources-tk88-safe-access__faq-answer p {
  margin-bottom: 10px;
}

/* Buttons */
.page-resources-tk88-safe-access__btn-primary,
.page-resources-tk88-safe-access__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-tk88-safe-access__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
  margin-right: 15px;
}

.page-resources-tk88-safe-access__btn-primary:hover {
  background-color: #e02c2c;
  border-color: #e02c2c;
  color: #ffffff;
}

.page-resources-tk88-safe-access__btn-secondary {
  background-color: transparent;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-resources-tk88-safe-access__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-tk88-safe-access__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-resources-tk88-safe-access img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-tk88-safe-access {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-resources-tk88-safe-access__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-tk88-safe-access__hero-title {
    font-size: 2.2em;
  }

  .page-resources-tk88-safe-access__hero-description {
    font-size: 1em;
  }

  .page-resources-tk88-safe-access__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-tk88-safe-access__sub-title {
    font-size: 1.4em;
  }

  .page-resources-tk88-safe-access__image-text-block,
  .page-resources-tk88-safe-access__text-image-block {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }

  .page-resources-tk88-safe-access__image-text-block .page-resources-tk88-safe-access__image,
  .page-resources-tk88-safe-access__text-image-block .page-resources-tk88-safe-access__image {
    min-width: unset;
    width: 100% !important;
  }

  .page-resources-tk88-safe-access__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-tk88-safe-access__card {
    padding: 20px;
  }

  .page-resources-tk88-safe-access__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources-tk88-safe-access__faq-answer {
    padding: 0 20px 15px;
  }

  .page-resources-tk88-safe-access__btn-primary,
  .page-resources-tk88-safe-access__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .page-resources-tk88-safe-access__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Force images to be responsive and not overflow */
  .page-resources-tk88-safe-access img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-tk88-safe-access__section,
  .page-resources-tk88-safe-access__card,
  .page-resources-tk88-safe-access__container,
  .page-resources-tk88-safe-access__image-text-block,
  .page-resources-tk88-safe-access__text-image-block,
  .page-resources-tk88-safe-access__benefits-grid,
  .page-resources-tk88-safe-access__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-resources-tk88-safe-access__hero-image {
    position: relative;
    transform: translateX(-50%) translateY(20px); /* Adjust position for mobile */
    left: 50%;
    width: 120% !important;
    max-width: 120% !important;
    height: auto !important;
  }
}

/* Global image size and style requirements */
.page-resources-tk88-safe-access img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  filter: none; /* Absolutely no CSS filter on images */
}

/* Content area image specific CSS to prevent small sizes */
.page-resources-tk88-safe-access__content-area img {
  width: auto; /* Allow natural width or flex sizing */
  height: auto;
  max-width: 100%;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

@media (max-width: 768px) {
  .page-resources-tk88-safe-access__content-area img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow images to scale down to 100% width */
    min-height: unset !important;
  }
}