.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

/* Fixed Header Spacing: Assuming shared.css sets padding-top on body */
.page-resources__hero-section {
  padding-top: 0; /* Important: Avoid double padding if body already has it */
  padding-bottom: 60px;
  background-color: #1A202C; /* Main brand color for hero background */
  text-align: center;
}

.page-resources__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Gold accent color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__description {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1A202C; /* Dark text on gold */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-resources__section {
  padding: 80px 0;
  background-color: #121212; /* Dark background matching body */
}

.page-resources__section:nth-of-type(even) {
  background-color: #1A202C; /* Alternating dark section background */
}

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

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

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

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text on dark card */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-resources__card img {
  width: 100%;
  height: 200px; /* Consistent height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-resources__card--news img {
  height: 250px;
}

.page-resources__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 10px;
}

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

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

.page-resources__card-text {
  font-size: 16px;
  color: #e0e0e0;
  flex-grow: 1; /* Allow text to grow and fill space */
  margin-bottom: 20px;
}

.page-resources__card-link {
  display: inline-block;
  background-color: #1A202C; /* Dark button on card */
  color: #FFD700; /* Gold text on dark button */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #FFD700;
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__card-link:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Security Guide Section Specific Styles */
.page-resources__security-guide .page-resources__content-block {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-resources__content-text {
  flex: 1;
  text-align: left;
}

.page-resources__content-text p {
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-resources__content-text a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__sub-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__content-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section Styles */
.page-resources__faq-section {
  background-color: #1A202C; /* Darker brand color for FAQ section */
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Card-like background for FAQ items */
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #2a3447; /* Slightly lighter dark background for question */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question:hover {
  background-color: #3a455c;
}

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

.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; /* Prevents icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

.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;
  background-color: #2a3447; /* Match question background */
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
}

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

.page-resources__faq-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: underline;
  margin-top: 10px;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-resources__why-choose-us .page-resources__card--highlight {
  background-color: rgba(255, 255, 255, 0.08); /* Consistent card background */
  border: 1px solid #FFD700; /* Gold border for highlight cards */
  padding: 30px;
}

.page-resources__why-choose-us .page-resources__card--highlight img {
   /* Slightly smaller images for these cards */
  object-fit: contain; /* Contain for icons/logos */
  margin-bottom: 15px;
}

.page-resources__why-choose-us .page-resources__card--highlight .page-resources__card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__why-choose-us .page-resources__card--highlight .page-resources__card-text {
  font-size: 17px;
  color: #f0f0f0;
}


/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 42px;
  }

  .page-resources__description {
    font-size: 17px;
  }

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

  .page-resources__section-intro {
    font-size: 17px;
  }

  .page-resources__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .page-resources__grid--three-cols {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller tablets */
  }

  .page-resources__security-guide .page-resources__content-block {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__content-text {
    flex: none;
    width: 100%;
  }

  .page-resources__content-image {
    flex: none;
    width: 80%; /* Constrain image width */
    margin-top: 30px;
  }
  .page-resources__sub-title {
    font-size: 22px;
  }
}

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

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important; /* Button responsiveness */
    width: 100% !important;
  }

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

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

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

  .page-resources__grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-resources__grid--three-cols {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card img {
    
    max-width: 100% !important; /* Image responsiveness */
    width: 100% !important;
    height: auto !important;
  }

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

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

  .page-resources__card-text {
    font-size: 15px;
  }

  .page-resources__card-link {
    padding: 8px 15px;
    font-size: 14px;
    max-width: 100% !important; /* Button responsiveness */
    width: 100% !important;
  }

  .page-resources__security-guide .page-resources__content-block {
    gap: 20px;
  }

  .page-resources__content-image {
    width: 100%;
    margin-top: 20px;
  }

  .page-resources__content-image img {
    max-width: 100% !important; /* Image responsiveness */
    width: 100% !important;
    height: auto !important;
  }

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

  /* FAQ Mobile Styles */
  .page-resources__faq-question {
    padding: 15px 20px;
  }

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

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

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

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

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

  .page-resources__why-choose-us .page-resources__card--highlight {
    padding: 25px;
  }

  .page-resources__why-choose-us .page-resources__card--highlight img {
    
    max-width: 100% !important; /* Image responsiveness */
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__why-choose-us .page-resources__card--highlight .page-resources__card-title {
    font-size: 20px;
  }

  .page-resources__why-choose-us .page-resources__card--highlight .page-resources__card-text {
    font-size: 15px;
  }
  
  /* Ensure all image containers are responsive */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed padding-left/right here as container already handles it */
  }

  /* Specific fix for button groups if any */
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to button containers */
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}