/* style/resources.css */
.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 clears 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;
}

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

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

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

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

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-resources__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

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

.page-resources__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF; /* White background for content */
}

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

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

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

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

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

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

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

.page-resources__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-resources__button--card {
  background-color: #000000;
  color: #ffffff;
  padding: 10px 20px;
  text-align: center;
  align-self: flex-start;
  border: 2px solid #000000;
}

.page-resources__button--card:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-resources__deep-dive {
  padding: 40px 0;
}

.page-resources__deep-dive-title {
  font-size: 2.2em;
  color: #000000;
  margin-bottom: 25px;
  text-align: center;
}

.page-resources__deep-dive-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #444444;
  text-align: justify;
}

.page-resources__deep-dive-subtitle {
  font-size: 1.8em;
  color: #000000;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-resources__deep-dive p {
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

.page-resources__content-image {
  width: 100%;
  height: auto;
  min-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__conclusion-text {
  font-size: 1.1em;
  font-style: italic;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 40px;
  color: #555555;
}

.page-resources__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__deep-dive-title {
    font-size: 1.8em;
  }
  .page-resources__deep-dive-subtitle {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .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__content-area {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__deep-dive-title {
    font-size: 1.6em;
  }
  .page-resources__deep-dive-subtitle {
    font-size: 1.3em;
  }
  /* Mobile content area images must not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__content-image {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__deep-dive-title {
    font-size: 1.4em;
  }
  .page-resources__deep-dive-subtitle {
    font-size: 1.2em;
  }
  .page-resources__button {
    padding: 10px 20px;
  }
}