/* style/resources.css */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure main content area matches body background if needed, or is transparent */
  padding-top: var(--header-offset, 120px); /* Desktop padding for fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.page-resources__hero-content {
  text-align: center;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

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

/* General Section Styling */
.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__comprehensive-guide-section,
.page-resources__support-cta-section,
.page-resources__cta-banner {
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #e0e0e0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Article Grid */
.page-resources__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__article-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  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 12px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.3;
}

.page-resources__card-summary {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-resources__card-category {
  font-size: 0.85em;
  color: #FCBC45;
  font-weight: 500;
  margin-bottom: 15px;
  display: block;
}

.page-resources__card-read-more {
  display: inline-block;
  margin-top: auto; /* Pushes button to the bottom */
  padding: 10px 20px;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Image Text Block */
.page-resources__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 60px auto;
  text-align: left;
  max-width: 1000px;
}

.page-resources__image-text-block--reversed {
  flex-direction: row-reverse;
}

.page-resources__block-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__block-content {
  flex: 1;
  padding: 20px 0;
}

.page-resources__block-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__block-text {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-resources__block-cta {
  display: inline-block;
  padding: 12px 25px;
  font-size: 0.95em;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* CTA Banner */
.page-resources__cta-banner {
  background-color: rgba(252, 188, 69, 0.1); /* Light transparent version of login color */
  padding: 80px 0;
}

.page-resources__banner-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__banner-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-resources__banner-cta {
  display: inline-block;
  padding: 18px 40px;
  font-size: 1.2em;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Button Styles */
.page-resources__btn-primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light background */
  border: 2px solid #FCBC45;
}

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

.page-resources__btn-secondary {
  background-color: #ffffff; /* Register button color */
  color: #000000; /* Dark text for white background */
  border: 2px solid #ffffff;
}

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }

  .page-resources__section-title,
  .page-resources__banner-title {
    font-size: 2em;
  }

  .page-resources__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__image-text-block--reversed {
    flex-direction: column;
  }

  .page-resources__block-image {
    max-width: 80%;
  }
}

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

  .page-resources__hero-section {
    padding: 60px 0;
  }

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

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

  .page-resources__hero-cta {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-resources__section-title,
  .page-resources__banner-title {
    font-size: 1.8em;
  }

  .page-resources__section-text,
  .page-resources__banner-description,
  .page-resources__block-text {
    font-size: 0.95em;
  }

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

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

  .page-resources__card-summary {
    font-size: 0.9em;
  }

  .page-resources__card-image {
    height: 200px;
  }

  .page-resources__block-title {
    font-size: 1.6em;
  }

  .page-resources__block-image {
    max-width: 100%;
    min-width: 200px;
  }

  /* Ensure all images within .page-resources are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }

  .page-resources__comprehensive-guide-section .page-resources__image-text-block .page-resources__block-image {
    width: 100%; /* Ensure images take full width in mobile */
    height: auto;
    max-width: 100%; /* Explicitly set max-width to prevent overflow */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
  }
  .page-resources__article-card .page-resources__card-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}