/* style/resources-clb88-security-fairness.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
  --button-login-color: #EA7C07; /* Custom color for login, but used for primary CTA here */
}

/* Base styles for the page content */
.page-resources-clb88-security-fairness {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text for light body background */
  background-color: var(--secondary-color); /* Matches shared.css body bg */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-clb88-security-fairness__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-clb88-security-fairness__section {
  padding: 60px 0;
}

.page-resources-clb88-security-fairness__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-clb88-security-fairness__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-resources-clb88-security-fairness__subsection-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-clb88-security-fairness p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-resources-clb88-security-fairness a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources-clb88-security-fairness a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-resources-clb88-security-fairness__hero-section {
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Adjusted gradient to be more vibrant */
  color: var(--text-light);
  padding: 80px 20px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources-clb88-security-fairness__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-clb88-security-fairness__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light); /* Ensure high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-clb88-security-fairness__intro-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-clb88-security-fairness__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources-clb88-security-fairness__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  max-width: 100%; /* Ensure button doesn't exceed container */
  box-sizing: border-box;
}

.page-resources-clb88-security-fairness__btn-primary {
  background-color: var(--button-login-color); /* Using custom login color for primary CTA */
  color: var(--text-light);
  border: 2px solid var(--button-login-color);
}

.page-resources-clb88-security-fairness__btn-primary:hover {
  background-color: #d16b06; /* Darken on hover */
  border-color: #d16b06;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-clb88-security-fairness__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-clb88-security-fairness__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Image styles */
.page-resources-clb88-security-fairness__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
}

/* List styles */
.page-resources-clb88-security-fairness__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-resources-clb88-security-fairness__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
}

.page-resources-clb88-security-fairness__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

/* Dark background sections */
.page-resources-clb88-security-system--dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources-clb88-security-system--dark-bg .page-resources-clb88-security-fairness__section-title,
.page-resources-clb88-security-system--dark-bg .page-resources-clb88-security-fairness__subsection-title {
  color: var(--text-light);
}

.page-resources-clb88-security-system--dark-bg .page-resources-clb88-security-fairness__section-title::after {
  background-color: var(--text-light);
}

.page-resources-clb88-security-system--dark-bg .page-resources-clb88-security-fairness__list-item::before {
  color: var(--text-light);
}

/* FAQ Section */
.page-resources-clb88-security-fairness__faq-list {
  margin-top: 40px;
}

.page-resources-clb88-security-fairness__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-clb88-security-fairness__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 15px;
  opacity: 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-resources-clb88-security-fairness__faq-item.active .page-resources-clb88-security-fairness__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-resources-clb88-security-fairness__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-clb88-security-fairness__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-clb88-security-fairness__faq-question:active {
  background: #eeeeee;
}

.page-resources-clb88-security-fairness__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-dark);
}

.page-resources-clb88-security-fairness__faq-toggle {
  font-size: 28px; /* Increased size for better visibility */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Using primary color for visibility */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Increased size */
  height: 32px; /* Increased size */
}

.page-resources-clb88-security-fairness__faq-item.active .page-resources-clb88-security-fairness__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* A common way to show 'minus' from a plus */
}

/* Conclusion Section specific styling */
.page-resources-clb88-security-fairness__conclusion {
  text-align: center;
}

.page-resources-clb88-security-fairness__conclusion .page-resources-clb88-security-fairness__cta-button {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-clb88-security-fairness__main-title {
    font-size: 42px;
  }
  .page-resources-clb88-security-fairness__intro-text {
    font-size: 18px;
  }
  .page-resources-clb88-security-fairness__section-title {
    font-size: 32px;
  }
  .page-resources-clb88-security-fairness__subsection-title {
    font-size: 22px;
  }
  .page-resources-clb88-security-fairness p,
  .page-resources-clb88-security-fairness__list-item {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-resources-clb88-security-fairness {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-resources-clb88-security-fairness__container {
    padding: 0 15px;
  }

  .page-resources-clb88-security-fairness__hero-section {
    padding: 60px 15px 40px;
  }

  .page-resources-clb88-security-fairness__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources-clb88-security-fairness__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-resources-clb88-security-fairness__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100% !important; /* Enforce full width */
    box-sizing: border-box !important;
  }

  .page-resources-clb88-security-fairness__cta-button {
    width: 100% !important; /* Buttons take full width */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text to wrap */
    word-wrap: break-word !important; /* Ensure long words break */
  }

  .page-resources-clb88-security-fairness__section {
    padding: 40px 0;
  }

  .page-resources-clb88-security-fairness__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources-clb88-security-fairness__subsection-title {
    font-size: 20px;
  }

  .page-resources-clb88-security-fairness p,
  .page-resources-clb88-security-fairness__list-item {
    font-size: 15px;
  }

  /* Mobile image specific styles */
  .page-resources-clb88-security-fairness img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 5px; /* Add some padding to prevent image touching edges */
  }

  .page-resources-clb88-security-fairness__section,
  .page-resources-clb88-security-fairness__container,
  .page-resources-clb88-security-fairness__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources-clb88-security-fairness__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-clb88-security-fairness__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-clb88-security-fairness__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-clb88-security-fairness__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-clb88-security-fairness__faq-item.active .page-resources-clb88-security-fairness__faq-answer {
    padding: 15px !important;
  }
}