/* style/resources.css */

/* Base styling for the resources page content */
.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Body background is light, so use a light background for main content */
  color: #333333; /* Dark text for light background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero to create contrast */
  color: #FFFFFF; /* Light text for dark hero background */
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 1; /* Ensure content is above image */
  position: relative; /* Needed for z-index to work against absolutely positioned image */
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

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

.page-resources__hero-button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

.page-resources__hero-button--register:hover {
  background-color: #E0E0E0;
  transform: translateY(-2px);
}

.page-resources__hero-button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-resources__hero-button--login:hover {
  background-color: #e6a73c;
  transform: translateY(-2px);
}

.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; /* Cover the entire area */
  opacity: 0.3; /* Make it subtle */
  display: block;
  /* Ensure no filter is applied to images */
}

/* Intro Section */
.page-resources__intro-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.page-resources__intro-heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #000000;
}

.page-resources__intro-text {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #555555;
}

/* Articles Section */
.page-resources__articles-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.page-resources__articles-heading {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
}

.page-resources__articles-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: 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-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-resources__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Ensure no filter is applied to images */
}

.page-resources__article-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to expand */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

.page-resources__article-summary {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow summary to take available space */
}

.page-resources__article-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start; /* Align button to start */
}

.page-resources__article-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

/* Deep Dive Section */
.page-resources__deep-dive-section {
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px;
}

.page-resources__deep-dive-heading {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
}

.page-resources__deep-dive-subheading {
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000000;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

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

.page-resources__deep-dive-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-resources__deep-dive-list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources__deep-dive-list-item strong {
  color: #000000;
}

.page-resources__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-resources__strategy-card {
  background-color: #F8F8F8;
  border-left: 5px solid #FCBC45;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources__strategy-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #000000;
}

.page-resources__strategy-description {
  font-size: 0.95em;
  color: #666666;
}

/* CTA Banner */
.page-resources__cta-banner {
  background-color: #000000;
  color: #FFFFFF;
  padding: 50px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FCBC45;
}

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

.page-resources__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__deep-dive-heading,
  .page-resources__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust padding for mobile header */
  }

  .page-resources__hero-section {
    padding: 40px 15px;
    min-height: 400px;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__hero-button {
    width: 100%;
    max-width: 300px;
  }

  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__deep-dive-heading,
  .page-resources__cta-title {
    font-size: 1.8em;
  }

  .page-resources__deep-dive-subheading {
    font-size: 1.6em;
  }

  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__article-image-wrapper {
    height: 200px;
  }

  .page-resources__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum width for content images */
    min-height: 200px; /* Enforce minimum height for content images */
  }

  .page-resources__article-title {
    font-size: 1.4em;
  }

  .page-resources__deep-dive-text,
  .page-resources__deep-dive-list-item,
  .page-resources__strategy-description,
  .page-resources__cta-description {
    font-size: 0.95em;
  }

  .page-resources__cta-banner {
    padding: 40px 15px;
  }

  .page-resources__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Ensure all images within the main content area are responsive */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__deep-dive-heading,
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__deep-dive-subheading {
    font-size: 1.4em;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
}