/* style/resources.css */

/* --- General Styles --- */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-resources__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-resources__section-description a {
  color: #FFFF00; /* Register/Login font color */
  text-decoration: underline;
}

.page-resources__section-description a:hover {
  color: #C30808; /* Register/Login button color */
}

/* --- Hero Section --- */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply for both desktop and mobile if shared.css doesn't pad body */
  padding-bottom: 80px;
  background-color: #0a0a0a; /* Ensure hero has a background if image is transparent */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Make background image subtle */
}

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

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

.page-resources__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

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

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

.page-resources__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

.page-resources__card {
  background-color: #1a1a1a; /* Darker background for cards */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Light text for dark card background */
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  color: #017439; /* Brand green for titles */
}

.page-resources__card-title a {
  color: #017439;
  text-decoration: none;
}

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

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

.page-resources__card-link {
  display: inline-block;
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

.page-resources__card-link:hover {
  text-decoration: underline;
  color: #C30808;
}

/* --- Introduction Section --- */
.page-resources__introduction-section {
  background-color: #0d0d0d; /* Slightly lighter dark background */
  padding: 60px 0;
}

.page-resources__introduction-section .page-resources__section-title {
  color: #FFFFFF;
}

.page-resources__introduction-section .page-resources__section-description {
  color: #e0e0e0;
}

/* --- Guides Section --- */
.page-resources__guides-section {
  background-color: #0a0a0a;
  padding: 60px 0;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
  background-color: #0d0d0d;
  padding: 60px 0;
}

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

.page-resources__faq-item {
  background-color: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Brand green for question background */
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #005a2e;
}

.page-resources__faq-question h3 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.2em;
}