/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.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, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-resources__button--register:hover {
  background-color: #e0e0e0;
  transform: translateY(-3px);
}

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

.page-resources__button--login:hover {
  background-color: #e6a73c;
  transform: translateY(-3px);
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let text stand out */
}

.page-resources__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__deep-dive-section,
.page-resources__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-resources__introduction-title,
.page-resources__articles-title,
.page-resources__deep-dive-title,
.page-resources__cta-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__introduction-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.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: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-resources__article-heading {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.page-resources__article-heading a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__article-summary {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.9em;
  text-align: center;
  align-self: flex-start;
}

.page-resources__button--read-more:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-resources__deep-dive-subtitle {
  font-size: 2em;
  color: #000000;
  margin-top: 50px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__deep-dive-intro,
.page-resources__deep-dive-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__cta-section {
  background-color: #FCBC45;
  color: #000000;
  text-align: center;
  padding: 80px 20px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #000000;
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__button--join-now {
  background-color: #000000;
  color: #FFFFFF;
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-resources__button--join-now:hover {
  background-color: #333333;
  transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__introduction-title,
  .page-resources__articles-title,
  .page-resources__deep-dive-title,
  .page-resources__cta-title {
    font-size: 2.2em;
  }
  .page-resources__deep-dive-subtitle {
    font-size: 1.8em;
  }
  .page-resources__article-image {
    height: 180px;
  }
}

@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.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    max-width: 300px;
  }
  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__deep-dive-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }
  .page-resources__introduction-title,
  .page-resources__articles-title,
  .page-resources__deep-dive-title,
  .page-resources__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__deep-dive-subtitle {
    font-size: 1.5em;
    margin-top: 40px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px; /* Maintain minimum size */
    max-width: 100%; /* Prevent overflow */
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }

  /* Critical: Ensure images do not overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__introduction-title,
  .page-resources__articles-title,
  .page-resources__deep-dive-title,
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__deep-dive-subtitle {
    font-size: 1.3em;
  }
  .page-resources__article-heading {
    font-size: 1.3em;
  }
}