/* ==============================================================================
   Harshya.in — Topic Clusters & Semantic Internal Linking Architecture
   Royal Crimson Velvet & Gold Leaf Theme (WCAG 2.2 AA Compliant)
   ============================================================================== */

.topic-cluster-hub {
  margin: 48px auto 32px auto;
  max-width: 1200px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #FFFDF9 0%, #FBF8F3 100%);
  border: 1px solid #E5C8A2;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(128, 19, 33, 0.05);
  box-sizing: border-box;
}

.topic-cluster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid #E5C8A2;
  padding-bottom: 12px;
}

.topic-cluster-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-cluster-icon {
  font-size: 24px;
}

.topic-cluster-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #9E483F; /* Crimson Velvet */
  letter-spacing: -0.01em;
}

.topic-cluster-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #FAF0E1;
  color: #C17A3A; /* Kashmir Gold */
  border: 1px solid #E5C8A2;
  padding: 3px 10px;
  border-radius: 999px;
}

.topic-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.topic-pillar-card {
  background: #FFFFFF;
  border: 1px solid #E5C8A2;
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.topic-pillar-card:hover {
  transform: translateY(-2px);
  border-color: #9E483F;
  box-shadow: 0 8px 24px rgba(128, 19, 33, 0.09);
}

.topic-pillar-title {
  font-size: 14px;
  font-weight: 700;
  color: #2F4A3C; /* Deodar Pine */
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topic-pillar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-pillar-links a {
  font-size: 13px;
  color: #4A3B32;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.topic-pillar-links a:hover {
  background: #FAF0E4;
  color: #9E483F;
  text-decoration: underline;
  padding-left: 9px;
}

.topic-cluster-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #E5C8A2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #7A695C;
}

.topic-cluster-footer a {
  color: #9E483F;
  font-weight: 600;
  text-decoration: none;
}

.topic-cluster-footer a:hover {
  text-decoration: underline;
}
