.page-resources {
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #111; /* Ensure consistency with body */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources__hero-banner {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for banner */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css sets body padding-top */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  z-index: 3;
}

.page-resources__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Use accent color for title */
  line-height: 1.2;
}

.page-resources__description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure responsiveness for buttons */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* Important for button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold accent */
  color: #1A202C; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e0b800;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for dark background */
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-resources__section {
  padding: 80px 20px;
  text-align: center;
}

.page-resources__dark-section {
  background-color: #1A202C;
  color: #f0f0f0;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Accent color for titles */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-resources__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #cccccc; /* Slightly lighter for intro text on dark background */
}

.page-resources__guides {
  background-color: #1A202C; /* Dark background */
  color: #f0f0f0;
}

.page-resources__guide-grid,
.page-resources__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__guide-card,
.page-resources__news-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card background */
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

.page-resources__guide-card:hover,
.page-resources__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-image,
.page-resources__news-image {
  width: 100%;
  height: 200px; /* Fixed height for images in cards */
  overflow: hidden;
}

.page-resources__guide-image img,
.page-resources__news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources__guide-card h3,
.page-resources__news-card h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  color: #FFD700; /* Accent color for card titles */
}

.page-resources__guide-card h3 a,
.page-resources__news-card h3 a {
  text-decoration: none;
  color: #FFD700;
  transition: color 0.3s ease;
}

.page-resources__guide-card h3 a:hover,
.page-resources__news-card h3 a:hover {
  color: #ffffff;
}

.page-resources__guide-excerpt,
.page-resources__news-excerpt {
  padding: 0 20px;
  margin-bottom: 15px;
  flex-grow: 1;
  color: #cccccc;
}

.page-resources__news-date {
  padding: 0 20px;
  font-size: 0.9em;
  color: #999999;
  margin-bottom: 5px;
}

.page-resources__read-more {
  display: inline-block;
  margin: 0 20px 20px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__read-more:hover {
  color: #ffffff;
}

.page-resources__security-rg {
  background-color: #1A202C;
  color: #f0f0f0;
}

.page-resources__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__security-text {
  flex: 1;
}

.page-resources__security-text p {
  color: #cccccc;
  margin-bottom: 20px;
}

.page-resources__security-subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__security-image {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  max-width: 400px;
  height: 300px; /* Fixed height for image */
  overflow: hidden;
  border-radius: 8px;
}

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

.page-resources__faq {
  background-color: #111; /* Body background color */
  color: #f0f0f0;
  padding-bottom: 80px;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Dark card background */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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;
  padding: 0 20px; /* Adjusted padding */
  opacity: 0;
  color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensures it can expand to fit content */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for open answer */
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: transparent; /* Transparent for dark card */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
  color: #f0f0f0;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15); /* Lighter hover for dark card */
}

.page-resources__faq-question:active {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #FFD700; /* Accent color for questions */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Accent color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for minus sign visual */
}

.page-resources__news-updates {
  background-color: #1A202C;
  color: #f0f0f0;
}

.page-resources__view-all-news {
  margin-top: 50px;
}

.page-resources__view-all-news .page-resources__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-resources__view-all-news .page-resources__btn-primary:hover {
  background-color: #e0b800;
  color: #1A202C;
}

.page-resources__contact-support {
  background-color: #111; /* Body background color */
  color: #f0f0f0;
  padding-bottom: 80px;
}

.page-resources__contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__contact-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  color: #f0f0f0;
}

.page-resources__contact-subtitle {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__contact-item p {
  color: #cccccc;
  margin-bottom: 25px;
}

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

.page-resources__contact-item .page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

@media (max-width: 1024px) {
  .page-resources__hero-banner {
    height: 500px;
  }
  .page-resources__main-title {
    font-size: 2.5em;
  }
  .page-resources__description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__security-content {
    flex-direction: column;
  }
  .page-resources__security-image {
    flex: none;
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    height: 400px;
  }
  .page-resources__hero-content {
    padding: 15px;
  }
  .page-resources__main-title {
    font-size: 2em;
  }
  .page-resources__description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 12px 25px;
    width: 100% !important; /* Button responsive override */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources__section {
    padding: 60px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__guide-grid,
  .page-resources__news-grid,
  .page-resources__contact-info {
    gap: 20px;
    grid-template-columns: 1fr; /* Single column for cards on mobile */
  }
  .page-resources__guide-card h3,
  .page-resources__news-card h3 {
    font-size: 1.2em;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 1.1em;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__container,
  .page-resources__guide-card,
  .page-resources__news-card,
  .page-resources__contact-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__security-image {
    height: auto; /* Allow height to be auto on mobile */
  }
}