/* Trang chủ: lưới 6 góc + khối Kể chuyện / Học tiếng Anh (02/10/2026) — sinh bởi nhaytuong-mau-in/trang_chu_tinh_nang.py */
.category-grid-6 { grid-template-columns: repeat(3, 1fr); }
.category-grid-6 .category-card { min-height: 190px; }
.category-grid-6 .category-card:nth-child(1) { background: #ffeadf; }
.category-grid-6 .category-card:nth-child(2) { background: #dff1f0; }
.category-grid-6 .category-card:nth-child(3) { background: #fde3ea; }
.category-grid-6 .category-card:nth-child(4) { background: #e2f0dc; }
.category-grid-6 .category-card:nth-child(5) { background: #fff0b8; }
.category-grid-6 .category-card:nth-child(6) { background: #e8e5f8; }
.category-grid-6 .category-card:nth-child(3) .category-icon { color: #c2416a; }
.category-grid-6 .category-card:nth-child(4) .category-icon { color: #3f8a3a; }
.category-grid-6 .category-card:nth-child(5) .category-icon { color: #b7811a; }
.category-grid-6 .category-card:nth-child(6) .category-icon { color: #5b54a8; }
.category-grid-6 .category-card-quiz { background: #ffe6bf; }
.category-grid-6 .category-card-quiz .category-icon { color: #a45b1b; }
.category-grid-6 .category-card-sing { background: #e8f1ff; }
.category-grid-6 .category-card-sing .category-icon { color: #5964a9; }
.sing-home { padding-top: 24px; }
.sing-home-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 30px; padding: 34px 42px; border-radius: 30px; background: #e8f1ff; }
.sing-home h2 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); }
.sing-home p:not(.eyebrow) { max-width: 650px; margin: 0 0 22px; line-height: 1.65; }
.sing-home-art { position: relative; min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 20px; border-radius: 25px; background: #d0e0ff; overflow: hidden; }
.sing-home-art span { color: #5964a9; font-family: var(--display); font-size: 105px; transform: rotate(-10deg); }
.sing-home-art span:nth-child(2) { font-size: 70px; transform: translateY(-20px) rotate(12deg); }
.sing-home-art strong { position: absolute; right: 9%; bottom: 20px; padding: 10px 16px; border-radius: 12px; background: #fff; text-align: center; transform: rotate(4deg); }
.quiz-home { padding-top: 24px; }
.quiz-home-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 30px; padding: 34px 42px; border-radius: 30px; background: #fff0d7; }
.quiz-home h2 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); }
.quiz-home p:not(.eyebrow) { max-width: 650px; margin: 0 0 22px; line-height: 1.65; }
.quiz-home-art { position: relative; min-height: 220px; display: grid; place-items: center; border-radius: 25px; background: #ffda9e; overflow: hidden; }
.quiz-home-art span:first-child { font-family: var(--display); font-size: 145px; line-height: 1; color: #c86942; transform: rotate(-12deg); }
.quiz-home-art span:nth-child(2) { position: absolute; top: 22px; right: 16%; font-size: 38px; }
.quiz-home-art span:nth-child(3) { position: absolute; left: 12%; bottom: 22px; font-size: 40px; }
.quiz-home-art strong { position: absolute; right: 10%; bottom: 30px; padding: 10px 16px; border-radius: 12px; background: #fff; transform: rotate(5deg); }

.section-feat { padding-top: 24px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.feat { display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; border: 1px solid rgba(23,59,54,.08); }
.feat-kc { background: #fff3dc; }
.feat-ta { background: #dff1f0; }
.feat-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.feat-body h3 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; }
.feat-body > p { margin: 0 0 16px; color: #405b57; }
.feat-ta .eyebrow { color: var(--teal); }
.feat-list { margin: 0 0 18px; padding: 0; list-style: none; }
.feat-list li { position: relative; padding: 6px 0 6px 30px; font-size: 15px; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23173b36' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.feat-list a { color: var(--teal); font-weight: 700; }
.feat-truyen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.feat-truyen a { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(23,59,54,.1); font-size: 13.5px; font-weight: 700; transition: border-color .2s, color .2s; }
.feat-truyen a:hover { border-color: var(--coral); color: var(--coral-dark); }
.feat-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* minh hoạ phía trên mỗi thẻ */
.feat-art { position: relative; display: block; height: 290px; overflow: hidden; }
.feat-art-kc { background: radial-gradient(420px 260px at 70% 30%, #ffe1a8, transparent 70%), #ffe9c4; }
.feat-art-kc img { position: absolute; height: auto; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(23,59,54,.18); transition: transform .4s var(--ease); }
.kc-1 { width: 62%; left: 19%; top: 34px; z-index: 2; }
.kc-2 { width: 40%; left: 3%; top: 120px; transform: rotate(-7deg); }
.kc-3 { width: 40%; right: 3%; top: 108px; transform: rotate(6deg); }
.feat-art-kc:hover .kc-1 { transform: translateY(-4px) scale(1.02); }
.feat-art-kc:hover .kc-2 { transform: rotate(-10deg) translateX(-6px); }
.feat-art-kc:hover .kc-3 { transform: rotate(9deg) translateX(6px); }
.feat-play { position: absolute; z-index: 3; left: calc(19% + 16px); top: 158px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); box-shadow: 0 10px 24px rgba(206,75,53,.4); }
.feat-play svg { width: 28px; height: 28px; margin-left: 4px; fill: #fff; }
.feat-wave { position: absolute; z-index: 3; right: 24px; bottom: 18px; display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); }
.feat-wave i { width: 4px; height: 14px; border-radius: 2px; background: var(--coral); animation: song 1s ease-in-out infinite; }
.feat-wave i:nth-child(2) { animation-delay: .15s; } .feat-wave i:nth-child(3) { animation-delay: .3s; } .feat-wave i:nth-child(4) { animation-delay: .45s; } .feat-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes song { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.25); } }

.feat-art-ta { background: radial-gradient(400px 260px at 25% 30%, #bfe6e1, transparent 70%), #cdebe7; }
.ta-the { position: absolute; width: 38%; border-radius: 16px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(23,59,54,.16); background: #fff; }
.ta-the img { display: block; width: 100%; height: auto; }
.ta-the-1 { left: 5%; top: 30px; transform: rotate(-6deg); }
.ta-the-2 { left: 16%; top: 128px; transform: rotate(5deg); }
.ta-chat { position: absolute; right: 5%; top: 30px; width: 52%; display: flex; flex-direction: column; gap: 9px; padding: 16px 14px 56px; border-radius: 22px; background: #fff; box-shadow: 0 16px 34px rgba(23,59,54,.16); }
.ta-bong { max-width: 88%; padding: 8px 12px; border-radius: 16px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ta-ai { align-self: flex-start; background: #eef6f5; border-bottom-left-radius: 4px; }
.ta-be { align-self: flex-end; color: #fff; background: var(--coral); border-bottom-right-radius: 4px; }
.ta-mic { position: absolute; left: 50%; bottom: 10px; width: 40px; height: 40px; margin-left: -20px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(35,140,131,.18); animation: mic 1.8s ease-in-out infinite; }
.ta-mic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
@keyframes mic { 0%, 100% { box-shadow: 0 0 0 4px rgba(35,140,131,.2); } 50% { box-shadow: 0 0 0 10px rgba(35,140,131,.08); } }

@media (max-width: 960px) {
  .category-grid-6 { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .quiz-home-inner { grid-template-columns: 1fr; }
  .sing-home-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .category-grid-6 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-grid-6 .category-card { min-height: 0; padding: 18px 16px; }
  .category-grid-6 .category-card h3 { font-size: 18px; }
  .category-grid-6 .category-card p { font-size: 13px; }
  .category-grid-6 .category-icon { width: 50px; height: 50px; border-radius: 16px; }
  .category-grid-6 .category-icon svg { width: 26px; height: 26px; }
  .category-grid-6 .category-card .arrow { display: none; }
  .section-feat { padding-top: 8px; }
  .feat { border-radius: 24px; }
  .feat-art { height: 220px; }
  .kc-1 { top: 24px; } .kc-2 { top: 92px; } .kc-3 { top: 84px; }
  .feat-play { left: calc(19% + 10px); top: 84px; width: 50px; height: 50px; }
  .ta-the-1 { top: 22px; } .ta-the-2 { top: 100px; }
  .ta-chat { top: 18px; width: 56%; padding: 12px 10px 50px; gap: 7px; }
  .ta-bong { font-size: 12px; padding: 6px 10px; }
  .feat-body { padding: 22px 20px 24px; }
  .feat-actions .btn { flex: 1 1 100%; }
  .quiz-home-inner { padding: 24px; }
  .quiz-home-art { min-height: 180px; }
  .sing-home-inner { padding: 24px; }
  .sing-home-art { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) { .feat-wave i, .ta-mic { animation: none; } }
