.home { max-width: 1600px; margin: 0 auto; padding: 18px 28px 48px; color: #0a0a0a; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* HERO */
.home-hero { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: stretch; background: linear-gradient(135deg, #eff6ff, #dbeafe); border-radius: 18px; padding: 24px 28px; overflow: hidden; position: relative; margin-bottom: 32px; border: 1px solid #bfdbfe; }
.home-hero-content { display: flex; flex-direction: column; justify-content: center; }
.home-hero-titlerow { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.home-hero-flag { font-size: 32px; line-height: 1; }
.home-hero-title { font-size: 2rem; font-weight: 900; margin: 0; color: #0a0a0a; letter-spacing: -0.03em; }
.home-hero-desc { color: #475569; font-size: 14px; line-height: 1.5; margin: 4px 0 18px; }
.home-hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.home-stat { display: flex; align-items: center; gap: 10px; }
.home-stat-icon { width: 38px; height: 38px; border-radius: 10px; background: white; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.home-stat-n { font-size: 18px; font-weight: 900; color: #0a0a0a; line-height: 1; letter-spacing: -0.02em; }
.home-stat-l { font-size: 11px; color: #64748b; font-weight: 600; margin-top: 2px; }

.home-hero-image { position: relative; background: linear-gradient(180deg, #93c5fd 0%, #bfdbfe 60%, #d1fae5 100%); border-radius: 14px; overflow: hidden; min-height: 200px; }
.home-hero-flag-large { display: none; }
.home-hero-lake { position: absolute; inset: 0; }
.home-tree { position: absolute; bottom: 30%; font-size: 38px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); }
.home-cabin { position: absolute; right: 12%; bottom: 32%; font-size: 38px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); }
.home-flagpole::after { content: '🇫🇮'; position: absolute; right: 30%; top: 12%; font-size: 28px; }

/* Sections */
.home-section { margin-bottom: 32px; }
.home-section-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.home-h2 { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 14px; color: #0a0a0a; }
.home-section-h .home-h2 { margin: 0; }
.home-section-more { color: #2563eb; font-size: 13px; font-weight: 600; text-decoration: none; }
.home-section-more:hover { text-decoration: underline; }

/* 3 WAYS */
.home-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .home-ways { grid-template-columns: 1fr; } }
.home-way { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; text-decoration: none; color: #0a0a0a; display: flex; flex-direction: column; transition: all 200ms; min-height: 230px; }
.home-way:hover { border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(15,23,42,0.06); transform: translateY(-2px); color: #0a0a0a; text-decoration: none; }
.home-way-1 { background: linear-gradient(135deg, #eff6ff, #ffffff); }
.home-way-2 { background: linear-gradient(135deg, #ecfdf5, #ffffff); }
.home-way-3 { background: linear-gradient(135deg, #f5f3ff, #ffffff); }
.home-way-num { font-size: 1.1rem; font-weight: 900; color: #1d4ed8; margin-bottom: 8px; }
.home-way-2 .home-way-num { color: #047857; }
.home-way-3 .home-way-num { color: #7c3aed; }
.home-way-body { flex: 1; position: relative; }
.home-way-body p { color: #475569; font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.home-way-btn { background: rgba(37,99,235,0.1); color: #1d4ed8; border: none; padding: 7px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.home-way-2 .home-way-btn { background: rgba(5,150,105,0.1); color: #047857; }
.home-way-3 .home-way-btn { background: rgba(124,58,237,0.1); color: #7c3aed; }
.home-way-img { position: absolute; right: 0; top: 0; font-size: 50px; opacity: 0.9; line-height: 1; }
.home-way-tag { white-space: normal; }
.home-tag-dim { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 9.5px; font-weight: 800; background: rgba(124,58,237,0.1); color: #7c3aed; padding: 2px 6px; border-radius: 4px; text-align: center; }

.home-way-progress { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.home-way-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 18px; font-weight: 900; color: #047857; margin-bottom: 6px; }
.home-way-bar { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 5px; }
.home-way-bar-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); transition: width 600ms; }
.home-way-progress-l { font-size: 11.5px; color: #475569; font-weight: 600; }

.home-way-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.home-way-tag { background: rgba(37,99,235,0.08); color: #1d4ed8; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.home-way-3 .home-way-tag { background: rgba(124,58,237,0.08); color: #7c3aed; }

/* TOPICS */
.home-topics { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
@media (max-width: 1180px) { .home-topics { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .home-topics { grid-template-columns: repeat(2, 1fr); } }
.home-topic { background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 10px 14px; text-align: center; text-decoration: none; color: #0a0a0a; transition: all 150ms; }
.home-topic:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(15,23,42,0.05); transform: translateY(-1px); color: #0a0a0a; text-decoration: none; }
.home-topic-img { width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.home-topic-vn { font-size: 13px; font-weight: 800; color: #0a0a0a; line-height: 1.2; }
.home-topic-fi { font-size: 10.5px; color: #94a3b8; font-weight: 600; margin-top: 2px; line-height: 1.2; }
.home-topic-cnt { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: #2563eb; font-weight: 700; margin-top: 6px; }

/* CASES */
.home-cases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1180px) { .home-cases { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .home-cases { grid-template-columns: repeat(2, 1fr); } }
.home-case { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
.home-case-num { font-size: 12px; color: #64748b; font-weight: 700; margin-bottom: 4px; }
.home-case-name { color: #10b981; font-weight: 800; }
.home-case:nth-child(2) .home-case-name { color: #f59e0b; }
.home-case:nth-child(3) .home-case-name { color: #ef4444; }
.home-case:nth-child(4) .home-case-name { color: #3b82f6; }
.home-case:nth-child(5) .home-case-name { color: #8b5cf6; }
.home-case:nth-child(6) .home-case-name { color: #ec4899; }
.home-case-form { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.2rem; font-weight: 900; color: #0a0a0a; letter-spacing: -0.01em; line-height: 1.1; }
.home-case-vn { color: #475569; font-size: 12px; margin-top: 4px; }
.home-case-usage { color: #94a3b8; font-size: 10.5px; margin-top: 6px; line-height: 1.4; }

/* WIDGETS */
.home-widgets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 32px; }
@media (max-width: 1100px) { .home-widgets { grid-template-columns: 1fr; } }
.home-widget { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.home-widget-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.home-widget-h h3 { font-size: 14.5px; font-weight: 800; margin: 0; color: #0a0a0a; }
.home-widget-more { font-size: 11.5px; color: #2563eb; font-weight: 600; text-decoration: none; }
.home-widget-body { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; flex: 1; }

.home-w-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; }
.home-w-thumb { width: 30px; height: 30px; border-radius: 8px; background: #eff6ff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.home-w-thumb-r { background: #fef3c7; }
.home-w-info { min-width: 0; text-decoration: none; color: inherit; }
.home-w-info:hover { color: inherit; text-decoration: none; }
.home-w-fi { font-size: 13px; font-weight: 800; color: #0a0a0a; letter-spacing: -0.01em; }
.home-w-info:hover .home-w-fi { color: #2563eb; }
.home-w-vi { color: #64748b; font-size: 11.5px; margin-top: 1px; }
.home-w-audio, .home-w-fav { background: transparent; border: none; width: 26px; height: 26px; border-radius: 6px; color: #94a3b8; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.home-w-audio:hover, .home-w-fav:hover { background: #eff6ff; color: #2563eb; }
.home-w-review-btn { background: #fef3c7; color: #92400e; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none; }
.home-w-review-btn:hover { background: #fde68a; color: #92400e; text-decoration: none; }

.home-widget-btn { display: block; text-align: center; background: #eff6ff; color: #2563eb; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; text-decoration: none; transition: all 120ms; }
.home-widget-btn:hover { background: #dbeafe; color: #2563eb; text-decoration: none; }
.home-widget-btn-primary { background: #2563eb; color: white; }
.home-widget-btn-primary:hover { background: #1d4ed8; color: white; }
.home-widget-btn-warn { background: #fef3c7; color: #92400e; }
.home-widget-btn-warn:hover { background: #fde68a; color: #92400e; }

.home-continue { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; padding: 8px 12px; background: #f8fafc; border-radius: 12px; margin-bottom: 12px; }
.home-continue-img { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.home-continue-topic { font-size: 11.5px; color: #94a3b8; font-weight: 600; }
.home-continue-sub { font-size: 15px; font-weight: 900; color: #0a0a0a; letter-spacing: -0.01em; }
.home-continue-fi { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #2563eb; font-weight: 600; }
.home-continue-prog { margin-bottom: 12px; }
.home-continue-prog-n { display: flex; justify-content: space-between; font-size: 12px; color: #475569; margin-bottom: 5px; }
.home-continue-prog-n strong { color: #0a0a0a; font-weight: 800; }
.home-continue-pct { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; color: #10b981; }
.home-continue-bar { height: 7px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.home-continue-bar-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); transition: width 600ms; }

/* QUICK */
.home-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 980px) { .home-quick { grid-template-columns: repeat(2, 1fr); } }
.home-quick-card { background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: #0a0a0a; transition: all 150ms; }
.home-quick-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(15,23,42,0.05); transform: translateY(-1px); color: #0a0a0a; text-decoration: none; }
.home-quick-1 { background: linear-gradient(135deg, #eff6ff, #ffffff); }
.home-quick-2 { background: linear-gradient(135deg, #ecfdf5, #ffffff); }
.home-quick-3 { background: linear-gradient(135deg, #fef3c7, #ffffff); }
.home-quick-4 { background: linear-gradient(135deg, #f5f3ff, #ffffff); }
.home-quick-icon { width: 44px; height: 44px; border-radius: 12px; background: white; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.home-quick-title { font-size: 14.5px; font-weight: 800; color: #0a0a0a; letter-spacing: -0.01em; }
.home-quick-desc { color: #64748b; font-size: 11.5px; margin-top: 1px; }
.home-quick-arrow { font-size: 16px; color: #94a3b8; font-weight: 700; }

@media (max-width: 740px) {
	.home { padding: 14px 14px 32px; }
	.home-hero { grid-template-columns: 1fr; padding: 20px; }
	.home-hero-image { display: none; }
	.home-hero-title { font-size: 1.5rem; }
	.home-h2 { font-size: 1.1rem; }
}

/* Chọn theo sách (home) */
.home-books-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.home-book { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; text-decoration: none; transition: all 150ms; }
.home-book:hover { border-color: #c7d2fe; box-shadow: 0 4px 14px rgba(37,99,235,0.1); transform: translateY(-2px); text-decoration: none; }
.home-book-ic { font-size: 28px; flex-shrink: 0; }
.home-book-tx { display: flex; flex-direction: column; line-height: 1.3; }
.home-book-tx b { font-size: 15px; font-weight: 800; color: #0f172a; }
.home-book-tx small { font-size: 12px; color: #64748b; }
