.page-resources-thabet-app-security {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

.page-resources-thabet-app-security__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  overflow: hidden;
}

.page-resources-thabet-app-security__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-resources-thabet-app-security__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-thabet-app-security__hero-description {
  font-size: 1.2em;
  color: #f0f8ff;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-thabet-app-security__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources-thabet-app-security__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
  overflow: hidden;
}

.page-resources-thabet-app-security__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Subtle filter to make text stand out, not changing color */
}

.page-resources-thabet-app-security__section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-thabet-app-security__dark-section {
  background-color: #1a1a1a; /* Darker background for contrast with white sections */
  color: #FFFFFF;
}

.page-resources-thabet-app-security__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-resources-thabet-app-security__dark-section .page-resources-thabet-app-security__section-title {
  color: #FFFFFF;
}

.page-resources-thabet-app-security__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #ccc;
}

.page-resources-thabet-app-security__dark-section .page-resources-thabet-app-security__section-description {
  color: #f0f0f0;
}

.page-resources-thabet-app-security__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-thabet-app-security__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-resources-thabet-app-security__section:not(.page-resources-thabet-app-security__dark-section) .page-resources-thabet-app-security__feature-card {
  background-color: #FFFFFF;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-thabet-app-security__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-thabet-app-security__section:not(.page-resources-thabet-app-security__dark-section) .page-resources-thabet-app-security__feature-card:hover {
  background-color: #f9f9f9;
}

.page-resources-thabet-app-security__feature-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources-thabet-app-security__section:not(.page-resources-thabet-app-security__dark-section) .page-resources-thabet-app-security__feature-title {
  color: #26A9E0;
}

.page-resources-thabet-app-security__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-resources-thabet-app-security__section:not(.page-resources-thabet-app-security__dark-section) .page-resources-thabet-app-security__feature-text {
  color: #555555;
}

.page-resources-thabet-app-security__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  object-fit: cover;
}

.page-resources-thabet-app-security__faq-section {
  background-color: #f8f8f8; /* Light background for FAQ */
  color: #333333;
}

.page-resources-thabet-app-security__faq-section .page-resources-thabet-app-security__section-title {
  color: #26A9E0;
}

.page-resources-thabet-app-security__faq-section .page-resources-thabet-app-security__section-description {
  color: #555555;
}

.page-resources-thabet-app-security__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-thabet-app-security__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-thabet-app-security__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}

.page-resources-thabet-app-security__faq-question:hover {
  background-color: #e9e9e9;
}

.page-resources-thabet-app-security__faq-question h3 {
  margin: 0;
  color: #26A9E0;
}

.page-resources-thabet-app-security__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-resources-thabet-app-security__faq-item.active .page-resources-thabet-app-security__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-thabet-app-security__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  text-align: left;
}

.page-resources-thabet-app-security__faq-item.active .page-resources-thabet-app-security__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px 25px 25px;
}

.page-resources-thabet-app-security__btn-primary,
.page-resources-thabet-app-security__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-thabet-app-security__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-resources-thabet-app-security__btn-primary:hover {
  background-color: #1a7bbd;
  border-color: #1a7bbd;
}

.page-resources-thabet-app-security__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-resources-thabet-app-security__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

.page-resources-thabet-app-security__conclusion-section {
  padding-top: 60px;
  padding-bottom: 80px;
  background: linear-gradient(45deg, #1a7bbd, #26A9E0);
}

.page-resources-thabet-app-security__conclusion-section .page-resources-thabet-app-security__section-title {
  color: #FFFFFF;
}

.page-resources-thabet-app-security__conclusion-cta {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-thabet-app-security__hero-title {
    font-size: 3em;
  }
  .page-resources-thabet-app-security__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources-thabet-app-security__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-resources-thabet-app-security__hero-title {
    font-size: 2.2em;
  }
  .page-resources-thabet-app-security__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-resources-thabet-app-security__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-thabet-app-security__btn-primary,
  .page-resources-thabet-app-security__btn-secondary {
    width: 100% !important;
    max-width: 300px !important; /* Constrain max-width for buttons in mobile */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources-thabet-app-security__section {
    padding: 60px 0;
  }
  .page-resources-thabet-app-security__section-title {
    font-size: 1.8em;
  }
  .page-resources-thabet-app-security__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources-thabet-app-security__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-resources-thabet-app-security__feature-title {
    font-size: 1.5em;
  }
  .page-resources-thabet-app-security__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto 0 auto;
  }
  .page-resources-thabet-app-security__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-resources-thabet-app-security__faq-answer {
    padding: 0 20px;
  }
  .page-resources-thabet-app-security__faq-item.active .page-resources-thabet-app-security__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  /* Ensure all images are responsive */
  .page-resources-thabet-app-security img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-thabet-app-security__section,
  .page-resources-thabet-app-security__card,
  .page-resources-thabet-app-security__container,
  .page-resources-thabet-app-security__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-resources-thabet-app-security__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources-thabet-app-security__hero-image {
    filter: grayscale(70%); /* Slightly more grayscale on mobile for better text contrast */
  }
}