.page-resources {
  color: #ffffff; /* Dark body background #121212 requires light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Ensure consistency with body background */
}

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

.page-resources__hero-banner {
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(135deg, #0047AB, #0a2e5c); /* Darker gradient for hero */
}

.page-resources__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  padding-top: 60px; /* Adjust if header offset is not handled by body */
}

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

.page-resources__hero-image {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources__section {
  padding: 80px 0;
}

.page-resources__section--guides,
.page-resources__section--security,
.page-resources__section--news {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
}

.page-resources__section--promotions,
.page-resources__section--payment,
.page-resources__section--faq {
  background-color: #222222; /* Another slightly lighter dark background */
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for section titles */
}

.page-resources__section-intro {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #cccccc;
}

.page-resources__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.page-resources__grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-resources__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.page-resources__btn--primary {
  background-color: #0047AB;
  color: #ffffff;
}

.page-resources__btn--primary:hover {
  background-color: #003a8a;
}

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

.page-resources__btn--secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

.page-resources__btn--white {
  background-color: #ffffff;
  color: #0047AB;
}

.page-resources__btn--white:hover {
  background-color: #f0f0f0;
  color: #003a8a;
}

.page-resources__btn--link {
  background: none;
  border: none;
  padding: 0;
  color: #FFD700;
  text-decoration: underline;
  font-weight: normal;
}

.page-resources__btn--link:hover {
  color: #ffffff;
}

.page-resources__btn--center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

.page-resources__more-info {
  text-align: center;
  margin-top: 50px;
  font-size: 15px;
  color: #b0b0b0;
}

.page-resources__text-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Promotions Section Specific Styles */
.page-resources__promo-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__promo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page-resources__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__promo-card--primary .page-resources__promo-content {
  background-color: #0047AB;
  color: #ffffff;
}

.page-resources__promo-card--secondary .page-resources__promo-content {
  background-color: #FFD700;
  color: #121212;
}

.page-resources__promo-card--secondary .page-resources__card-title {
  color: #0047AB;
}

.page-resources__promo-card--secondary p {
  color: #333333;
}

/* Security Section Specific Styles */
.page-resources__grid--security {
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.page-resources__security-feature {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.page-resources__security-feature:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__security-feature img {
  
  
  margin: 0 auto 15px auto;
  display: block;
  object-fit: contain;
}

.page-resources__feature-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-resources__security-feature p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

/* Support Section Specific Styles */
.page-resources__grid--support-channels {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.page-resources__support-channel {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__channel-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources__support-channel p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* FAQ Section Specific Styles */
.page-resources__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent background for FAQ items */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0047AB; /* Primary brand color for question background */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #003a8a;
}

.page-resources__faq-question:active {
  background: #002d6b;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff; /* White text for questions */
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Plus to X/Minus */
}

.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: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #e0e0e0;
}

/* News Section Specific Styles */
.page-resources__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-resources__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__news-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.page-resources__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__news-date {
  font-size: 13px;
  color: #999999;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 36px;
  }

  .page-resources__section-title {
    font-size: 30px;
  }

  .page-resources__grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-resources__grid--security {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-resources__grid--support-channels {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-resources__promo-card img {
    height: 220px;
  }

  .page-resources__card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-bottom: 40px;
  }

  .page-resources__hero-title {
    font-size: 28px;
    padding-top: 40px; /* Adjust for mobile header offset if needed */
  }

  .page-resources__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-resources__hero-image {
    margin: 20px auto;
  }

  .page-resources__section {
    padding: 50px 0;
  }

  .page-resources__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-resources__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-resources__grid {
    gap: 20px;
  }

  .page-resources__grid--3-cols,
  .page-resources__grid--2-cols,
  .page-resources__grid--security,
  .page-resources__grid--support-channels {
    grid-template-columns: 1fr;
  }

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card-title {
    font-size: 20px;
  }

  .page-resources__card img,
  .page-resources__promo-card img {
    
  }

  .page-resources__card p {
    font-size: 14px;
  }

  .page-resources__btn {
    padding: 10px 20px;
    font-size: 14px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__btn--center {
    max-width: 100%;
  }

  .page-resources__promo-content {
    padding: 18px;
  }

  .page-resources__security-feature,
  .page-resources__support-channel {
    padding: 20px;
  }

  .page-resources__security-feature img {
    
    
  }

  .page-resources__feature-title,
  .page-resources__channel-title {
    font-size: 18px;
  }

  .page-resources__security-feature p,
  .page-resources__support-channel p {
    font-size: 14px;
  }

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

  .page-resources__faq-question h3 {
    font-size: 16px;
  }

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

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

  .page-resources__faq-answer p {
    font-size: 14px;
  }

  .page-resources__news-card img {
    
  }

  .page-resources__news-content {
    padding: 15px;
  }

  .page-resources__news-title {
    font-size: 18px;
  }

  .page-resources__news-excerpt {
    font-size: 14px;
  }

  .page-resources__news-date {
    font-size: 12px;
  }

  /* Ensure all images are responsive and containers do not overflow */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__container,
  .page-resources__section,
  .page-resources__card,
  .page-resources__promo-card,
  .page-resources__security-feature,
  .page-resources__support-channel,
  .page-resources__news-card,
  .page-resources__faq-list,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific overrides to prevent image containers from having padding that causes overflow */
  .page-resources__hero-image,
  .page-resources__card img,
  .page-resources__promo-card img,
  .page-resources__news-card img {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}