/**
 * 🎀 Template "Dễ Thương" — v2
 * Chuyển từ Tailwind reference → Vanilla CSS
 * 
 * THIẾT KẾ MỚI:
 * ─ Header: Nền xanh navy đậm #163a8a, text trắng
 * ─ User button: Nền trắng, text xanh
 * ─ Hero: Background blobs (xanh/vàng/xanh lá), title bold KHÔNG italic
 * ─ Button 1: FILLED xanh navy, Button 2: OUTLINE xanh navy
 * ─ Filter: Mỗi lớp MÀU KHÁC NHAU, có ảnh icon, bo tròn 16px
 * ─ Cards: Thumbnail nền pastel, price xanh navy, tags đa sắc
 * ─ Footer: Xanh navy, KHÔNG bo tròn top, Zalo = trắng
 * ─ Font: Be Vietnam Pro
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --dt-navy: #163a8a;
    --dt-navy-hover: #0f2d6e;
    --dt-navy-800: #1e3a6e;
    --dt-accent: #2563eb;
    --dt-text: #1e293b;
    --dt-text-gray: #64748b;
    --dt-text-muted: #94a3b8;
    --dt-bg: #f8fafc;
    --dt-white: #ffffff;
    --dt-border: #e2e8f0;
    --dt-border-light: #f1f5f9;
    --dt-shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --dt-shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --dt-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --dt-radius: 16px;
    --dt-radius-lg: 20px;
    --dt-radius-pill: 999px;
    --font-main: 'Be Vietnam Pro', -apple-system, sans-serif;

    /* Override base */
    --primary: #163a8a;
    --primary-hover: #0f2d6e;
    --primary-light: #ebf5ff;
}

/* ============================================================
   BODY
============================================================ */
.cute-body {
    font-family: var(--font-main) !important;
    color: var(--dt-text);
    background: var(--dt-bg) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.cute-body h1,
.cute-body h2,
.cute-body h3,
.cute-body h4,
.cute-body h5,
.cute-body h6 {
    font-family: var(--font-main) !important;
    color: var(--dt-text);
}

/* Custom scrollbar */
.cute-body::-webkit-scrollbar {
    width: 8px;
}

.cute-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cute-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cute-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
   HEADER — Nền navy đậm #163a8a, chữ trắng
============================================================ */
.cute-header {
    background: var(--dt-navy) !important;
    color: var(--dt-white) !important;
    border-bottom: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Row 1: Logo trái + User phải */
.cute-header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

/* Logo: icon lớn + text trắng */
.cute-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    cursor: pointer;
}

.cute-logo .logo-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    color: var(--dt-white) !important;
    font-size: 28px;
    display: flex;
    align-items: center;
}

.cute-logo .logo-icon svg {
    width: 30px;
    height: 30px;
    color: var(--dt-white);
}

