/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Matches body background */
}

/* Fixed navigation bar spacing for the first content module */
.page-resources__hero-banner {
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 60px;
}

/* Mobile adjustment for fixed navigation bar spacing */
@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 100px; /* Adjust for mobile fixed header */
    padding-bottom: 40px;
  }
}

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

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

.page-resources__main-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffc107; /* Highlight with auxiliary color */
}

.page-resources__hero-description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #e0e0e0;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffc107; /* Highlight with auxiliary color */
}

.page-resources__section-description {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
}

.page-resources__btn-primary {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 30px;
  background-color: #007bff; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background for contrast */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-resources__card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.page-resources__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 22px;
  font-weight: 600;
  padding: 20px 25px 10px;
  color: #ffc107; /* Auxiliary color for titles */
  flex-grow: 0;
}

.page-resources__card-text {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 25px 15px;
  color: #e0e0e0;
  flex-grow: 1; /* Allows text to take up remaining space */
}

.page-resources__card-readmore {
  display: inline-block;
  padding: 0 25px 20px;
  color: #007bff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-resources__card-readmore:hover {
  color: #0056b3;
}

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

.page-resources__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
}

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

.page-resources__news-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.page-resources__news-card-image {
  width: 200px; /* Fixed width for news image */
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.page-resources__news-card-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.page-resources__news-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffc107;
}

.page-resources__news-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-resources__faq-section {
  padding-bottom: 80px;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  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-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.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: #ffc107; /* Auxiliary color for questions */
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #007bff; /* Primary color 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: 30px;
  height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffc107;
  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;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker background for answer */
  color: #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large max-height */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}

.page-resources__contact-cta {
  padding-top: 80px;
  padding-bottom: 100px;
  text-align: center;
}

.page-resources__contact-cta .page-resources__section-title {
  color: #ffffff;
}

.page-resources__contact-cta .page-resources__section-description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 40px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__grid-3-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-resources__grid-2-col {
    grid-template-columns: 1fr;
  }
  .page-resources__news-card-image {
    width: 160px;
  }
  .page-resources__news-card-title {
    font-size: 18px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__main-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-resources__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-resources__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-resources__grid-3-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__card-title {
    font-size: 18px;
    padding: 15px 20px 8px;
  }
  .page-resources__card-text {
    font-size: 14px;
    padding: 0 20px 12px;
  }
  .page-resources__card-readmore {
    padding: 0 20px 15px;
  }
  .page-resources__news-card {
    flex-direction: column;
  }
  .page-resources__news-card-link {
    flex-direction: column;
  }
  .page-resources__news-card-image {
    width: 100%;
    height: 200px;
  }
  .page-resources__news-card-content {
    padding: 15px 20px;
  }
  .page-resources__news-card-title {
    font-size: 17px;
  }
  .page-resources__news-card-text {
    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: 26px;
    height: 26px;
  }
  .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: 14px;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__contact-cta {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  /* Responsive image fallback for all images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 28px;
  }
  .page-resources__section-title {
    font-size: 24px;
  }
  .page-resources__news-card-image {
    height: 160px;
  }
  .page-resources__news-card-title {
    font-size: 16px;
  }
  .page-resources__news-card-text {
    font-size: 13px;
  }
}