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

/* Variables */
:root {
  --page-primary-color: #26A9E0;
  --page-secondary-color: #FFFFFF;
  --page-dark-bg: #0a0a0a; /* Body background color from shared.css */
  --page-light-text: #ffffff;
  --page-dark-text: #333333;
  --page-login-color: #EA7C07;
}

/* Base styles for the page content */
.page-resources-platform-security {
  background-color: var(--page-dark-bg);
  color: var(--page-light-text); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Header offset - applied to the first main content section or hero */
.page-resources-platform-security__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  background: linear-gradient(135deg, var(--page-primary-color) 0%, rgba(38, 169, 224, 0.7) 100%);
  color: var(--page-light-text);
  padding-bottom: 60px;
}

.page-resources-platform-security__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources-platform-security__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-light-text);
  font-weight: bold;
}

.page-resources-platform-security__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--page-light-text);
}

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

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

.page-resources-platform-security__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtle overlay */
  filter: none; /* Ensure no filter changes image color */
}

/* Buttons */
.page-resources-platform-security__btn-primary,
.page-resources-platform-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; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

.page-resources-platform-security__btn-primary {
  background-color: var(--page-primary-color);
  color: var(--page-light-text);
  border: 2px solid var(--page-primary-color);
}

.page-resources-platform-security__btn-primary:hover {
  background-color: #2197d1; /* Darker shade of #26A9E0 */
  border-color: #2197d1;
}

.page-resources-platform-security__btn-secondary {
  background-color: transparent;
  color: var(--page-light-text);
  border: 2px solid var(--page-light-text);
}

.page-resources-platform-security__btn-secondary:hover {
  background-color: var(--page-light-text);
  color: var(--page-primary-color);
}

/* Section styling */
.page-resources-platform-security__content-section {
  padding: 80px 0;
  background-color: var(--page-dark-bg);
  color: var(--page-light-text);
}

.page-resources-platform-security__section-title {
  font-size: 2.5em;
  color: var(--page-light-text);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-resources-platform-security__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid layout for cards */
.page-resources-platform-security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card styling */
.page-resources-platform-security__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-light-text); /* Light text on card */
}

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

.page-resources-platform-security__card-image {
  width: 100%;
  max-width: 250px; /* Adjust max-width for card images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  filter: none; /* Ensure no filter changes image color */
}

.page-resources-platform-security__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-light-text);
}

.page-resources-platform-security__card-link {
  text-decoration: none;
  color: var(--page-light-text);
  transition: color 0.3s ease;
}

.page-resources-platform-security__card-link:hover {
  color: var(--page-primary-color);
}

.page-resources-platform-security__card-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Video Section */
.page-resources-platform-security__video-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-dark-bg);
  color: var(--page-light-text);
}

.page-resources-platform-security__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background-color: #000; /* Fallback for video area */
}

.page-resources-platform-security__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources-platform-security__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  filter: none; /* Ensure no filter changes video appearance */
}

.page-resources-platform-security__video-description {
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-resources-platform-security__faq-list {
  max-width: 900px;
  margin: 50px auto;
}

.page-resources-platform-security__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Card-like background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-platform-security__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s ease;
  color: var(--page-light-text);
}

.page-resources-platform-security__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-platform-security__faq-heading {
  font-size: 1.2em;
  margin: 0;
  color: var(--page-light-text);
}

.page-resources-platform-security__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-primary-color);
}

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

.page-resources-platform-security__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-resources-platform-security__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-resources-platform-security__cta-final {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(38, 169, 224, 0.8) 0%, var(--page-primary-color) 100%);
  border-radius: 12px;
  margin-top: 80px;
  color: var(--page-light-text);
}

.page-resources-platform-security__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: var(--page-light-text);
}

.page-resources-platform-security__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-platform-security__hero-title {
    font-size: 2.8em;
  }
  .page-resources-platform-security__hero-description {
    font-size: 1.1em;
  }
  .page-resources-platform-security__section-title {
    font-size: 2em;
  }
  .page-resources-platform-security__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Ensure header offset is correctly applied on mobile */
  .page-resources-platform-security__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources-platform-security__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-platform-security__container {
    padding: 0 15px !important; /* Add padding for mobile content */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-platform-security__hero-title {
    font-size: 2.2em;
  }
  .page-resources-platform-security__hero-description {
    font-size: 1em;
  }
  .page-resources-platform-security__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-platform-security__btn-primary,
  .page-resources-platform-security__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-resources-platform-security__content-section {
    padding: 60px 0;
  }
  .page-resources-platform-security__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-platform-security__text-block {
    font-size: 0.95em;
  }
  .page-resources-platform-security__card {
    padding: 20px;
  }
  .page-resources-platform-security__card-title {
    font-size: 1.3em;
  }
  .page-resources-platform-security__card-description {
    font-size: 0.9em;
  }

  /* Mobile image responsiveness */
  .page-resources-platform-security img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-platform-security__hero-image-wrapper,
  .page-resources-platform-security__card,
  .page-resources-platform-security__grid,
  .page-resources-platform-security__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-resources-platform-security video,
  .page-resources-platform-security__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-platform-security__video-section,
  .page-resources-platform-security__video-container,
  .page-resources-platform-security__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources-platform-security__faq-question {
    padding: 15px 20px;
  }
  .page-resources-platform-security__faq-heading {
    font-size: 1.1em;
  }
  .page-resources-platform-security__faq-answer {
    padding: 0 20px;
  }
  .page-resources-platform-security__faq-item.active .page-resources-platform-security__faq-answer {
    padding: 15px 20px 20px;
  }

  .page-resources-platform-security__cta-title {
    font-size: 1.8em;
  }
  .page-resources-platform-security__cta-description {
    font-size: 1em;
  }
}

/* Ensure content images are not too small as per global rules */
.page-resources-platform-security__card-image {
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}
.page-resources-platform-security img {
    /* Global image size constraint */
    min-width: 200px;
    min-height: 200px;
}
/* Override for mobile if needed, but still respect minimums */
@media (max-width: 768px) {
    .page-resources-platform-security img {
        min-width: unset; /* Allow smaller display if max-width: 100% makes it smaller */
        min-height: unset;
    }
    .page-resources-platform-security__card-image {
        min-width: unset;
        min-height: unset;
    }
}

/* Contrast fix classes (as per instruction, for emergency use) */
.page-resources-platform-security__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources-platform-security__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}