.dd-home {
    --dd-ink: #132238;
    --dd-muted: #66758a;
    --dd-line: #dfe6ef;
    --dd-accent: #2256d8;
    --dd-accent-dark: #163d9d;
    --dd-surface: #fff;
    --dd-soft: #f3f7fc;
    display: grid;
    gap: 1.25rem;
    padding-bottom: 2rem;
    color: var(--dd-ink);
}

.dd-home h1,
.dd-home h2,
.dd-home h3 { letter-spacing: -.025em; }
.dd-home .text-secondary { color: var(--dd-muted) !important; }

/* Hero: desktop height locked to 250-280px */
.dd-hero {
    position: relative;
    isolation: isolate;
    min-height: 250px;
    max-height: 350px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(132, 161, 255, .26);
    border-radius: 1.55rem;
    background:
        radial-gradient(circle at 12% 12%, rgba(87, 201, 255, .34), transparent 30%),
        radial-gradient(circle at 58% 105%, rgba(176, 99, 255, .32), transparent 42%),
        radial-gradient(circle at 86% 2%, rgba(255, 219, 105, .18), transparent 28%),
        linear-gradient(128deg, #071c4f 0%, #143e98 47%, #5427a7 100%);
    box-shadow: 0 22px 55px rgba(20, 42, 112, .22);
    color: #fff;
}

.dd-hero::before,
.dd-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.dd-hero::before {
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 58%, transparent 100%);
}

.dd-hero::after {
    width: 310px;
    height: 310px;
    right: 18%;
    bottom: -230px;
    border-radius: 50%;
    background: rgba(110, 225, 255, .20);
    filter: blur(3px);
}

.dd-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(190px, .72fr) 300px;
    height: 100%;
    align-items: stretch;
    gap: .85rem;
    padding: 10px;
}

.dd-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 12px 8px 12px 18px;
}

.dd-hero__eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .42rem;
    margin-bottom: .42rem;
    padding: .32rem .62rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.11);
    box-shadow: inset 0 1px rgba(255,255,255,.15);
    color: #e8f5ff;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.dd-hero__eyebrow > span {
    color: #ffe26a;
    font-size: .72rem;
}

.dd-hero__title {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.05vw, 3.18rem);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.055em;
}

.dd-hero__title span {
    display: block;
    margin-top: .12rem;
    background: linear-gradient(90deg, #7ee7ff 0%, #d4c4ff 48%, #ffe376 100%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dd-hero__lead {
    max-width: 610px;
    margin: .46rem 0 .55rem;
    color: rgba(238, 245, 255, .82);
    font-size: .79rem;
    line-height: 1.42;
}

.dd-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .52rem;
}

.dd-hero__actions .btn {
    min-height: 34px;
    padding: .45rem .78rem;
    border-radius: .72rem;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.dd-hero__actions .btn:hover { transform: translateY(-2px); }

.dd-hero__primary {
    border-color: #ffe16a;
    background: linear-gradient(135deg, #ffe978, #ffc94d);
    box-shadow: 0 8px 22px rgba(255, 201, 77, .30);
    color: #14244b;
}

.dd-hero__primary:hover {
    border-color: #fff0a3;
    background: linear-gradient(135deg, #fff094, #ffd363);
    color: #14244b;
}

.dd-hero__secondary {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.10);
    color: #fff;
    backdrop-filter: blur(9px);
}

.dd-hero__secondary:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.17);
    color: #fff;
}

.dd-hero__stats {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0;
    margin-top: .52rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: .72rem;
    background: rgba(7, 24, 68, .22);
    backdrop-filter: blur(10px);
}

.dd-hero__stat {
    position: relative;
    display: flex;
    min-width: 76px;
    flex-direction: column;
    padding: .35rem .58rem;
}

.dd-hero__stat:not(:last-child)::after {
    position: absolute;
    width: 1px;
    top: 22%;
    right: 0;
    bottom: 22%;
    background: rgba(255,255,255,.16);
    content: "";
}

.dd-hero__stat strong {
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.1;
}

.dd-hero__stat span {
    margin-top: .08rem;
    color: rgba(235,243,255,.67);
    font-size: .56rem;
    font-weight: 700;
}

.dd-hero__visual {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}

.dd-hero__visual::before {
    position: absolute;
    width: 205px;
    height: 205px;
    left: 50%;
    bottom: -42px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.035));
    box-shadow: 0 20px 50px rgba(4, 20, 60, .22);
    content: "";
    transform: translateX(-50%);
    backdrop-filter: blur(4px);
}