.cute-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.cute-logo-title {
    font-family: var(--font-main) !important;
    font-size: 17px;
    font-weight: 700;
    color: var(--dt-white) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cute-logo-sub {
    font-family: var(--font-main) !important;
    font-size: 13px;
    font-weight: 500;
    color: #93c5fd !important;
}

/* Header right: settings gear + user button */
.cute-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Settings gear button */
.cute-settings-btn {
    background: transparent;
    border: none;
    color: var(--dt-white);
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.cute-settings-btn:hover {
    background: rgba(30, 64, 175, 0.5);
}

/* User button: NỀN TRẮNG, text xanh navy */
.cute-user-btn {
    background: var(--dt-white) !important;
    color: var(--dt-navy) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 6px 12px 6px 6px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    gap: 8px !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.cute-user-btn:hover {
    background: #eff6ff !important;
}

.cute-user-btn .user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
}

.cute-user-btn i.fa-chevron-down {
    font-size: 10px;
    opacity: 0.6;
}

.cute-user-btn span {
    display: none;
}

@media (min-width: 768px) {
    .cute-user-btn span {
        display: inline;
    }
}

.cute-login-btn {
    background: var(--dt-white) !important;
    color: var(--dt-navy) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cute-login-btn:hover {
    background: #eff6ff !important;
}

/* Row 2: Nav + Search, cùng trên nền navy */
.cute-header-row2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 16px;
}

@media (min-width: 768px) {
    .cute-header-row2 {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Nav links: text trắng, icon màu (vàng, xanh lá, cam) */
.cute-nav {
    flex-shrink: 0;
}

.cute-nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    width: 100%;
}

@media (min-width: 768px) {
    .cute-nav-list {
        width: auto;
    }
}

.cute-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--dt-white) !important;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    font-family: var(--font-main);
}

.cute-nav-link:hover {
    color: #bfdbfe !important;
    background: transparent !important;
}

/* Nav icons: mỗi icon 1 màu riêng */
.cute-nav-item:nth-child(1) .cute-nav-link i:first-child {
    color: #facc15 !important;
}

.cute-nav-item:nth-child(2) .cute-nav-link i:first-child {
    color: #4ade80 !important;
}

.cute-nav-item:nth-child(3) .cute-nav-link i:first-child {
    color: #fb923c !important;
}

.cute-chevron {
    font-size: 9px !important;
    opacity: 0.5;
    margin-left: 2px;
    color: var(--dt-white) !important;
}

/* Search bar: Trắng, pill, bên trong nền navy */
.cute-search-wrap {
    width: 100%;
}

@media (min-width: 768px) {
    .cute-search-wrap {
        width: 500px;
    }
}

.cute-search {
    background: var(--dt-white) !important;
    border: none !important;
    border-radius: var(--dt-radius-pill) !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.cute-search input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 48px 10px 20px !important;
    font-size: 14px !important;
    color: #374151 !important;
    font-family: var(--font-main) !important;
    outline: none !important;
}

.cute-search input::placeholder {
    color: #9ca3af !important;
}

.cute-search input:focus {
    box-shadow: none !important;
}

.cute-search:focus-within {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 2px rgba(96, 165, 250, 0.5) !important;
}

/* Search button: Tròn, nền xanh nhạt, icon xanh navy */
.cute-search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--dt-navy);
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cute-search-btn:hover {
    background: #bfdbfe;
}

/* Dropdown menus trên nền navy */
.cute-header .dropdown-menu {
    background: var(--dt-white) !important;
    border: 1px solid var(--dt-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--dt-shadow-lg) !important;
}

.cute-header .dropdown-menu li a {
    color: var(--dt-text) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.cute-header .dropdown-menu li a:hover {
    background: #eff6ff !important;
    color: var(--dt-navy) !important;
}

/* Theme toggle trên nền navy */
.cute-body .theme-toggle {
    background: transparent !important;
    border: none !important;
    color: var(--dt-white) !important;
}

.cute-body .theme-toggle:hover {
    background: rgba(30, 64, 175, 0.5) !important;
}

.cute-body .toggle-icon {
    color: var(--dt-white) !important;
}

/* ============================================================
   HERO — Background blobs, title BOLD (không italic), 2 nút
============================================================ */
.cute-hero {
    background: linear-gradient(135deg, #fef3c7 0%, #bfdbfe 50%, #d1fae5 100%) !important;
    padding: 48px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Background blob shapes (giả lập từ reference) */
.cute-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background-color: #93c5fd;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.cute-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: #fde68a;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.cute-hero .container {
    position: relative;
    z-index: 1;
}

.cute-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .cute-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Title: Bold, KHÔNG italic, navy đậm */
.cute-hero-title {
    font-size: clamp(32px, 5vw, 48px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: var(--dt-navy) !important;
    margin-bottom: 16px;
}

.cute-hero-title em {
    font-style: normal !important;
}

.cute-hero-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
    margin-bottom: 24px;
    max-width: 520px;
}

@media (min-width: 768px) {
    .cute-hero-desc {
        font-size: 18px;
    }
}

.cute-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
}

/* Button 1: FILLED navy, text trắng, pill, shadow */
.cute-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--dt-radius-pill);
    background: var(--dt-navy) !important;
    color: var(--dt-white) !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--dt-navy);
    transition: all 0.3s ease;
    font-family: var(--font-main);
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(22, 58, 138, 0.2), 0 4px 6px -2px rgba(22, 58, 138, 0.1);
}

