/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

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

.page-resources-hero {
  background: linear-gradient(135deg, #1A237E 0%, #3F51B5 100%); /* Adjusted gradient for better contrast */
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources-hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFC107; /* Highlight with auxiliary color */
  font-weight: bold;
}

.page-resources-hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
  color: #E0E0E0; /* Lighter text for dark background */
}

.page-resources-hero-image {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: auto;
  opacity: 0.15;
  z-index: 0;
  filter: grayscale(100%);
}

.page-resources-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 20px;
  cursor: pointer;
  z-index: 1;
  position: relative;
}

.page-resources-btn-primary {
  background-color: #FFC107;
  color: #1A237E; /* Dark text for light button */
  border: 2px solid #FFC107;
}

.page-resources-btn-primary:hover {
  background-color: #FFA000;
  border-color: #FFA000;
  transform: translateY(-3px);
}

.page-resources-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-resources-section:nth-of-type(even) {
  background-color: #ffffff;
}

.page-resources-section-title {
  font-size: 2.5em;
  color: #1A237E;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-section-subtitle {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-about .page-resources-section-title {
  color: #1A237E;
}

.page-resources-features {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-resources-feature-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border-top: 5px solid #1A237E;
}

.page-resources-feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.page-resources-feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(26, 35, 126, 0.2));
}

.page-resources-feature-item h3 {
  font-size: 1.5em;
  color: #1A237E;
  margin-bottom: 15px;
}

.page-resources-feature-item p {
  color: #666;
  font-size: 1em;
}

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

.page-resources-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-resources-card-title {
  font-size: 1.4em;
  color: #1A237E;
  margin: 20px 20px 10px 20px;
  min-height: 60px; /* Ensure consistent height */
}

.page-resources-card-title a {
  color: #1A237E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-card-title a:hover {
  color: #FFC107;
}

.page-resources-card-description {
  color: #666;
  font-size: 0.95em;
  margin: 0 20px 20px 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-resources-card .page-resources-btn {
  margin: 0 20px 20px 20px;
  background-color: #FFC107;
  color: #1A237E;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  text-align: center;
  align-self: flex-start;
}

.page-resources-card .page-resources-btn:hover {
  background-color: #FFA000;
}

.page-resources-cta {
  background-color: #1A237E;
  color: #fff;
  padding: 80px 0;
}

.page-resources-cta-content {
  max-width: 900px;
}

.page-resources-cta .page-resources-section-title {
  color: #FFC107;
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-resources-cta p {
  font-size: 1.2em;
  color: #E0E0E0;
  margin-bottom: 40px;
}

.page-resources-btn-secondary {
  background-color: #FFC107;
  color: #1A237E;
  border: 2px solid #FFC107;
}

.page-resources-btn-secondary:hover {
  background-color: #FFA000;
  border-color: #FFA000;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-resources-hero-title {
    font-size: 2.8em;
  }
  .page-resources-section-title {
    font-size: 2em;
  }
  .page-resources-features {
    flex-direction: column;
    align-items: center;
  }
  .page-resources-feature-item {
    max-width: 90%;
  }
  .page-resources-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-hero-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-resources-hero {
    padding: 80px 0;
  }
  .page-resources-hero-title {
    font-size: 2.2em;
  }
  .page-resources-hero-description {
    font-size: 1em;
  }
  .page-resources-section {
    padding: 40px 0;
  }
  .page-resources-section-title {
    font-size: 1.8em;
  }
  .page-resources-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources-cta .page-resources-section-title {
    font-size: 2.2em;
  }
  .page-resources-cta p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources-hero-title {
    font-size: 1.8em;
  }
  .page-resources-section-title {
    font-size: 1.6em;
  }
  .page-resources-hero-description {
    font-size: 0.95em;
  }
  .page-resources-card-title {
    font-size: 1.2em;
  }
  .page-resources-card-description {
    font-size: 0.9em;
  }
  .page-resources-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}