html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* AI Technologies List Styling */
.ai-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.section-description {
  font-size: 1.1rem;
  color: #666;
}

/* Grid Layout for Cards */
.ai-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Flexible grid with auto columns */
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ai-item {
  display: flex;
  flex-direction: column;
}

.ai-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure all cards stretch to equal height */
  height: 100%; /* Make sure the card takes up full height of its container */
  padding: 1.25rem;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ai-info {
  flex-grow: 1; /* This makes sure the content fills the available height */
}

.ai-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ai-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ai-title a:hover {
  color: #0066cc;
}

.ai-summary {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  color: #0066cc;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #004499;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Links section inside the card */
.ai-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto; /* Push links to the bottom */
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.ai-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #0066cc;
  background: #f3f7fc;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ai-link:hover {
  background: #0066cc;
  color: #fff;
}
