/* Knowledge Catalog Styles */

/* --- Hero Section (Simplified) --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--nav-border-color);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--header-color);
  font-size: clamp(2.5rem, 6vw, 4rem); /* Slightly larger font size */
}

.hero-subtitle {
  color: var(--text-muted-color);
  max-width: 650px;
}

.badge-accent-soft {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
}

.hero-img-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin-top: 10px;
}

.hero-img-main {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

@media (min-width: 992px) {
  .hero-img-main {
    max-height: 330px;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* --- Catalog Section --- */
.section-header {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 5px solid var(--accent-color);
}

.section-header h2 {
  color: var(--header-color);
}
.section-header p {
  color: var(--text-muted-color);
}

.catalog-card {
  height: 100%;
  border: 1px solid var(--nav-border-color);
  border-radius: var(--border-radius-lg);
  background-color: var(--card-color);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  top: 0;
}

.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.card-img-wrapper {
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(var(--accent-color-rgb), 0.05),
    var(--card-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Decorative background circle in wrapper */
.card-img-wrapper::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: rgba(var(--accent-color-rgb), 0.1);
  border-radius: 50%;
  z-index: 0;
  transition: transform 0.4s ease;
}

.catalog-card:hover .card-img-wrapper::before {
  transform: scale(1.2);
}

.catalog-icon {
  font-size: 5rem;
  color: var(--accent-color);
  z-index: 1;
  opacity: 0.9;
}

.catalog-img {
  width: 120px;
  height: 120px;
  z-index: 1;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.catalog-card:hover .catalog-img {
  transform: scale(1.1) rotate(2deg);
}

.card-body {
  flex: 1;
  padding: 1.5rem;
  background-color: var(--card-color);
  z-index: 2;
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--header-color);
  font-size: 1.25rem;
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted-color);
  margin-bottom: 1.2rem;
  min-height: 2.7em;
  line-height: 1.5;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35em 0.75em;
  border-radius: 8px;
  background-color: rgba(var(--accent-color-rgb), 0.08);
  color: var(--text-color);
  border: 1px solid var(--nav-border-color);
}
