/* AI Featured Section Styles */

.ai-featured-section {
  padding: 60px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.ai-featured-section.pronavi-section {
  background: #001F96;
  color: white;
}

.ai-featured-section.pronavi-section .ai-featured-title {
  color: white;
}

.ai-featured-section.saasai-section {
  background: white;
  color: #333;
}

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

.ai-featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.ai-featured-title {
  color: var(--text-color);
  background: revert;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  box-shadow: none;
  border: none;
  border-left: none;
}

.ai-featured-badge {
  padding: 6px 16px;
  font-size: 16px;
  font-weight: 600;
}

.ai-featured-logo-img {
  height: 24px;
  width: auto;
  vertical-align: middle;
}

.ai-featured-logo {
  font-size: 20px;
  font-weight: bold;
}

.saasai-highlight {
  color: #06b6d4;
}

.ai-featured-link {
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.3s;
}

.ai-featured-section.pronavi-section .ai-featured-link {
  color: white;
}

.ai-featured-section.saasai-section .ai-featured-link {
  color: #333;
}

.ai-featured-link:hover {
  opacity: 0.7;
}

.ai-featured-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-featured-card {
  background: white;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s;
}

.ai-featured-card:hover {
  opacity: 0.8;
}

.ai-featured-card-image {
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
}

.ai-featured-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ai-featured-card-content {
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}

section h3.ai-featured-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-left:none;
  padding: 0;
}

.ai-featured-card-date {
  font-size: 14px;
  color: #666;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ai-featured-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ai-featured-section {
    padding: 40px 0;
  }

  .ai-featured-container {
    max-width: 100%;
    padding: 0;
  }

  .ai-featured-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 20px;
  }

  .ai-featured-link {
    align-self: flex-end;
  }

  .ai-featured-title {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
    font-size: 18px;
  }

  .ai-featured-badge,
  .ai-featured-logo {
    font-size: 14px;
  }

  .ai-featured-logo-img {
    height: 20px;
  }

  .ai-featured-cards {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
  }

  .ai-featured-cards::-webkit-scrollbar {
    display: none;
  }

  .ai-featured-card {
    flex: 0 0 calc(100vw - 100px);
    scroll-snap-align: start;
  }

  .ai-featured-card-content {
    padding: 16px;
  }

  .ai-featured-card-title {
    font-size: 14px;
  }
}
