/* style/resources.css */
.page-resources {
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Page background, matching body */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 1;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-resources__button--register:hover {
  background-color: #f0f0f0;
  color: #000000;
}

.page-resources__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__button--login:hover {
  background-color: #e0a030;
  color: #000000;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-resources__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__article-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__article-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FCBC45;
}

.page-resources__article-summary {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more:hover {
  background-color: #e0a030;
}

.page-resources__deep-dive-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

.page-resources__deep-dive-intro {
  font-size: 1.15em;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 50px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__sub-section-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.page-resources__text-block {
  font-size: 1em;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 25px;
}

.page-resources__call-to-action {
  text-align: center;
  padding: 60px 20px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 10px;
  margin-top: 80px;
}

.page-resources__cta-text {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #FCBC45;
}

.page-resources__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-resources__button--primary:hover {
  background-color: #e0a030;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.15em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__sub-section-title {
    font-size: 1.8em;
  }
  .page-resources__cta-text {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-resources__hero-section {
    padding: 60px 20px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    max-width: 280px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-intro {
    font-size: 1em;
  }
  .page-resources__sub-section-title {
    font-size: 1.6em;
  }
  .page-resources__deep-dive-intro {
    font-size: 1em;
  }
  .page-resources__cta-text {
    font-size: 1.4em;
  }
  .page-resources__hero-image-wrapper img,
  .page-resources__article-image,
  .page-resources__deep-dive-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-resources__text-block img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__sub-section-title {
    font-size: 1.4em;
  }
  .page-resources__cta-text {
    font-size: 1.2em;
  }
}