/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #000000; /* Matching body background for consistency */
}

.page-resources__hero-section {
  position: relative;
  background: linear-gradient(135deg, #0056b3, #ffc107);
  padding: 180px 20px 80px; /* Adjusted padding-top for fixed header */
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-resources__hero-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #000000; /* Dark text for light button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__hero-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-resources__section {
  padding: 60px 0;
  background-color: #000000; /* Consistent dark background */
}

.page-resources__section--introduction {
  background-color: #0d0d0d;
}

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

.page-resources__heading {
  font-size: 2.5em;
  color: #ffc107; /* Auxiliary color for headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

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

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-resources__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-resources__card-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.page-resources__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffc107;
  font-weight: bold;
}

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

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

.page-resources__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-resources__card-button {
  display: inline-block;
  background-color: #0056b3; /* Primary color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  text-align: center;
  margin-top: auto; /* Push button to bottom */
}

.page-resources__card-button:hover {
  background-color: #004085;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-resources__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  border-left: 5px solid #ffc107;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__list-item strong {
  color: #ffc107;
}

.page-resources__button {
  display: inline-block;
  background-color: #ffc107;
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-resources__button--center {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  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: rgba(255, 255, 255, 0.1);
  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: rgba(255, 255, 255, 0.15);
}

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

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffc107;
  border-color: #ffc107;
}

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

.page-resources__contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: center;
}

.page-resources__contact-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  border-left: 5px solid #0056b3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__contact-item strong {
  color: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__heading {
    font-size: 2em;
  }
  .page-resources__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 120px 15px 60px; /* Adjusted padding-top for mobile fixed header */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__paragraph {
    font-size: 0.95em;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__grid--two-columns {
    grid-template-columns: 1fr;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__card-description {
    font-size: 0.9em;
  }
  .page-resources__card-button {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-resources__list-item {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 1.1em;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources__contact-item {
    font-size: 1em;
    padding: 15px 20px;
  }

  /* Mobile image specific styles */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}