.dd-hero-character {
    position: relative;
    z-index: 2;
    display: block;
    width: auto;
    height: 255px;
    max-width: 100%;
    margin-bottom: -8px;
    filter: drop-shadow(0 16px 18px rgba(4, 16, 48, .26));
}

.dd-hero__visual-chip {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: .34rem;
    padding: .4rem .56rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: .72rem;
    background: rgba(255,255,255,.90);
    box-shadow: 0 10px 24px rgba(7, 23, 65, .20);
    color: #20305d;
    font-size: .60rem;
    font-weight: 850;
    white-space: nowrap;
    backdrop-filter: blur(12px);
}

.dd-hero__visual-chip span {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 6px;
    background: #5e67f3;
    color: #fff;
    font-size: .65rem;
}

.dd-hero__visual-chip--top {
    top: 18px;
    right: -4px;
}

.dd-hero__visual-chip--bottom {
    bottom: 22px;
    left: -10px;
}

.dd-hero-ad {
    position: relative;
    display: flex;
    width: 300px;
    height: 250px;
    min-width: 0;
    align-self: center;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 1.05rem;
    background: rgba(255,255,255,.96);
    box-shadow: 0 13px 35px rgba(4, 19, 58, .24);
}

.dd-hero-ad__link { display: block; width: 100%; height: 100%; }

