/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #fafaf8;
  color: #2a2a2a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: #485fc7; text-decoration: none; }
a:hover { color: #363636; }
img { max-width: 100%; height: auto; }

/* Container */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }

/* Section */
.section { padding: 2.5rem 1.5rem; }

/* Typography */
.title, .subtitle { line-height: 1.25; }
.title { font-weight: 600; margin-bottom: 1rem; }
.subtitle { font-weight: 400; color: #4a4a4a; margin-bottom: 1rem; }
.title.is-1 { font-size: 2.5rem; }
.title.is-3 { font-size: 1.5rem; }
.title.is-4 { font-size: 1.25rem; }
.subtitle.is-5 { font-size: 1.1rem; }
.subtitle.is-6 { font-size: 0.95rem; }

/* Utilities */
.has-text-centered { text-align: center; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

/* Button */
.button {
  display: inline-block;
  padding: 0.5em 1em;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
  color: #363636;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.button:hover { border-color: #b5b5b5; }
.button.is-medium { font-size: 1.15rem; padding: 0.6em 1.2em; }
.button.is-light { background: #f5f5f5; border-color: transparent; }
.button.is-light:hover { background: #eee; }

/* Grid */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: -0.75rem;
}
.column {
  padding: 0.75rem;
  flex: none;
  width: 50%;
}
.column.is-one-third-desktop { width: 50%; }
.column.is-half-tablet { width: 50%; }
.column.is-half-mobile { width: 50%; }

/* Hero */
.hero { background: linear-gradient(135deg, #f0ede6 0%, #fafaf8 100%); }
.hero-body { padding: 3rem 1.5rem; }
.hero-title { font-weight: 300; letter-spacing: 0.05em; color: #2a2a2a; }
.hero-subtitle { color: #666; max-width: 500px; margin: 0 auto; }

/* Category nav */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fafaf8;
  border-bottom: 1px solid #e8e4dc;
  padding: 0.75rem 1.5rem;
}
.category-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.category-badge {
  display: inline-block;
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b5a3a;
  background: #f0ede6;
  border: 1px solid #e8e4dc;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.category-badge:hover { background: #6b5a3a; color: #fff; }

/* Category title */
.category-title {
  color: #6b5a3a;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e8e4dc;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Video cards */
.video-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eae6de;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.video-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.video-card .card-content { padding: 0.75rem 1rem 1rem; flex: 1; }
.video-card .card-title { font-size: 0.95rem; color: #2a2a2a; font-weight: 500; margin-bottom: 0.4rem; line-height: 1.3; }
.video-card .card-desc { font-size: 0.8rem; color: #666; line-height: 1.5; }

/* Subscribe button */
.subscribe-btn { background-color: #c4302b; color: white; border: none; font-weight: 500; }
.subscribe-btn:hover { background-color: #a02520; color: white; }

/* Breadcrumb */
.breadcrumb ul {
  display: flex;
  list-style: none;
  gap: 0.5em;
  font-size: 0.9rem;
}
.breadcrumb li + li::before { content: "/"; color: #b5b5b5; margin-right: 0.5em; }
.breadcrumb a { color: #485fc7; }
.breadcrumb .is-active a { color: #363636; pointer-events: none; }

/* Content (subpage body text) */
.content p { margin-bottom: 1em; }

/* Share button */
.share-btn { background: #f0ede6; color: #6b5a3a; border-color: #e8e4dc; }
.share-btn:hover { background: #6b5a3a; color: #fff; }

/* Footer */
.footer {
  background-color: #f5f3ee;
  border-top: 1px solid #e8e4dc;
  color: #595959;
  padding: 2rem 1.5rem;
}

/* Responsive */
@media (min-width: 769px) {
  .column.is-half-tablet { width: 50%; }
}
@media (min-width: 1024px) {
  .column.is-one-third-desktop { width: 33.3333%; }
}
@media (max-width: 768px) {
  .section { padding: 1.5rem 1rem; }
  .title.is-1 { font-size: 1.8rem; }
  .category-badges {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-badges::-webkit-scrollbar { display: none; }
}
