/* style/resources-safe-selection.css */

/* Base styles for the page content */
.page-resources-safe-selection {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

/* Hero Section */
.page-resources-safe-selection__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
  background-color: #003366; /* Main brand color for hero background */
  color: #ffffff;
}

.page-resources-safe-selection__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-resources-safe-selection__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFCC00; /* Accent color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-resources-safe-selection__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources-safe-selection__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-safe-selection__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6; /* Make image slightly transparent for content readability */
}

/* General Section Styles */
.page-resources-safe-selection__section-title {
  font-size: 2.5em;
  color: #FFCC00; /* Accent color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

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

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

/* Dark Section for contrast */
.page-resources-safe-selection__dark-section {
  background-color: #003366; /* Main brand color */
  color: #ffffff;
}

.page-resources-safe-selection__dark-section .page-resources-safe-selection__section-title {
  color: #FFCC00;
}

.page-resources-safe-selection__dark-section .page-resources-safe-selection__text-block {
  color: #f0f0f0;
}

/* Grid Container for Cards */
.page-resources-safe-selection__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styles */
.page-resources-safe-selection__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text for cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources-safe-selection__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-selection__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, adjust as needed */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-resources-safe-selection__card-title {
  font-size: 1.5em;
  color: #FFCC00; /* Accent color for card titles */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources-safe-selection__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1; /* Allow text block to grow */
}

/* List Styles */
.page-resources-safe-selection__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources-safe-selection__list-item {
  background: rgba(255, 255, 255, 0.05); /* Lighter background for list items */
  border-left: 5px solid #FFCC00;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-resources-safe-selection__list-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-safe-selection__list-item strong {
  color: #FFCC00;
}

/* Call to Action Buttons */
.page-resources-safe-selection__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-resources-safe-selection__btn-primary,
.page-resources-safe-selection__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  box-sizing: border-box; /* Ensure padding/border are included in width */
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-resources-safe-selection__btn-primary {
  background-color: #FFCC00; /* Accent color */
  color: #003366; /* Dark text for contrast */
  border: 2px solid #FFCC00;
}

.page-resources-safe-selection__btn-primary:hover {
  background-color: #e6b800;
  transform: translateY(-3px);
}

.page-resources-safe-selection__btn-secondary {
  background-color: transparent;
  color: #FFCC00; /* Accent color */
  border: 2px solid #FFCC00;
}

.page-resources-safe-selection__btn-secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-3px);
}

/* Video Section */
.page-resources-safe-selection__video-section {
  background-color: #003366;
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-resources-safe-selection__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px; /* Limit video width */
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-selection__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer; /* Indicate clickable video */
}

.page-resources-safe-selection__video-caption {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-top: 15px;
}

/* FAQ Section */
.page-resources-safe-selection__faq-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with hero */
  padding: 60px 20px;
  color: #ffffff;
}

.page-resources-safe-selection__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-resources-safe-selection__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-selection__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #003366; /* Brand color for question background */
  color: #FFCC00; /* Accent color for question text */
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-resources-safe-selection__faq-question:hover {
  background-color: #004488;
}

.page-resources-safe-selection__faq-question-title {
  margin: 0;
  color: inherit; /* Inherit color from parent */
  font-size: 1em; /* Adjust font size to fit within question div */
}

.page-resources-safe-selection__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFCC00;
}

.page-resources-safe-selection__faq-item.active .page-resources-safe-selection__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-safe-selection__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #1a1a1a; /* Dark background for answer */
  color: #f0f0f0;
}

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

.page-resources-safe-selection__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Conclusion Section */
.page-resources-safe-selection__conclusion-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #003366;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-safe-selection__hero-title {
    font-size: 2.8em;
  }
  .page-resources-safe-selection__section-title {
    font-size: 2em;
  }
  .page-resources-safe-selection__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-resources-safe-selection__hero-section {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-resources-safe-selection__hero-title {
    font-size: 2.2em;
  }
  .page-resources-safe-selection__hero-description {
    font-size: 1em;
  }
  .page-resources-safe-selection__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-safe-selection__btn-primary,
  .page-resources-safe-selection__btn-secondary {
    width: 100% !important; /* Full width buttons on mobile */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-resources-safe-selection__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-resources-safe-selection__card-image {
    height: auto !important; /* Auto height for responsive images */
    min-height: 200px !important; /* Ensure min height */
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Ensure all content area images are responsive and not too small */
  .page-resources-safe-selection img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Video responsiveness */
  .page-resources-safe-selection__video-section {
    padding: 40px 15px;
  }
  .page-resources-safe-selection__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-resources-safe-selection__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-resources-safe-selection__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-resources-safe-selection__hero-title {
    font-size: 1.8em;
  }
  .page-resources-safe-selection__section-title {
    font-size: 1.5em;
  }
  .page-resources-safe-selection__hero-content {
    padding: 15px;
  }
}

/* Color Contrast Enforcement */
/* Body background is var(--dark-bg), so text should be light */
.page-resources-safe-selection {
  color: #ffffff;
}

.page-resources-safe-selection__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-resources-safe-selection__dark-section {
  background: #003366;
  color: #ffffff;
}

.page-resources-safe-selection__btn-primary {
  background: #FFCC00;
  color: #003366; /* Dark text on gold button */
}

.page-resources-safe-selection__btn-secondary {
  background: transparent;
  color: #FFCC00; /* Gold text on dark background */
  border: 2px solid #FFCC00;
}

/* FAQ specific contrast */
.page-resources-safe-selection__faq-question {
  background-color: #003366;
  color: #FFCC00;
}
.page-resources-safe-selection__faq-answer {
  background-color: #1a1a1a;
  color: #f0f0f0;
}