.cute-btn-primary:hover {
    background: var(--dt-navy-hover) !important;
    border-color: var(--dt-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(22, 58, 138, 0.25), 0 10px 10px -5px rgba(22, 58, 138, 0.1);
    color: var(--dt-white) !important;
}

/* Button 2: OUTLINE navy, text navy, bg transparent */
.cute-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--dt-radius-pill);
    background: transparent !important;
    color: var(--dt-navy) !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--dt-navy);
    transition: all 0.3s ease;
    font-family: var(--font-main);
    cursor: pointer;
}

.cute-btn-outline:hover {
    background: #eff6ff !important;
    color: var(--dt-navy) !important;
}

.cute-btn-outline i {
    font-size: 20px;
}

/* Zalo hero CTA — attention-grabbing */
.cute-zalo-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--dt-radius-pill);
    background: linear-gradient(135deg, #0068FF 0%, #0050cc 100%) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #0068FF;
    font-family: var(--font-main);
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.5);
    animation: zalo-pulse-shake 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cute-zalo-hero-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 60%);
    animation: zalo-shine 3s ease-in-out infinite;
}

.cute-zalo-hero-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 104, 255, 0.4);
    animation: none;
    color: #fff !important;
}

.cute-zalo-hero-btn i {
    font-size: 18px;
}

@keyframes zalo-pulse-shake {

    0%,
    100% {
        transform: translateX(0) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.5);
    }

    10% {
        transform: translateX(-2px) scale(1);
    }

    20% {
        transform: translateX(2px) scale(1);
    }

    30% {
        transform: translateX(-1px) scale(1);
    }

    40% {
        transform: translateX(1px) scale(1);
    }

    50% {
        transform: translateX(0) scale(1.02);
        box-shadow: 0 0 0 8px rgba(0, 104, 255, 0);
    }
}

@keyframes zalo-shine {

    0%,
    100% {
        transform: translateX(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Hero image */
.cute-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .cute-hero-image {
        justify-content: flex-end;
    }
}

.cute-hero-image img {
    max-width: 100%;
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    border-radius: var(--dt-radius);
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.12));
    mix-blend-mode: multiply;
    animation: float 4s ease-in-out infinite;
}

/* Badge "500+ Tài liệu / mới mỗi tuần" — 2 dòng, icon xanh lá tròn */
.cute-hero-badge {
    position: absolute;
    bottom: -24px;
    left: -16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--dt-white);
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    box-shadow: var(--dt-shadow-card);
    font-family: var(--font-main);
    animation: bounceSlow 3s infinite;
}

@media (min-width: 768px) {
    .cute-hero-badge {
        left: auto;
        right: 40px;
    }
}

.cute-hero-badge-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cute-hero-badge-text {
    display: flex;
    flex-direction: column;
}

.cute-hero-badge-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.cute-hero-badge-text span {
    font-size: 12px;
    color: #6b7280;
}

/* Float animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cute-hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Blob thứ 3 (xanh lá nhạt ở giữa) */
.cute-hero-blob3 {
    position: absolute;
    top: 40%;
    right: 30%;
    width: 300px;
    height: 300px;
    background-color: #a7f3d0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   FILTER — Mỗi lớp MÀU KHÁC NHAU, icon ảnh, bo tròn 16px
============================================================ */
.cute-filter-section {
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.cute-filter-label {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    font-family: var(--font-main);
}

.cute-filter-pills {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Pill base */
.cute-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: var(--dt-radius);
    border: 2px solid transparent;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: var(--font-main);
    cursor: pointer;
    width: auto;
}

@media (max-width: 639px) {
    .cute-pill {
        width: 100%;
        justify-content: center;
    }
}

.cute-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--dt-shadow-soft);
}

/* Icon trong pill */
.cute-pill-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    background: transparent !important;
    border-radius: 0 !important;
}

.cute-pill:hover .cute-pill-icon {
    transform: scale(1.1);
}

.cute-pill-icon i {
    font-size: 20px;
}

