/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
*/


.tutorial-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.archive-hero {
  padding: 3rem 0 2rem;
}

.archive-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.filter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-right: 0.25rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid #ccc;
  color: inherit;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.filter-reset {
  opacity: 0.4;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.tutorial-card.hidden {
  display: none;
}

.card-inner {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-inner:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #f0f0f0;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-type-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  font-weight: 600;
}

.card-type-badge.video   { background: #e63946; color: #fff; }
.card-type-badge.written { background: #2a9d8f; color: #fff; }

.card-body {
  padding: 1.1rem;
}

.card-title {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.card-excerpt {
  font-size: 0.82rem;
  color: #666;
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.5rem;
  border-radius: 2rem;
}

.tag.medium { background: #e0f4f2; color: #2a9d8f; }
.tag.phase  { background: #fde8ea; color: #e63946; }

/* Single tutorial */

.tutorial-single {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.tutorial-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.tutorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tutorial-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin: 0 0 0.6rem;
}

.loom-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.loom-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.tutorial-content {
  line-height: 1.75;
  font-size: 1rem;
}

.tutorial-single .tutorial-excerpt {
  font-size: 0.88rem !important;
  color: #666;
  margin-top: 1rem;
  line-height: 1.6;
}
.chapter-item {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chapter-item:last-child {
  border-bottom: none;
}

.chapter-item:hover {
  background: #f0faf9;
}

.chapter-time {
  color: #2a9d8f;
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  flex-shrink: 0;
  text-decoration: underline;
}

.chapter-item.chapter-active {
  background: #e0f4f2;
}

.chapter-item.chapter-active .chapter-time {
  font-weight: 700;
}
.card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}