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

/* Base styles for the page */
.page-resources-security-guide {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-resources-security-guide__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-resources-security-guide__sub-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold brand color for subtitles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-security-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

/* Hero Section */
.page-resources-security-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #000080; /* Dark blue background for hero */
}

.page-resources-security-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources-security-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the image to make text pop */
  filter: none; /* Ensure no filter changes image color */
}

.page-resources-security-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-resources-security-guide__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources-security-guide__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Buttons */
.page-resources-security-guide__btn-primary,
.page-resources-security-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-security-guide__btn-primary {
  background-color: #FFD700;
  color: #000080; /* Dark blue text for gold button */
  border: 2px solid #FFD700;
}

.page-resources-security-guide__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  color: #000050;
}

.page-resources-security-guide__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-security-guide__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

/* Section common styles */
.page-resources-security-guide__introduction-section,
.page-resources-security-guide__data-protection-section,
.page-resources-security-guide__responsible-gambling-section,
.page-resources-security-guide__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for content sections */
  color: #ffffff;
}

.page-resources-security-guide__features-section,
.page-resources-security-guide__fair-play-section,
.page-resources-security-guide__support-section,
.page-resources-security-guide__cta-section {
  padding: 60px 0;
  background-color: #000080; /* Dark blue background for alternating sections */
  color: #ffffff;
}

/* Grid layout for features/cards */
.page-resources-security-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-security-guide__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark blue */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-resources-security-guide__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-security-guide__card-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-resources-security-guide__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  filter: none; /* Ensure no filter changes image color */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  object-fit: cover;
}

/* Content rows for text and image */
.page-resources-security-guide__content-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-resources-security-guide__text-column {
  flex: 1;
  min-width: 300px;
}

.page-resources-security-guide__image-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources-security-guide__image-full {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  filter: none; /* Ensure no filter changes image color */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  object-fit: cover;
}

/* FAQ Section */
.page-resources-security-guide__faq-list {
  margin-top: 40px;
}

.page-resources-security-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources-security-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #000080; /* Dark blue for question background */
  color: #FFD700;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-resources-security-guide__faq-question:hover {
  background-color: #000060;
}

.page-resources-security-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

.page-resources-security-guide__faq-item.active .page-resources-security-guide__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure override */
  padding: 20px;
}

/* CTA Section */
.page-resources-security-guide__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-resources-security-guide__cta-section .page-resources-security-guide__btn-primary {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-security-guide__hero-title {
    font-size: 3em;
  }

  .page-resources-security-guide__hero-description {
    font-size: 1.2em;
  }

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

  .page-resources-security-guide__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-security-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-security-guide__hero-section {
    min-height: 450px;
    padding: 60px 15px;
  }

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

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

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

  .page-resources-security-guide__sub-title {
    font-size: 1.4em;
  }

  .page-resources-security-guide__introduction-section,
  .page-resources-security-guide__features-section,
  .page-resources-security-guide__data-protection-section,
  .page-resources-security-guide__fair-play-section,
  .page-resources-security-guide__responsible-gambling-section,
  .page-resources-security-guide__support-section,
  .page-resources-security-guide__faq-section,
  .page-resources-security-guide__cta-section {
    padding: 40px 0;
  }

  .page-resources-security-guide__container {
    padding: 0 15px;
  }

  .page-resources-security-guide__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-security-guide__content-row {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources-security-guide__text-column,
  .page-resources-security-guide__image-column {
    min-width: unset;
    width: 100%;
  }

  /* Mobile image responsiveness */
  .page-resources-security-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-security-guide__hero-image-wrapper,
  .page-resources-security-guide__image-column {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-resources-security-guide__btn-primary,
  .page-resources-security-guide__btn-secondary,
  .page-resources-security-guide a[class*="button"],
  .page-resources-security-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources-security-guide__cta-buttons,
  .page-resources-security-guide__button-group,
  .page-resources-security-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources-security-guide__cta-buttons {
    display: flex;
    flex-direction: column;
  }

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

  .page-resources-security-guide__faq-answer {
    padding: 15px;
  }
}

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

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

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

  .page-resources-security-guide__sub-title {
    font-size: 1.2em;
  }

  .page-resources-security-guide__btn-primary,
  .page-resources-security-guide__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}