.dd-hero-ad__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dd-hero-ad__html {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.dd-hero-ad__html iframe,
.dd-hero-ad__html ins { max-width: 100%; }

.dd-hero-ad__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .25rem;
    background: linear-gradient(145deg, #f8fafc, #edf3fb);
    color: #718096;
    text-align: center;
}

.dd-hero-ad__placeholder strong { color: #334155; font-size: .88rem; }
.dd-hero-ad__placeholder span { font-size: .68rem; font-weight: 800; letter-spacing: .06em; }

@media (max-width: 1199.98px) {
    .dd-hero__grid { grid-template-columns: minmax(0, 1.42fr) minmax(170px, .62fr) 280px; }
    .dd-hero-ad { width: 280px; }
    .dd-hero__title { font-size: clamp(1.88rem, 3vw, 2.8rem); }
    .dd-hero-character { height: 245px; }
}

@media (max-width: 991.98px) {
    .dd-hero { height: auto; max-height: none; }
    .dd-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(190px, .75fr); min-height: 270px; }
    .dd-hero-ad { grid-column: 1 / -1; width: 300px; height: 250px; justify-self: center; }
}

@media (max-width: 767.98px) {
    .dd-hero__grid { grid-template-columns: 1fr; padding: .8rem; }
    .dd-hero__content { align-items: center; padding: 1rem .75rem .2rem; text-align: center; }
    .dd-hero__title { font-size: clamp(2.1rem, 9vw, 3.2rem); }
    .dd-hero__lead { max-width: 560px; }
    .dd-hero__actions, .dd-hero__stats { justify-content: center; }
    .dd-hero__visual { min-height: 270px; }
    .dd-hero-character { height: 280px; }
    .dd-hero__visual-chip--top { right: 12%; }
    .dd-hero__visual-chip--bottom { left: 12%; }
}

@media (max-width: 575.98px) {
    .dd-hero { border-radius: 1.15rem; }
    .dd-hero__grid { gap: .4rem; padding: .6rem; }
    .dd-hero__content { padding: .8rem .4rem .1rem; }
    .dd-hero__eyebrow { max-width: 100%; white-space: normal; }
    .dd-hero__title { font-size: clamp(1.95rem, 10.5vw, 2.8rem); }
    .dd-hero__lead { font-size: .86rem; }
    .dd-hero__actions { width: 100%; flex-direction: column; }
    .dd-hero__actions .btn { width: 100%; }
    .dd-hero__stats { width: 100%; }
    .dd-hero__stat { min-width: 0; flex: 1; }
}

/* Continue learning */ .dd-continue {display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 1.75rem; border-radius: 1.3rem; background: #122844; box-shadow: 0 14px 36px rgba(18, 40, 68, .16); color: #fff; } .dd-continue .text-secondary {color: rgba(255, 255, 255, .7) !important; } .dd-continue .btn {border-color: #fff; background: #fff; color: #122844; font-weight: 750; } /* Main two-column layout */ .dd-home-layout {display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 1.25rem; align-items: stretch; } .dd-home-main, .dd-home-sidebar {min-width: 0; } .dd-content-panel, .dd-new-lessons, .dd-levels-section {border: 1px solid var(--dd-line); border-radius: 1.5rem; background: var(--dd-surface); box-shadow: 0 12px 35px rgba(23, 52, 91, .07); } .dd-content-panel {display: flex; height: 100%; flex-direction: column; padding: 1.5rem; background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); } .dd-content-section {min-width: 0; } .dd-content-divider {height: 1px; margin: 1.5rem 0; background: #e7edf5; } .dd-section-heading {display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; } .dd-section-heading h2 {font-size: 1.45rem; color: #9A5A00; font-weight: 800; } .dd-section-heading p {font-size: .9rem; } /* Popular categories */ .dd-section-heading--categories {align-items: center; margin-bottom: 1rem; } .dd-all-categories-link {display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; padding: .55rem .8rem; border: 1px solid #cfd9e8; border-radius: .75rem; background: #fff; color: var(--dd-accent); font-size: .8rem; font-weight: 800; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; } .dd-all-categories-link:hover {transform: translateY(-2px); border-color: var(--dd-accent); background: #f5f8ff; color: var(--dd-accent-dark); } .dd-content-section .row > div {display: flex; } .dd-category-card {--category-accent: #2563eb; --category-soft: #eff6ff; position: relative; display: flex; width: 100%; min-height: 178px; flex-direction: column; overflow: hidden; padding: 1rem 1.05rem; border: 1px solid color-mix(in srgb, var(--category-accent) 24%, #fff); border-top: 4px solid var(--category-accent); border-radius: 1.1rem; background: linear-gradient(145deg, #fff 0%, var(--category-soft) 100%); box-shadow: 0 8px 22px rgba(31, 49, 85, .07); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; } .dd-category-card::before {position: absolute; width: 100px; height: 100px; top: -52px; right: -42px; border-radius: 50%; background: color-mix(in srgb, var(--category-accent) 18%, transparent); content: ""; pointer-events: none; } .dd-category-card:hover {transform: translateY(-4px); border-color: var(--category-accent); box-shadow: 0 16px 34px rgba(31, 49, 85, .13); } .dd-category-card__header {position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: .8rem; padding-bottom: .75rem; border-bottom: 1px solid #e4eaf2; } .dd-category-card__header h3 {min-width: 0; margin: 0; color: #5a67d2; font-weight: 800; line-height: 1.25; } .dd-category-card__body {position: relative; z-index: 1; flex: 1; padding: .8rem 0; } .dd-category-card__body p {display: -webkit-box; overflow: hidden; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; } .dd-card-arrow {display: grid; width: 30px; height: 30px; place-items: center; border-radius: 999px; background: var(--category-accent); color: #fff; font-size: 1rem; transition: transform .2s ease; } .dd-category-card:hover .dd-card-arrow {transform: translateX(3px); } .dd-category-meta {position: relative; z-index: 1; display: flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid #e4eaf2; color: var(--category-accent); font-size: .76rem; font-weight: 800; } .dd-content-section .row > div:nth-child(8n + 1) .dd-category-card {--category-accent: #2563eb; --category-soft: #eff6ff; } .dd-content-section .row > div:nth-child(8n + 2) .dd-category-card {--category-accent: #7c3aed; --category-soft: #f5f3ff; } .dd-content-section .row > div:nth-child(8n + 3) .dd-category-card {--category-accent: #db2777; --category-soft: #fdf2f8; } .dd-content-section .row > div:nth-child(8n + 4) .dd-category-card {--category-accent: #ea580c; --category-soft: #fff7ed; } .dd-content-section .row > div:nth-child(8n + 5) .dd-category-card {--category-accent: #059669; --category-soft: #ecfdf5; } .dd-content-section .row > div:nth-child(8n + 6) .dd-category-card {--category-accent: #0891b2; --category-soft: #ecfeff; } .dd-content-section .row > div:nth-child(8n + 7) .dd-category-card {--category-accent: #4f46e5; --category-soft: #eef2ff; } .dd-content-section .row > div:nth-child(8n + 8) .dd-category-card {--category-accent: #be123c; --category-soft: #fff1f2; } /* Featured lessons */ .dd-section-heading--featured {align-items: center; margin-bottom: 1rem; } .dd-featured-action {display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; padding: .55rem .8rem; border: 1px solid #cfd9e8; border-radius: .75rem; background: #fff; color: var(--dd-accent); font-size: .8rem; font-weight: 800; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; } .dd-featured-action:hover {transform: translateY(-2px); border-color: var(--dd-accent); background: #f5f8ff; color: var(--dd-accent-dark); } .dd-featured-card {--featured-accent: #1877f2; --featured-soft: #f8fbff; position: relative; display: flex; width: 100%; min-height: 156px; overflow: hidden; border: 1px solid #e4eaf2; border-bottom: 2px solid var(--featured-accent); border-radius: 1rem; background: linear-gradient(180deg, #ffffff 0%, var(--featured-soft) 100%); box-shadow: 0 6px 18px rgba(31, 49, 85, .055); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease; } .dd-featured-card::before {display: none;} .dd-featured-card:hover {transform: translateY(-3px); border-color: color-mix(in srgb, var(--featured-accent) 38%, #dfe6ef); border-left-color: var(--featured-accent); background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--featured-soft) 88%, #ffffff) 100%); box-shadow: 0 12px 26px rgba(31, 49, 85, .10); } .dd-featured-card__body {position: relative; z-index: 1; display: flex; width: 100%; min-width: 0; flex-direction: column; padding: 1rem 1.05rem; } .dd-featured-card__title {position: relative; display: block; min-height: 1.35em; margin: 0 0 .55rem; padding: 0 2.4rem; color: #3949AB; font-size: 1rem; font-weight: 800; line-height: 1.35; text-align: center; } .dd-featured-card__number {position: absolute; top: 50%; left: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--featured-accent); font-size: .82rem; font-weight: 900; line-height: 1; transform: translateY(-50%); } .dd-featured-card__description {display: -webkit-box; overflow: hidden; margin: 0 0 .8rem; color: var(--dd-muted); font-size: .78rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } .dd-featured-card__footer {display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid color-mix(in srgb, var(--featured-accent) 14%, #e4eaf2); font-size: .73rem; font-weight: 800; } .dd-featured-card__details {display: flex; min-width: 0; align-items: center; gap: .35rem; overflow: hidden; color: #5f6f84; white-space: nowrap; } .dd-featured-card__details > span:first-child {overflow: hidden; text-overflow: ellipsis; } .dd-featured-card__separator {flex: 0 0 auto; color: var(--featured-accent); } .dd-featured-card__start {display: inline-flex; flex: 0 0 auto; align-items: center; gap: .35rem; color: var(--featured-accent); white-space: nowrap; transition: transform .2s ease; } .dd-featured-card:hover .dd-featured-card__start {transform: translateX(3px); } .dd-featured-card--tone-1 {--featured-accent: #2563eb; --featured-soft: #f7faff;} .dd-featured-card--tone-2 {--featured-accent: #0ea5e9; --featured-soft: #f6fbfe;} .dd-featured-card--tone-3 {--featured-accent: #ef4444; --featured-soft: #fff9f8;} .dd-featured-card--tone-4 {--featured-accent: #22a06b; --featured-soft: #f7fcf9;} .dd-featured-card--tone-5 {--featured-accent: #d99000; --featured-soft: #fffaf2;} .dd-featured-card--tone-6 {--featured-accent: #f97316; --featured-soft: #fff8f3;} .dd-featured-card--tone-7 {--featured-accent: #0891b2; --featured-soft: #f5fbfc;} .dd-featured-card--tone-8 {--featured-accent: #0f766e; --featured-soft: #f5fbfa;} /* New lessons sidebar */ .dd-new-lessons {position: relative; overflow: hidden; padding: 1.5rem; background: linear-gradient(135deg, #f4f8ff 0%, #eef6ff 50%, #f9fbff 100%); } .dd-new-lessons::before {position: absolute; width: 230px; height: 230px; top: -130px; right: -95px; border-radius: 50%; background: rgba(37, 99, 235, .1); content: ""; pointer-events: none; } .dd-new-lessons > * {position: relative; z-index: 1; } .dd-new-list {display: grid; gap: .8rem; margin-top: 1rem; } .dd-new-card {display: flex; min-height: 132px; flex-direction: column; gap: .7rem; padding: .95rem 1rem; border: 1px solid #d8e2f1; border-radius: 1rem; background: #fff; box-shadow: 0 7px 20px rgba(22, 52, 98, .06); color: #17233f; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; } .dd-new-card:hover {transform: translateY(-3px); border-color: #8eace3; box-shadow: 0 13px 28px rgba(22, 52, 98, .12); color: #17233f; } .dd-new-card__header {display: flex; min-width: 0; align-items: center; gap: .7rem; } .dd-new-card__number {--new-tone: #2563eb; display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--new-tone); box-shadow: 0 7px 16px color-mix(in srgb, var(--new-tone) 27%, transparent); color: #fff; font-size: .78rem; font-weight: 900; } .dd-new-card__title {min-width: 0; overflow: hidden; color: #3949ab; font-size: .92rem; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; } .dd-new-card__description {display: -webkit-box; min-height: 2.9em; overflow: hidden; color: #68758a; font-size: .76rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } .dd-new-card__action {display: inline-flex; align-self: flex-end; align-items: center; gap: .35rem; margin-top: auto; color: #2563eb; font-size: .74rem; font-weight: 800; white-space: nowrap; transition: color .18s ease, transform .18s ease; } .dd-new-card:hover .dd-new-card__action {color: #1d4ed8; transform: translateX(3px); } .dd-new-card__number--tone-1 {--new-tone: #2563eb; } .dd-new-card__number--tone-2 {--new-tone: #7c3aed; } .dd-new-card__number--tone-3 {--new-tone: #db2777; } .dd-new-card__number--tone-4 {--new-tone: #ea580c; } .dd-new-card__number--tone-5 {--new-tone: #059669; } .dd-new-card__number--tone-6 {--new-tone: #0891b2; } .dd-home-sidebar__sticky {position: sticky; top: 1rem; display: grid; gap: 1rem; } .dd-sidebar-ad {position: relative; min-height: 250px; overflow: hidden; border: 1px solid var(--dd-line); border-radius: 1.25rem; background: #fff; box-shadow: 0 12px 35px rgba(23, 52, 91, .07); } .dd-sidebar-ad__label {position: absolute; z-index: 2; top: .55rem; left: .65rem; padding: .22rem .48rem; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; } .dd-sidebar-ad__link {display: block; width: 100%; height: 100%; } .dd-sidebar-ad__image {display: block; width: 100%; min-height: 250px; aspect-ratio: 6 / 5; object-fit: cover; } .dd-sidebar-ad__html {display: flex; width: 100%; min-height: 250px; align-items: center; justify-content: center; overflow: hidden; background: #fff; } .dd-sidebar-ad__html iframe, .dd-sidebar-ad__html ins {max-width: 100%; } .dd-sidebar-ad__placeholder {display: flex; min-height: 250px; align-items: center; justify-content: center; flex-direction: column; gap: .25rem; padding: 1rem; background: linear-gradient(145deg, #f8fafc 0%, #edf3fb 100%); color: #718096; text-align: center; } .dd-sidebar-ad__placeholder::before {width: 52px; height: 52px; border: 1px dashed #9fb0c8; border-radius: 14px; content: ""; background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .08)); } .dd-sidebar-ad__placeholder strong {color: #334155; font-size: .9rem; } .dd-sidebar-ad__placeholder span {font-size: .72rem; font-weight: 800; letter-spacing: .06em; } /* Browse by level */ .dd-levels-section {position: relative; overflow: hidden; padding: 1.5rem; background: radial-gradient(circle at top right, rgba(37, 99, 235, .08), transparent 30%), linear-gradient(180deg, #fff 0%, #f9fbff 100%); } .dd-levels-section::before {position: absolute; width: 260px; height: 260px; right: -150px; bottom: -165px; border-radius: 50%; background: rgba(124, 58, 237, .06); content: ""; pointer-events: none; } .dd-levels-section > * {position: relative; z-index: 1; } .dd-section-heading--levels {align-items: flex-start; margin-bottom: 1.1rem; } .dd-levels-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:1rem; } .dd-level-card {--level: #2563eb; --level-soft: #eff6ff; position: relative; display: flex; min-width: 0; min-height: 220px; flex-direction: column; overflow: hidden; padding: 1.15rem 1.2rem 1.1rem 1.35rem; border: 1px solid color-mix(in srgb, var(--level) 22%, #dfe6ef); border-radius: 1.2rem; background: linear-gradient(145deg, #fff 0%, var(--level-soft) 100%); box-shadow: 0 9px 24px rgba(25, 56, 96, .075); color: #17233f; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; } .dd-level-card::after {position: absolute; width: 110px; height: 110px; top: -62px; right: -48px; border-radius: 50%; background: color-mix(in srgb, var(--level) 12%, transparent); content: ""; pointer-events: none; } .dd-level-card:hover {transform: translateY(-4px); border-color: color-mix(in srgb, var(--level) 60%, #fff); box-shadow: 0 17px 34px rgba(25, 56, 96, .14); color: #17233f; } .dd-level-card__accent {position: absolute; top: 0; bottom: 0; left: 0; width: 5px; } .dd-level-card__top {display: flex; min-width: 0; align-items: center; gap: .8rem; } .dd-level-card__icon {display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--level) 24%, #fff); border-radius: 15px; background: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--level) 13%, transparent); font-size: 1.35rem; line-height: 1; } .dd-level-card__heading {display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: .5rem; } .dd-level-card__heading strong {color: #26358c; font-size: 1.05rem; font-weight: 850; line-height: 1.25; } .dd-level-card__heading > span {display: inline-flex; align-items: center; justify-content: center; padding: .25rem .48rem; border: 1px solid color-mix(in srgb, var(--level) 28%, #fff); border-radius: 999px; background: color-mix(in srgb, var(--level) 10%, #fff); color: var(--level); font-size: .68rem; font-weight: 900; letter-spacing: .05em; } .dd-level-card__description {display: -webkit-box; min-height: 3.2em; overflow: hidden; margin-top: .9rem; color: #66758a; font-size: .82rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } .dd-level-card__footer {display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .9rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid color-mix(in srgb, var(--level) 14%, #dfe6ef); font-size: .74rem; font-weight: 800; } .dd-level-card__stats {display: flex; min-width: 0; align-items: center; gap: .35rem; overflow: hidden; color: #627188; white-space: nowrap; } .dd-level-card__separator {flex: 0 0 auto; color: var(--level); } .dd-level-card__action {display: inline-flex; flex: 0 0 auto; align-items: center; gap: .35rem; color: var(--level); white-space: nowrap; transition: transform .2s ease; } .dd-level-card:hover .dd-level-card__action {transform: translateX(3px); } .dd-level-card--tone-1 {--level: #22a06b; --level-soft: #f1fbf6;} .dd-level-card--tone-2 {--level: #3a9d62; --level-soft: #f2faf5;} .dd-level-card--tone-3 {--level: #2563eb; --level-soft: #f1f6ff;} .dd-level-card--tone-4 {--level: #7c3aed; --level-soft: #f6f2ff;} .dd-level-card--tone-5 {--level: #b7791f; --level-soft: #fff9ed;} /* Lesson thumbnail tones */ .dd-lesson-thumb--tone-1 { background: #2563eb; } .dd-lesson-thumb--tone-2 { background: #7c3aed; } .dd-lesson-thumb--tone-3 { background: #db2777; } .dd-lesson-thumb--tone-4 { background: #dc2626; } .dd-lesson-thumb--tone-5 { background: #ea580c; } .dd-lesson-thumb--tone-6 { background: #ca8a04; } .dd-lesson-thumb--tone-7 { background: #65a30d; } .dd-lesson-thumb--tone-8 { background: #16a34a; } .dd-lesson-thumb--tone-9 { background: #059669; } .dd-lesson-thumb--tone-10 { background: #0d9488; } .dd-lesson-thumb--tone-11 { background: #0891b2; } .dd-lesson-thumb--tone-12 { background: #0284c7; } .dd-lesson-thumb--tone-13 { background: #4f46e5; } .dd-lesson-thumb--tone-14 { background: #6d28d9; } .dd-lesson-thumb--tone-15 { background: #9333ea; } .dd-lesson-thumb--tone-16 { background: #c026d3; } .dd-lesson-thumb--tone-17 { background: #e11d48; } .dd-lesson-thumb--tone-18 { background: #f97316; } .dd-lesson-thumb--tone-19 { background: #84cc16; } .dd-lesson-thumb--tone-20 { background: #14b8a6; } /* Responsive */ @media (max-width: 1199.98px) {
    .dd-hero__grid {grid-template-columns: minmax(0, 1.35fr) minmax(220px, .68fr) minmax(260px, 280px); min-height: 330px; padding: .95rem; }
    .dd-hero__content {padding-left: 1rem; }
    .dd-hero__title {font-size: clamp(2.35rem, 4.15vw, 3.75rem); }
    .dd-hero__visual::before {width: 205px; height: 205px; }
    .dd-hero__character, .dd-hero__character-svg {max-height: 295px; }
    .dd-home-layout {grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); }
    .dd-content-panel, .dd-new-lessons, .dd-levels-section {padding: 1.25rem; }
    .dd-new-card__status {display: none; }
} @media (max-width: 991.98px) {
    .dd-home-sidebar__sticky {position: relative; top: auto; }
    .dd-level-card {min-height: 210px; }
    .dd-hero__grid {grid-template-columns: minmax(0, 1.25fr) minmax(205px, .75fr); min-height: auto; gap: .75rem; }
    .dd-hero__content {padding: 1rem; }
    .dd-hero__title {font-size: clamp(2.3rem, 6vw, 3.55rem); }
    .dd-hero__visual {padding-right: .4rem; }
    .dd-hero__visual::before {width: 190px; height: 190px; }
    .dd-hero__character, .dd-hero__character-svg {max-height: 280px; }
    .dd-hero__float--top {right: 0; }
    .dd-hero__float--bottom {left: 0; }
    .dd-hero-ad {grid-column: 1 / -1; width: min(100%, 300px); justify-self: center; }
    .dd-hero-ad__image, .dd-hero-ad__html, .dd-hero-ad__placeholder {min-height: 250px; }
    .dd-home-layout {grid-template-columns: 1fr; }
    .dd-new-lessons {position: relative; top: auto; min-height: 0; }
    .dd-new-list {grid-template-columns: repeat(2, minmax(0, 1fr)); }
} @media (max-width: 767.98px) {
    .dd-levels-grid {grid-template-columns: 1fr; }
    .dd-levels-grid .dd-level-card:last-child:nth-child(odd) {grid-column: auto; }
    .dd-hero__grid {grid-template-columns: 1fr; padding: .85rem; }
    .dd-hero__content {align-items: center; padding: 1rem .75rem .2rem; text-align: center; }
    .dd-hero__title {max-width: 600px; font-size: clamp(2.25rem, 10vw, 3.5rem); }
    .dd-hero__lead {max-width: 560px; }
    .dd-hero__actions {justify-content: center; }
    .dd-hero__stats {justify-content: center; }
    .dd-hero__visual {min-height: 285px; padding-top: 0; }
    .dd-hero__visual::before {width: 220px; height: 220px; }
    .dd-hero__character, .dd-hero__character-svg {max-height: 285px; }
    .dd-hero__float--top {top: 1.25rem; right: 12%; }
    .dd-hero__float--bottom {bottom: 1.4rem; left: 12%; }
    .dd-hero-ad {grid-column: auto; }
    .dd-hero-ad__image, .dd-hero-ad__html, .dd-hero-ad__placeholder {min-height: 250px; max-height: none; }
    .dd-new-list {grid-template-columns: 1fr; }
} @media (max-width: 575.98px) {
    .dd-home {gap: 1rem; }
    .dd-hero {border-radius: 1.2rem; }
    .dd-hero__grid {gap: .45rem; padding: .65rem; }
    .dd-hero__content {padding: .85rem .45rem .1rem; }
    .dd-hero__eyebrow {max-width: 100%; white-space: normal; }
    .dd-hero__title {font-size: clamp(2.05rem, 11vw, 3rem); line-height: .98; }
    .dd-hero__lead {font-size: .88rem; line-height: 1.55; }
    .dd-hero__actions {width: 100%; flex-direction: column; }
    .dd-hero__actions .btn {width: 100%; }
    .dd-hero__stats {width: 100%; gap: .5rem; justify-content: space-between; }
    .dd-hero__stat {min-width: 0; flex: 1; padding-right: .55rem; }
    .dd-hero__stat strong {font-size: .96rem; }
    .dd-hero__stat span {font-size: .58rem; }
    .dd-hero__visual {min-height: 250px; }
    .dd-hero__visual::before {width: 190px; height: 190px; }
    .dd-hero__character, .dd-hero__character-svg {max-height: 250px; }
    .dd-hero__float {padding: .4rem .5rem; font-size: .6rem; }
    .dd-hero__float-icon {width: 23px; height: 23px; }
    .dd-hero__float--top {right: 2%; }
    .dd-hero__float--bottom {left: 2%; }
    .dd-hero-ad {width: 100%; max-width: 300px; }
    .dd-continue {align-items: stretch; flex-direction: column; gap: 1rem; padding: 1.2rem; }
    .dd-content-panel,.dd-new-lessons,.dd-levels-section {padding: 1rem; border-radius: 1.2rem; }
    .dd-content-divider {margin: 1.2rem 0; }
    .dd-section-heading h2 {font-size: 1.25rem; }
    .dd-section-heading--categories {align-items: flex-start; }
    .dd-all-categories-link {padding: .5rem .65rem; }
    .dd-category-card {min-height: 165px; padding: .9rem; }
    .dd-category-card__header {grid-template-columns: minmax(0, 1fr) 30px; gap: .7rem; }
    .dd-card-arrow {width: 30px; height: 30px; }
    .dd-section-heading--featured {align-items: flex-start; }
    .dd-featured-action {padding: .5rem .65rem; }
    .dd-featured-card {min-height: 148px; }
    .dd-featured-card__body {padding: .9rem; }
    .dd-featured-card__footer {align-items: flex-start; flex-direction: column; gap: .45rem; }
    .dd-new-card__status {display: none; }
    .dd-new-card {min-height: 74px; }
    .dd-level-card {min-height: 205px; padding: 1rem 1rem 1rem 1.2rem; }
    .dd-level-card__footer {align-items: flex-start; flex-direction: column; gap: .5rem; }
    .dd-level-card__action {align-self: flex-end; }
}
/* =========================================================
   NEVILIX HOME UI V1 — FINAL COLOR POLISH
   Layout is intentionally unchanged. Color system locked.
   ========================================================= */
