/* style/resources-security-guide.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources-security-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: #000000; /* Body background from shared.css */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Container for consistent content width */
.page-resources-security-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-resources-security-guide__hero-section,
.page-resources-security-guide__video-section,
.page-resources-security-guide__content-section,
.page-resources-security-guide__faq-section,
.page-resources-security-guide__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.page-resources-security-guide__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-resources-security-guide__hero-section .page-resources-security-guide__container {
  z-index: 1;
  position: relative;
}

.page-resources-security-guide__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  line-height: 1.2;
}

.page-resources-security-guide__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-security-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-security-guide__btn-primary,
.page-resources-security-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-resources-security-guide__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #000000; /* Black text for contrast */
  border: 2px solid #FFD700;
}

.page-resources-security-guide__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources-security-guide__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-resources-security-guide__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
}

.page-resources-security-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
  /* filter: none; */ /* Removing filter as per strict instruction */
}

/* Section titles and descriptions */
.page-resources-security-guide__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources-security-guide__section-description,
.page-resources-security-guide__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page-resources-security-guide__text-block {
    text-align: left; /* Align text blocks to left for readability */
}


/* Video Section */
.page-resources-security-guide__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.page-resources-security-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it's a block element */
  cursor: pointer;
}

.page-resources-security-guide__video-link {
    display: block; /* Make the link cover the entire video area */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure link is above video for click */
}

/* Feature Grid */
.page-resources-security-guide__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources-security-guide__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff; /* Light text on card background */
}

.page-resources-security-guide__feature-image {
  width: 100%;
  max-width: 400px; /* Recommended size */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size */
}

.page-resources-security-guide__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-security-guide__feature-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources-security-guide__feature-title a:hover {
  text-decoration: underline;
}

.page-resources-security-guide__feature-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
}

/* Guide Steps */
.page-resources-security-guide__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources-security-guide__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-resources-security-guide__guide-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-security-guide__guide-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-security-guide__guide-button {
  margin-top: auto; /* Push button to bottom */
}

/* Responsibility List */
.page-resources-security-guide__responsibility-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources-security-guide__responsibility-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-resources-security-guide__responsibility-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-security-guide__responsibility-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Fairness Features */
.page-resources-security-guide__fairness-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources-security-guide__fairness-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-resources-security-guide__fairness-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-security-guide__fairness-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-resources-security-guide__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-resources-security-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-resources-security-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #FFD700; /* Gold background for question */
  color: #000000; /* Black text for question */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-security-guide__faq-question:hover {
  background-color: #e6c200;
}

.page-resources-security-guide__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #000000; /* Ensure black text */
}

.page-resources-security-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #000000; /* Ensure black text */
}

.page-resources-security-guide__faq-item.active .page-resources-security-guide__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-resources-security-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker transparent white */
  color: #f0f0f0; /* Light text for answer */
  text-align: left;
}

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

.page-resources-security-guide__faq-answer p {
  margin: 0;
  padding: 0;
  color: #f0f0f0; /* Ensure light text */
}

.page-resources-security-guide__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-security-guide__hero-title {
    font-size: 2.8em;
  }
  .page-resources-security-guide__section-title {
    font-size: 2em;
  }
}

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

  .page-resources-security-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-resources-security-guide__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-resources-security-guide__btn-primary,
  .page-resources-security-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}