.cute-pill-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Mỗi lớp 1 màu riêng (theo reference) */
.cute-pill:nth-child(1) {
    background: #dbeafe;
    color: #1e40af;
}

.cute-pill:nth-child(1):hover {
    border-color: #93c5fd;
    background: #bfdbfe;
}

.cute-pill:nth-child(2) {
    background: #fef3c7;
    color: #92400e;
}

.cute-pill:nth-child(2):hover {
    border-color: #fcd34d;
    background: #fde68a;
}

.cute-pill:nth-child(3) {
    background: #ccfbf1;
    color: #115e59;
}

.cute-pill:nth-child(3):hover {
    border-color: #5eead4;
    background: #99f6e4;
}

.cute-pill:nth-child(4) {
    background: #ffedd5;
    color: #9a3412;
}

.cute-pill:nth-child(4):hover {
    border-color: #fdba74;
    background: #fed7aa;
}

.cute-pill:nth-child(5) {
    background: #dcfce7;
    color: #166534;
}

.cute-pill:nth-child(5):hover {
    border-color: #86efac;
    background: #bbf7d0;
}

/* Mỗi pill có màu riêng qua :nth-child, không cần :first-child override */

/* ============================================================
   SECTIONS
============================================================ */
.cute-section {
    padding: 32px 0 48px;
    position: relative;
    z-index: 1;
}

.cute-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cute-section-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--dt-text) !important;
}

.cute-view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dt-navy);
    text-decoration: none;
    transition: all 0.2s;
}

.cute-view-all:hover {
    text-decoration: underline;
}

.cute-view-all i {
    font-size: 12px;
    transition: transform 0.2s;
}

.cute-view-all:hover i {
    transform: translateX(4px);
}

/* ============================================================
   DOCUMENT CARDS — Thumbnail nền pastel, tags đa sắc, price XANH
============================================================ */
.cute-doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .cute-doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cute-doc-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cute-doc-card {
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--dt-shadow-card);
}

.cute-doc-card:hover {
    box-shadow: var(--dt-shadow-lg);
}

/* Thumbnail: NỀN MÀU PASTEL, ảnh centered, không cover */
.cute-doc-thumb {
    position: relative;
    height: 192px;
    padding: 16px 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Mỗi card thumbnail nền khác nhau — dùng :nth-child */
.cute-doc-card:nth-child(1) .cute-doc-thumb {
    background: #fff7ed;
}

.cute-doc-card:nth-child(2) .cute-doc-thumb {
    background: #eff6ff;
}

.cute-doc-card:nth-child(3) .cute-doc-thumb {
    background: #fef2f2;
}

.cute-doc-card:nth-child(4) .cute-doc-thumb {
    background: #fefce8;
}

.cute-doc-card:nth-child(5) .cute-doc-thumb {
    background: #ecfdf5;
}

.cute-doc-card:nth-child(6) .cute-doc-thumb {
    background: #faf5ff;
}

.cute-doc-card:nth-child(7) .cute-doc-thumb {
    background: #fff7ed;
}

.cute-doc-card:nth-child(8) .cute-doc-thumb {
    background: #eff6ff;
}

.cute-doc-thumb img {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cute-doc-card:hover .cute-doc-thumb img {
    transform: scale(1.05);
}

/* Badge PREMIUM: Navy bg, yellow star */
.cute-doc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--dt-white);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cute-doc-badge.free {
    background: #16a34a;
}

.cute-doc-badge.premium {
    background: #1e3a5f;
}

.cute-doc-badge.premium i {
    color: #facc15;
}

.cute-doc-badge.hot {
    background: #dc2626;
}

.cute-doc-info {
    padding: 16px;
}

/* Tags: Đa sắc, uppercase 10px, bo tròn nhỏ */
.cute-doc-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.cute-doc-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-main);
}

/* Tag colors - varied per subject */
.cute-doc-tag.grade {
    background: #dcfce7;
    color: #166534;
}

.cute-doc-tag.subject-toan {
    background: #fef3c7;
    color: #92400e;
}

.cute-doc-tag.subject-tiengviet {
    background: #fce7f3;
    color: #9d174d;
}

