.page-resources-security {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f8f9fa; /* Light background for body */
}

.page-resources-security__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Primary brand color gradient */
  color: #ffffff;
  overflow: hidden;
}

.page-resources-security__hero-content {
  max-width: 900px;
  z-index: 10;
  margin-bottom: 30px;
}

.page-resources-security__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources-security__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #e0e0e0;
}

.page-resources-security__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color, #ffc107); /* Accent color */
  color: #000000; /* Ensure contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-resources-security__cta-button:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-security__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.3;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.page-resources-security__hero-image {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.page-resources-security__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources-security__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: #007bff;
}

.page-resources-security__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-resources-security__content-section,
.page-resources-security__fairplay-section,
.page-resources-security__support-section,
.page-resources-security__cta-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-resources-security__policy-section,
.page-resources-security__transactions-section,
.page-resources-security__responsible-gaming {
  padding: 80px 0;
  background-color: #007bff;
  color: #ffffff;
}

.page-resources-security__policy-section .page-resources-security__section-title,
.page-resources-security__transactions-section .page-resources-security__section-title,
.page-resources-security__responsible-gaming .page-resources-security__section-title {
  color: #ffffff;
}

.page-resources-security__policy-section .page-resources-security__section-intro,
.page-resources-security__transactions-section .page-resources-security__section-intro,
.page-resources-security__responsible-gaming .page-resources-security__section-intro {
  color: #e0e0e0;
}

.page-resources-security__feature-grid,
.page-resources-security__policy-details,
.page-resources-security__fairplay-grid,
.page-resources-security__transactions-grid,
.page-resources-security__support-grid,
.page-resources-security__responsible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-security__feature-item,
.page-resources-security__policy-item,
.page-resources-security__fairplay-item,
.page-resources-security__transactions-item,
.page-resources-security__support-item,
.page-resources-security__responsible-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-resources-security__policy-section .page-resources-security__policy-item,
.page-resources-security__transactions-section .page-resources-security__transactions-item,
.page-resources-security__responsible-gaming .page-resources-security__responsible-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources-security__feature-item:hover,
.page-resources-security__fairplay-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.page-resources-security__policy-section .page-resources-security__policy-item:hover,
.page-resources-security__transactions-section .page-resources-security__transactions-item:hover,
.page-resources-security__responsible-gaming .page-resources-security__responsible-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.page-resources-security__feature-icon,
.page-resources-security__fairplay-icon,
.page-resources-security__transactions-icon,
.page-resources-security__responsible-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-security__feature-title,
.page-resources-security__policy-title,
.page-resources-security__fairplay-title,
.page-resources-security__transactions-title,
.page-resources-security__support-title,
.page-resources-security__responsible-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #007bff;
}

.page-resources-security__policy-section .page-resources-security__policy-title,
.page-resources-security__transactions-section .page-resources-security__transactions-title,
.page-resources-security__responsible-gaming .page-resources-security__responsible-title {
  color: #ffc107;
}

.page-resources-security__feature-description,
.page-resources-security__policy-description,
.page-resources-security__fairplay-description,
.page-resources-security__transactions-description,
.page-resources-security__support-description,
.page-resources-security__responsible-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-resources-security__policy-section .page-resources-security__policy-description,
.page-resources-security__transactions-section .page-resources-security__transactions-description,
.page-resources-security__responsible-gaming .page-resources-security__responsible-description {
  color: #e0e0e0;
}

.page-resources-security__link {
  color: #ffc107;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-resources-security__link:hover {
  color: #e0a800;
}

.page-resources-security__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(45deg, #007bff 0%, #ffc107 100%);
  color: #ffffff;
}

.page-resources-security__cta-content {
  max-width: 900px;
}

.page-resources-security__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources-security__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources-security__cta-button--large {
  padding: 18px 50px;
  font-size: 1.2em;
  background: #ffffff;
  color: #007bff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-resources-security__cta-button--large:hover {
  background: #f0f0f0;
  color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources-security__main-title {
    font-size: 2.8em;
  }

  .page-resources-security__hero-description {
    font-size: 1.1em;
  }

  .page-resources-security__hero-image-wrapper {
    width: 40%;
    height: 80%;
  }

  .page-resources-security__section-title {
    font-size: 2.2em;
  }

  .page-resources-security__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources-security__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-resources-security__main-title {
    font-size: 2.2em;
  }

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

  .page-resources-security__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-resources-security__hero-image-wrapper {
    display: none; /* Hide image on mobile for better focus on content */
  }

  .page-resources-security__container {
    padding: 30px 15px;
  }

  .page-resources-security__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-resources-security__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources-security__feature-item,
  .page-resources-security__policy-item,
  .page-resources-security__fairplay-item,
  .page-resources-security__transactions-item,
  .page-resources-security__support-item,
  .page-resources-security__responsible-item {
    padding: 20px;
  }

  .page-resources-security__feature-title,
  .page-resources-security__policy-title,
  .page-resources-security__fairplay-title,
  .page-resources-security__transactions-title,
  .page-resources-security__support-title,
  .page-resources-security__responsible-title {
    font-size: 1.3em;
  }

  .page-resources-security__feature-description,
  .page-resources-security__policy-description,
  .page-resources-security__fairplay-description,
  .page-resources-security__transactions-description,
  .page-resources-security__support-description,
  .page-resources-security__responsible-description {
    font-size: 0.9em;
  }

  .page-resources-security__content-section,
  .page-resources-security__policy-section,
  .page-resources-security__fairplay-section,
  .page-resources-security__transactions-section,
  .page-resources-security__support-section,
  .page-resources-security__responsible-gaming,
  .page-resources-security__cta-section {
    padding: 40px 0;
  }

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

  .page-resources-security__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources-security__cta-button--large {
    padding: 15px 40px;
    font-size: 1.1em;
  }

  /* Mobile image responsiveness */
  .page-resources-security img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-security__hero-image,
  .page-resources-security__feature-icon,
  .page-resources-security__fairplay-icon,
  .page-resources-security__transactions-icon,
  .page-resources-security__responsible-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-resources-security__cta-button,
  .page-resources-security__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 15px; /* Add some space if stacked */
  }

  .page-resources-security__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-security__feature-grid,
  .page-resources-security__policy-details,
  .page-resources-security__fairplay-grid,
  .page-resources-security__transactions-grid,
  .page-resources-security__support-grid,
  .page-resources-security__responsible-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-resources-security__main-title {
    font-size: 1.8em;
  }

  .page-resources-security__hero-description {
    font-size: 0.9em;
  }

  .page-resources-security__section-title {
    font-size: 1.5em;
  }

  .page-resources-security__feature-title,
  .page-resources-security__policy-title,
  .page-resources-security__fairplay-title,
  .page-resources-security__transactions-title,
  .page-resources-security__support-title,
  .page-resources-security__responsible-title {
    font-size: 1.2em;
  }

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