/* style/resources.css */

/* Variables from shared.css will be available */
/* :root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --header-offset: 120px;
} */

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Matches body background if default is light */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__intro-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color-light); /* Light text on gradient background */
}

.page-resources__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-resources__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-resources__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box; /* Include padding/border in width */
}

.page-resources__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #ffffff; /* Overriding #FFFF00 for WCAG AA contrast compliance, as #C30808 with #FFFF00 fails */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-tertiary {
  background-color: transparent;
  color: var(--text-color-light);
  border: 2px solid var(--text-color-light);
  padding: 10px 20px;
  font-size: 0.9em;
}