/* style/resources-w88-security-privacy.css */

/* Base styles and container */
.page-resources-w88-security-privacy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from body via shared.css */
}

.page-resources-w88-security-privacy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section common styles */
.page-resources-w88-security-privacy__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-w88-security-privacy__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333; /* Default for light background sections */
}

.page-resources-w88-security-privacy__highlight-text {
  color: #017439;
  font-weight: bold;
}

/* Hero Section */
.page-resources-w88-security-privacy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 500px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources-w88-security-privacy__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-resources-w88-security-privacy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability, not changing color */
}

.page-resources-w88-security-privacy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-resources-w88-security-privacy__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-resources-w88-security-privacy__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-resources-w88-security-privacy__btn-primary {
  display: inline-block;
  background: #C30808; /* Specific color for register/login buttons */
  color: #FFFF00; /* Specific font color for register/login buttons */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-w88-security-privacy__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Light background sections */
.page-resources-w88-security-privacy__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

/* Dark background sections */
.page-resources-w88-security-privacy__dark-bg {
  background-color: #0a0a0a; /* Matches body background */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

.page-resources-w88-security-privacy__dark-bg .page-resources-w88-security-privacy__section-title {
  color: #017439;
}

.page-resources-w88-security-privacy__dark-bg .page-resources-w88-security-privacy__text-block {
  color: #f0f0f0;
}

/* Feature Section */
.page-resources-w88-security-privacy__feature-section {
  padding: 60px 0;
}

.page-resources-w88-security-privacy__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-w88-security-privacy__feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-resources-w88-security-privacy__feature-card:hover {
  transform: translateY(-5px);
}

.page-resources-w88-security-privacy__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-w88-security-privacy__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-w88-security-privacy__card-description {
  font-size: 1em;
  color: #555555;
  text-align: left;
}

/* FAQ Section */
.page-resources-w88-security-privacy__faq-section {
  padding: 60px 0;
}

.page-resources-w88-security-privacy__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-w88-security-privacy__faq-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-w88-security-privacy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

.page-resources-w88-security-privacy__faq-question:hover {
  background-color: #005f2f;
}

.page-resources-w88-security-privacy__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-resources-w88-security-privacy__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-resources-w88-security-privacy__faq-item.active .page-resources-w88-security-privacy__faq-toggle {
  transform: rotate(45deg); /* Change to 'x' or '-' */
}

.page-resources-w88-security-privacy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.03);
  color: #f0f0f0;
}

.page-resources-w88-security-privacy__faq-item.active .page-resources-w88-security-privacy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

.page-resources-w88-security-privacy__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* CTA Section */
.page-resources-w88-security-privacy__cta-section {
  text-align: center;
  padding: 60px 0;
}

.page-resources-w88-security-privacy__cta-section .page-resources-w88-security-privacy__section-title {
  color: #017439;
}

.page-resources-w88-security-privacy__cta-button {
  margin-top: 30px;
  padding: 18px 35px;
  font-size: 1.3em;
}

/* Links within text */
.page-resources-w88-security-privacy a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-w88-security-privacy a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-w88-security-privacy__hero-title {
    font-size: 2.8em;
  }
  .page-resources-w88-security-privacy__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-w88-security-privacy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-w88-security-privacy__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    min-height: 400px;
  }

  .page-resources-w88-security-privacy__hero-title {
    font-size: 2em;
  }

  .page-resources-w88-security-privacy__hero-description {
    font-size: 1em;
  }

  .page-resources-w88-security-privacy__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-w88-security-privacy__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-w88-security-privacy__feature-card {
    padding: 20px;
  }

  .page-resources-w88-security-privacy__card-image {
    height: 200px;
  }

  .page-resources-w88-security-privacy__card-title {
    font-size: 1.5em;
  }

  .page-resources-w88-security-privacy__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-resources-w88-security-privacy__faq-answer {
    padding: 0 15px;
  }

  .page-resources-w88-security-privacy__faq-item.active .page-resources-w88-security-privacy__faq-answer {
    padding: 15px !important;
  }

  .page-resources-w88-security-privacy__btn-primary,
  .page-resources-w88-security-privacy__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px !important;
    font-size: 1em;
  }

  .page-resources-w88-security-privacy__container,
  .page-resources-w88-security-privacy__section,
  .page-resources-w88-security-privacy__feature-section,
  .page-resources-w88-security-privacy__content-section,
  .page-resources-w88-security-privacy__faq-section,
  .page-resources-w88-security-privacy__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  .page-resources-w88-security-privacy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-w88-security-privacy__hero-image-wrapper {
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-resources-w88-security-privacy__hero-title {
    font-size: 1.8em;
  }
  .page-resources-w88-security-privacy__section-title {
    font-size: 1.5em;
  }
  .page-resources-w88-security-privacy__btn-primary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-resources-w88-security-privacy__cta-button {
    padding: 15px 25px;
    font-size: 1em;
  }
}