.dd-home {
    --dd-ink: #0f1f35;
    --dd-muted: #52627a;
    --dd-line: #cbd6e5;
    --dd-accent: #1d4ed8;
    --dd-accent-dark: #173b9f;
    --dd-surface: #ffffff;
    --dd-soft: #eef4fb;
}

.dd-home .text-secondary {
    color: #52627a !important;
}

.dd-content-panel,
.dd-new-lessons,
.dd-levels-section {
    border-color: #cbd6e5;
    box-shadow: 0 14px 34px rgba(21, 45, 82, .11);
}

.dd-content-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
}

.dd-content-divider {
    background: #cfd9e7;
}

.dd-section-heading h2 {
    color: #7a4200;
}

.dd-all-categories-link,
.dd-featured-action {
    border-color: #b9c8db;
    background: #ffffff;
    color: #1747bd;
    box-shadow: 0 4px 12px rgba(32, 66, 118, .08);
}

.dd-all-categories-link:hover,
.dd-featured-action:hover {
    border-color: #1d4ed8;
    background: #edf3ff;
    color: #123a9c;
}

.dd-category-card {
    border-color: color-mix(in srgb, var(--category-accent) 38%, #d9e2ef);
    box-shadow: 0 10px 24px rgba(24, 45, 78, .10);
}

.dd-category-card:hover {
    box-shadow: 0 18px 38px rgba(24, 45, 78, .17);
}

.dd-category-card__header h3 {
    color: #3446a8;
}

.dd-category-card__body p,
.dd-featured-card__description,
.dd-new-card__description,
.dd-level-card__description {
    color: #52627a;
}

.dd-category-card__header,
.dd-category-meta {
    border-color: #d2dce9;
}

.dd-featured-card {
    border-color: #d2dce9;
    box-shadow: 0 8px 20px rgba(24, 45, 78, .09);
}

.dd-featured-card:hover {
    box-shadow: 0 15px 32px rgba(24, 45, 78, .15);
}

.dd-featured-card__title {
    color: #2f3f9c;
}

.dd-featured-card__details {
    color: #53647b;
}

.dd-new-lessons {
    background: linear-gradient(135deg, #edf3ff 0%, #e7f0ff 52%, #f5f8fd 100%);
}

.dd-new-lessons::before {
    background: rgba(29, 78, 216, .16);
}

.dd-new-card {
    border-color: #c7d4e5;
    box-shadow: 0 9px 22px rgba(24, 45, 78, .10);
}

.dd-new-card:hover {
    border-color: #8ca9d7;
    box-shadow: 0 15px 31px rgba(24, 45, 78, .16);
}

.dd-new-card__title {
    color: #1b2d49;
}

.dd-new-card__action {
    color: #1747bd;
}

.dd-home-sidebar__sticky,
.dd-sidebar-ad {
    color: #0f1f35;
}

.dd-sidebar-ad {
    border-color: #c7d4e5;
    background: #f3f6fa;
    box-shadow: 0 10px 24px rgba(24, 45, 78, .09);
}

.dd-sidebar-ad__label,
.dd-sidebar-ad__placeholder {
    color: #52627a;
}

.dd-levels-section {
    background:
        radial-gradient(circle at top right, rgba(29, 78, 216, .13), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
}

.dd-level-card {
    border-color: color-mix(in srgb, var(--level) 34%, #d5deeb);
    box-shadow: 0 11px 26px rgba(24, 45, 78, .10);
    color: #14233b;
}

.dd-level-card:hover {
    box-shadow: 0 18px 36px rgba(24, 45, 78, .17);
    color: #14233b;
}

.dd-level-card__heading strong {
    color: #25368f;
}

.dd-level-card__stats {
    color: #52627a;
}

.dd-continue {
    background: linear-gradient(135deg, #0d2340 0%, #183e72 100%);
    box-shadow: 0 16px 38px rgba(13, 35, 64, .22);
}

.dd-continue .text-secondary {
    color: rgba(255, 255, 255, .82) !important;
}

.dd-home a:focus-visible,
.dd-home button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .42);
    outline-offset: 3px;
}