.page-resources-security-system {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

.page-resources-security-system__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-security-system__section-title {
  font-size: 36px;
  color: #1A202C;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-resources-security-system__paragraph {
  font-size: 17px;
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
}

.page-resources-security-system__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Auxiliary color */
  color: #1A202C; /* Primary color for text */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts on mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-security-system__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-resources-security-system__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #1A202C; /* Primary brand color */
  color: #ffffff;
}

.page-resources-security-system__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources-security-system__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources-security-system__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-security-system__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-security-system__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  line-height: 1.2;
  font-weight: 800;
}

.page-resources-security-system__intro-text {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Content Grid for sections with image and text */
.page-resources-security-system__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-resources-security-system__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-resources-security-system__text-block,
.page-resources-security-system__image-block {
  flex: 1;
}

.page-resources-security-system__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Section Specific Styles */
.page-resources-security-system__introduction-section .page-resources-security-system__section-title {
  color: #1A202C;
}

.page-resources-security-system__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

.page-resources-security-system__dark-bg .page-resources-security-system__section-title {
  color: #FFD700;
}

.page-resources-security-system__dark-bg .page-resources-security-system__paragraph {
  color: #f0f0f0;
}

.page-resources-security-system__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources-security-system__light-bg .page-resources-security-system__section-title {
  color: #1A202C;
}

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

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

.page-resources-security-system__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources-security-system__faq-item.active .page-resources-security-system__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

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

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

.page-resources-security-system__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: #1A202C;
}

.page-resources-security-system__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-resources-security-system__faq-item.active .page-resources-security-system__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg);
}

.page-resources-security-system__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-security-system__section-title {
    font-size: 30px;
  }
  .page-resources-security-system__main-title {
    font-size: 38px;
  }
  .page-resources-security-system__intro-text {
    font-size: 18px;
  }
  .page-resources-security-system__paragraph {
    font-size: 16px;
  }
  .page-resources-security-system__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources-security-system__content-grid--reverse {
    flex-direction: column;
  }
  .page-resources-security-system__image-block img {
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .page-resources-security-system {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-resources-security-system__section {
    padding: 40px 0;
  }
  .page-resources-security-system__container {
    padding: 0 15px;
  }
  .page-resources-security-system__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-resources-security-system__main-title {
    font-size: 32px;
  }
  .page-resources-security-system__intro-text {
    font-size: 16px;
  }
  .page-resources-security-system__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-security-system__hero-section {
    padding: 40px 15px;
  }
  .page-resources-security-system__hero-image img {
    border-radius: 4px;
  }
  /* Mobile image adaptation */
  .page-resources-security-system img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-security-system__section,
  .page-resources-security-system__card,
  .page-resources-security-system__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* FAQ Mobile */
  .page-resources-security-system__faq-question {
    padding: 15px;
  }
  .page-resources-security-system__faq-question h3 {
    font-size: 16px;
  }
  .page-resources-security-system__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources-security-system__faq-item.active .page-resources-security-system__faq-answer {
    padding: 15px !important;
  }
}