/* style/resources.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #1A1A1A;
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff; /* Default white background for the body */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background: var(--background-dark);
  color: var(--text-light);
  overflow: hidden;
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding-bottom: 30px;
}

.page-resources__hero-image {
  width: 100%;
  max-width: 800px; /* Constrain image width for better composition */
  margin-top: 30px; /* Space between content and image */
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--dark {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.page-resources__cta-button--dark:hover {
  background: #0d0d0d;
  color: var(--primary-color);
  border-color: #e6c200;
}

.page-resources__section {
  padding: 80px 0;
  background-color: #ffffff;
  color: var(--text-dark);
}

.page-resources__section.page-resources__dark-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources__section.page-resources__dark-section .page-resources__section-title {
  color: var(--primary-color);
}

.page-resources__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__section.page-resources__dark-section .page-resources__section-intro {
  color: #f0f0f0;
}

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

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

.page-resources__card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-resources__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-resources__card p {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-resources__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-resources__content-block {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
}

.page-resources__content-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-resources__content-block-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__content-block p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__legal-info {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #ccc;
}

.page-resources__promo-card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-resources__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__promo-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-resources__promo-card p {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-resources__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-resources__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources__guide-item {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}