.page-resources {
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

.page-resources__hero-section {
  position: relative;
  padding: 80px 20px 40px;
  text-align: center;
  background-color: #0A2463; /* Dark blue background for hero */
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-resources__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-resources__main-title {
  font-size: 3.2em;
  color: #E5B80B; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-resources__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-bottom: 40px; /* Space below button */
}

.page-resources__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-top: 40px; /* Space above image */
}

.page-resources__hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources__section {
  padding: 60px 20px;
  background-color: var(--dark-bg);
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__section-title {
  font-size: 2.2em;
  color: #E5B80B;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-resources__text-block {
  font-size: 1.05em;
  line-height: 1.8;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.page-resources__card {
  background-color: rgba(10, 36, 99, 0.7); /* Semi-transparent dark blue */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(229, 184, 11, 0.3);
  color: #ffffff;
}

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

.page-resources__card-image-wrapper {
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 1.5em;
  color: #E5B80B;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources__card-title a {
  color: #E5B80B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #ffffff;
}

.page-resources__card-description {
  font-size: 0.95em;
  line-height: 1.7;
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources__btn-primary {
  background-color: #E5B80B;
  color: #0A2463;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.page-resources__btn-primary:hover {
  background-color: #ffd700;
  color: #0A2463;
}

.page-resources__btn-secondary {
  background-color: #0A2463;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 1px solid #E5B80B;
  cursor: pointer;
  display: inline-block;
}

.page-resources__btn-secondary:hover {
  background-color: #E5B80B;
  color: #0A2463;
  border-color: #E5B80B;
}

.page-resources__game-item {
  text-align: center;
}

.page-resources__game-item img {
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-resources__game-title {
  font-size: 1.6em;
  color: #E5B80B;
  margin-bottom: 10px;
}

.page-resources__game-description {
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-resources__button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto; /* Push buttons to the bottom */
}

.page-resources__tips .page-resources__tip-card {
  padding: 25px;
}

.page-resources__security-support .page-resources__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-resources__security-text {
  flex: 1;
  min-width: 300px;
}

.page-resources__security-image {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-resources__security-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* FAQ Styles */
.page-resources__faq-list {
  margin-top: 30px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(10, 36, 99, 0.8);
  border: 1px solid rgba(229, 184, 11, 0.3);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #0A2463;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-resources__faq-question:hover {
  background-color: #1A3E8A;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #E5B80B;
}

.page-resources__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: #E5B80B;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background-color: rgba(10, 36, 99, 0.6);
  border-top: 1px solid rgba(229, 184, 11, 0.2);
}

.page-resources__faq-answer p {
  margin: 0;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-resources__news-card .page-resources__card-image-wrapper {
  height: 200px;
}

.page-resources__view-all-news {
  text-align: center;
  margin-top: 40px;
}

/* General image responsiveness */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General button responsiveness */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__button-group {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }

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

  .page-resources__grid-2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .page-resources__security-support .page-resources__content-wrapper {
    flex-direction: column;
  }

  .page-resources__security-image {
    min-width: unset;
    width: 100%;
    order: -1; /* Image above text on smaller screens */
  }

  .page-resources__security-text {
    min-width: unset;
    width: 100%;
  }

  .page-resources__game-item img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px 30px;
    padding-top: 0 !important; /* Ensure no double padding if shared.css sets body padding */
  }

  .page-resources__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-resources__section {
    padding: 40px 15px;
  }

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

  .page-resources__text-block {
    font-size: 0.95em;
  }

  .page-resources__grid-3-cols,
  .page-resources__grid-2-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card {
    padding: 25px;
  }

  .page-resources__card-image-wrapper {
    height: 200px;
    margin-bottom: 15px;
  }

  .page-resources__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-resources__card-description {
    font-size: 0.9em;
    margin-bottom: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources 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__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important;
    gap: 10px;
  }

  .page-resources__game-item img {
    height: 250px;
  }

  .page-resources__game-title {
    font-size: 1.4em;
  }

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

  .page-resources__security-image img {
    max-width: 100%;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
  }

  .page-resources__faq-question h3 {
    font-size: 1em;
  }

  .page-resources__faq-toggle {
    font-size: 1.8em;
    width: 28px;
    height: 28px;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }

  .page-resources__news-card .page-resources__card-image-wrapper {
    height: 180px;
  }

  /* Universal image responsive styles for content area */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers handle overflow for images/buttons */
  .page-resources__container,
  .page-resources__hero-container,
  .page-resources__card,
  .page-resources__game-item,
  .page-resources__tip-card,
  .page-resources__security-text,
  .page-resources__security-image,
  .page-resources__faq-list,
  .page-resources__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Specific override for logo-item if it were present, ensuring 80x80 */
  /* If .page-resources__logo-item existed, it would be explicitly set here: */
  /*
  .page-resources__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box;
  }
  */
}

/* Brand color usage */
.page-resources__btn-primary {
  background: #E5B80B;
  color: #0A2463;
}

.page-resources__btn-primary:hover {
  background: #ffd700;
}

.page-resources__btn-secondary {
  background: #0A2463;
  color: #ffffff;
  border: 1px solid #E5B80B;
}

.page-resources__btn-secondary:hover {
  background: #E5B80B;
  color: #0A2463;
}