/* ===================== HOMEPAGE — Hero ===================== */
.hero {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: stretch;
}

.hero-main {
  background: var(--indigo);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  cursor: pointer;
}

.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.92) 0%, rgba(17,24,39,0.4) 50%, transparent 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(13,148,136,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(124,58,237,0.25) 0%, transparent 55%),
    linear-gradient(135deg, #1A1744 0%, #0F3460 100%);
  z-index: 0;
}

.hero-deco {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 1;
  opacity: 0.15;
}

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

.hero-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.85);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero-excerpt {
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

.hero-read-btn {
  margin-left: auto;
  background: white;
  color: var(--indigo);
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s;
  cursor: pointer;
}

.hero-main:hover .hero-read-btn {
  transform: translateX(2px);
}

/* ===================== HOMEPAGE — Hero Side Cards ===================== */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-side-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  gap: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 12px rgba(49,46,129,0.07);
  flex: 1;
}

.hero-side-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(49,46,129,0.12);
}

.hero-side-color {
  width: 5px;
  flex-shrink: 0;
}

.hero-side-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.hero-side-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-side-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.35;
}

.hero-side-meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
}

/* ===================== HOMEPAGE — Trending Grid ===================== */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===================== HOMEPAGE — Quiz Section ===================== */
.quiz-section {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 32px;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quiz-card {
  border-radius: 18px;
  padding: 28px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.18s;
  text-decoration: none;
}

.quiz-card:hover { transform: translateY(-4px); }

.quiz-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* quiz-card overlay removed */

.quiz-card-content { position: relative; z-index: 2; }

.quiz-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.quiz-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
  line-height: 1.3;
  margin-bottom: 12px;
}

.quiz-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.15s;
}

.quiz-card:hover .quiz-start-btn { transform: translateX(2px); }

/* ===================== HOMEPAGE — Latest Grid ===================== */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.latest-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 12px rgba(49,46,129,0.06);
  display: flex;
  flex-direction: column;
}

.latest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(49,46,129,0.12);
}

.latest-thumb {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.latest-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.latest-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
  flex: 1;
}

.latest-excerpt {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.6;
}

/* ===================== HOMEPAGE — Responsive ===================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; margin-top: 20px; padding: 0 16px; }
  .hero-main { min-height: 340px; padding: 24px; }
  .hero-title { font-size: 24px; }
  .hero-excerpt { font-size: 13.5px; }
  .hero-side { display: none; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 20px; }
  .trending-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
}
