/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Inherited from body via shared.css */
}

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

.page-resources__dark-bg {
  background-color: #121212;
}

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

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

.page-resources__section-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 0;
  margin-top: 0; /* Handled by shared.css for body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

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

.page-resources__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, no color change */
  display: block;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 60px 20px;
}

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

.page-resources__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #121212; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

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

.page-resources__btn-full-width {
  width: 100%;
  max-width: 400px; /* Limit max width for full width button */
}

.page-resources__btn-text {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__btn-text:hover {
  color: #e6c200;
}

.page-resources__cta-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* Guides Section */
.page-resources__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__guide-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card background */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding: 20px;
  box-shadow: none; /* No shadow */
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

.page-resources__guide-card:hover {
  transform: translateY(-5px);
}

.page-resources__guide-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-resources__guide-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  flex-grow: 1;
}

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

.page-resources__guide-title a:hover {
  color: #e6c200;
}

.page-resources__guide-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* News Section */
.page-resources__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__news-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding: 20px;
  box-shadow: none;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-resources__news-card:hover {
  transform: translateY(-5px);
}

.page-resources__news-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-resources__news-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  flex-grow: 1;
}

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

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

.page-resources__news-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 20px;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card background */
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  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: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

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

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: #ffffff;
  transform: rotate(45deg); /* Change to X shape 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 20px;
  opacity: 0;
  color: #f0f0f0;
  font-size: 16px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
}

/* Contact Support Section */
.page-resources__contact-info {
  margin-top: 30px;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  color: #cccccc;
}

.page-resources__contact-info ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.page-resources__contact-info li {
  margin-bottom: 8px;
}

.page-resources__contact-info strong {
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__hero-description {
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__hero-section {
    min-height: 400px;
    padding-top: 0 !important; /* Ensure no double padding if shared provides it */
  }
  .page-resources__hero-content {
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-resources__guides-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__guide-card,
  .page-resources__news-card {
    padding: 15px;
  }
  .page-resources__guide-title,
  .page-resources__news-title {
    font-size: 18px;
  }
  .page-resources__guide-text,
  .page-resources__news-text {
    font-size: 14px;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources__contact-info {
    font-size: 15px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__guide-card,
  .page-resources__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-resources__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-resources__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}