.page-resources {
  padding-top: var(--header-offset, 120px);
  background-color: #f5f5f5;
  color: #333333;
  font-family: 'Arial', sans-serif;
}

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

.page-resources__hero-section {
  background: linear-gradient(135deg, #FFD700 0%, #1E90FF 100%);
  padding: 100px 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-resources__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-button--primary {
  background-color: #FFD700;
  color: #1E90FF;
  border: 2px solid #FFD700;
}

.page-resources__hero-button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-resources__hero-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.page-resources__intro-section, .page-resources__articles-section, .page-resources__why-k9cc, .page-resources__comprehensive-guides, .page-resources__safety-section, .page-resources__cta-section {
  padding: 60px 0;
  background-color: #ffffff;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #1E90FF;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
  color: #555555;
}

.page-resources__articles-section {
  background-color: #f9f9f9;
}

.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: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 200px; /* Ensure card is not too small */
}

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

.page-resources__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency, will be scaled by CSS object-fit */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size for image */
  min-height: 200px; /* Enforce minimum size for image */
}

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

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

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

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

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

.page-resources__article-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #1E90FF;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__why-k9cc {
  background-color: #e0f2f7; /* Light blue background for contrast */
}

.page-resources__why-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__why-text {
  flex: 1;
}

.page-resources__why-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-resources__why-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #444444;
  position: relative;
  padding-left: 30px;
}

.page-resources__why-list li::before {
  content: '✓';
  color: #1E90FF;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

.page-resources__why-list-item-title {
  color: #1E90FF;
}

.page-resources__why-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #1E90FF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__why-button:hover {
  background-color: #1565b3;
  transform: translateY(-3px);
}

.page-resources__why-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources__why-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources__comprehensive-guides {
  background-color: #ffffff;
}

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

.page-resources__guide-item {
  background-color: #f0f8ff; /* Lighter blue for guide items */
  border-left: 5px solid #1E90FF;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__guide-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__guide-title a {
  color: #1E90FF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__guide-title a:hover {
  color: #FFD700;
}

.page-resources__guide-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-resources__guide-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.page-resources__guide-link:hover {
  color: #1E90FF;
}

.page-resources__safety-section {
  background-color: #fef8e0; /* Light gold background for safety */
}

.page-resources__safety-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__safety-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources__safety-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources__safety-text {
  flex: 1;
}

.page-resources__safety-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-resources__safety-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #444444;
  position: relative;
  padding-left: 30px;
}

.page-resources__safety-list li::before {
  content: '✓';
  color: #FFD700;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

.page-resources__safety-list-item-title {
  color: #1E90FF;
}

.page-resources__safety-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FFD700;
  color: #1E90FF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__safety-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources__cta-section {
  background: linear-gradient(135deg, #1E90FF, #FFD700);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  margin-bottom: 0; /* Remove margin for last section */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__cta-section .page-resources__section-title {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-section .page-resources__section-text {
  color: #f0f0f0;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FFD700;
  color: #1E90FF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.3em;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
}

.page-resources__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-5px) scale(1.02);
}

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

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

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

  .page-resources__why-content, .page-resources__safety-content {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__why-image-wrapper, .page-resources__safety-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-resources__why-list, .page-resources__safety-list {
    text-align: left;
  }

  .page-resources__why-list li::before, .page-resources__safety-list li::before {
    left: 10px;
  }
}

@media (max-width: 768px) {
  .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: 80%;
    max-width: 300px;
  }

  .page-resources__intro-section, .page-resources__articles-section, .page-resources__why-k9cc, .page-resources__comprehensive-guides, .page-resources__safety-section, .page-resources__cta-section {
    padding: 40px 0;
  }

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

  .page-resources__section-text {
    font-size: 0.95em;
  }

  .page-resources__article-image, .page-resources__why-image, .page-resources__safety-image {
    height: auto; /* Allow image to scale proportionally */
    width: 100%;
  }

  .page-resources__article-card, .page-resources__guide-item {
    min-width: unset;
  }
  
  .page-resources__article-image, .page-resources__why-image, .page-resources__safety-image {
    min-width: 200px;
    min-height: 200px;
  }
}