.cute-doc-tag.subject-khoahoc {
    background: #dbeafe;
    color: #1e40af;
}

.cute-doc-tag.subject-amnhac {
    background: #fee2e2;
    color: #991b1b;
}

.cute-doc-tag.subject-default {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Fallback tag color */
.cute-doc-tag:not(.grade) {
    background: #f3e8ff;
    color: #6b21a8;
}

.cute-doc-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-main) !important;
    transition: color 0.2s;
}

.cute-doc-card:hover .cute-doc-title {
    color: var(--dt-navy) !important;
}

.cute-doc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.cute-doc-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}

.cute-doc-stats i {
    margin-right: 3px;
}

/* GIÁ: MÀU XANH NAVY (theo reference, KHÔNG ĐỎ) */
.cute-doc-price {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--dt-navy) !important;
}

.cute-doc-price.free {
    color: #16a34a !important;
}

.cute-doc-price.paid {
    color: var(--dt-navy) !important;
}

/* ============================================================
   FOOTER — Navy đậm, KHÔNG bo tròn top, Zalo = trắng
============================================================ */
.cute-footer {
    background: var(--dt-navy) !important;
    border-radius: 0 !important;
    margin-top: 0;
    padding: 64px 0 32px !important;
    color: #93c5fd;
}

.cute-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .cute-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cute-footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Logo footer */
.cute-footer-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    margin-bottom: 20px;
}

.cute-footer-logo .logo-icon {
    background: transparent !important;
    border: none !important;
    color: var(--dt-white) !important;
    font-size: 28px;
}

.cute-footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.cute-footer-logo-text span {
    font-family: var(--font-main);
    color: var(--dt-white);
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cute-footer-logo-text span:last-child {
    font-size: 13px;
    font-weight: 500;
    color: #93c5fd;
    text-transform: none;
    letter-spacing: 0;
}

/* Social icons: circles, bg 10% white */
.cute-social-icons {
    display: flex;
    gap: 12px;
}

.cute-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dt-white);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cute-social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer column titles */
.cute-footer-links h4,
.cute-footer-contact h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dt-white);
    margin-bottom: 24px;
    font-family: var(--font-main);
}

.cute-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cute-footer-links ul li {
    margin-bottom: 12px;
}

.cute-footer-links ul li a {
    color: #93c5fd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.cute-footer-links ul li a:hover {
    color: var(--dt-white);
}

/* Contact column */
.cute-footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cute-footer-contact ul li {
    color: #93c5fd;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cute-footer-contact ul li i {
    color: #93c5fd;
    width: 16px;
    font-size: 14px;
}

/* Chat Zalo button: NỀN TRẮNG, text navy (theo reference) */
.cute-zalo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--dt-radius-pill);
    background: var(--dt-white) !important;
    color: var(--dt-navy) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.cute-zalo-btn:hover {
    background: #eff6ff !important;
}

/* Footer bottom: border blue-800 */
.cute-footer-bottom {
    border-top: 1px solid var(--dt-navy-800);
    padding: 32px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .cute-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cute-footer-bottom p {
    color: #60a5fa;
    font-size: 12px;
    margin: 0;
}

/* ============================================================
   MISC
============================================================ */
.cute-body .zalo-float {
    background: var(--dt-navy) !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 16px rgba(22, 58, 138, 0.3) !important;
}

.cute-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--dt-navy);
    color: var(--dt-white);
    border: none;
    font-size: 17px;
    box-shadow: 0 4px 16px rgba(22, 58, 138, 0.3);
    cursor: pointer;
}

/* Ẩn default hero/filter */
.cute-body .hero,
.cute-body .filter-section {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .cute-hero {
        padding: 32px 0 60px;
    }

    .cute-hero-title {
        font-size: 30px !important;
    }

    .cute-hero-image {
        max-width: 360px;
        margin: 0 auto;
    }

    .cute-section-title {
        font-size: 20px !important;
    }

    .cute-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cute-hero-btns {
        flex-direction: column;
    }

    .cute-btn-primary,
    .cute-btn-outline {
        width: 100%;
        justify-content: center;
    }
}