/* Home: shared content, desktop cards and compact mobile lists. */
.page-home { color: #102255; }
.home-page { background: radial-gradient(ellipse at 20% 70%,var(--color-background-contain),transparent 65%); }
.home-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; background: #062359; }
.home-hero__image { width: 100%; aspect-ratio: 2057 / 764; object-fit: cover; }
.home-yellow-button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 48px; padding: 10px 27px; border-radius: 99px; background: linear-gradient(120deg,#ffe35d,#ffc629); color: #08245c; font-size: 18px; font-weight: 800; box-shadow: 0 4px 16px #02185525; }
.home-yellow-button:hover { color: #08245c; background: #ffe16a; }
.home-hero__cta { position: absolute; bottom: 8%; left: 44%; }
.home-hero__tagline { display: none; }
.home-hero__title { position: absolute; top: 12%; left: 45%; width: 49%; font-size: clamp(24px,3.4vw,42px); line-height: 1.2; color: #fff; text-shadow: 0 2px 12px #00133f; }
.home-hero--en .home-hero__image { object-position: center 62%; }
.home-hero--en .home-hero__tagline { display: block; position: absolute; top: 40%; left: 45%; color: #fff; line-height: 1.5; font-size: 20px; text-shadow: 0 2px 6px #00133f; }
.home-category-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 20px 0 24px; scroll-margin-top: 95px; }
.home-category-card { --topic-color: #0877ff; display: flex; flex-direction: column; align-items: center; position: relative; min-width: 0; padding: 16px 17px 23px; border-radius: 17px; color: #102255; background: linear-gradient(130deg,#eaf5ff,#dcecff); text-align: center; border: 1px solid #fff9; transition: transform .2s,box-shadow .2s; }
.home-category-card--programming-algorithms { --topic-color: #00b9b0; background: linear-gradient(130deg,#e8faf6,#daf5f5); }
.home-category-card--network-internet { --topic-color: #753eff; background: linear-gradient(130deg,#eaf3ff,#ece5ff); }
.home-category-card--ai { --topic-color: #f039b4; background: linear-gradient(130deg,#fff1fa,#fbe1f2); }
.home-category-card--fun { --topic-color: #f5ac13; background: linear-gradient(130deg,#fff8e9,#fff0cf); }
.home-category-card img { width: 82px; height: 82px; object-fit: contain; margin-bottom: 9px; }
.home-category-card strong { color: #081e55; font-size: 20px; line-height: 1.4; margin-bottom: 7px; }
.home-category-card__summary { color: #647b9f; font-size: 14px; max-width: 170px; line-height: 1.6; padding: 0 8px; }
.home-category-card__arrow { position: absolute; bottom: 12px; right: 11px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--topic-color); color: #fff; font-size: 13px; border: 2px solid #fff; }
.home-category-card:hover { color: #102255; transform: translateY(-3px); box-shadow: 0 8px 18px #365c9b13; }
.home-start { overflow: hidden; position: relative; padding: 19px 22px 8px; border-radius: 18px; background: linear-gradient(120deg,#eaf3ff,#fff 55%,#e8eaff); scroll-margin-top: 95px; }
.home-start summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; min-height: 40px; }
.home-start summary::-webkit-details-marker { display: none; }
.home-start h2 { margin: 0; font-size: 26px; line-height: 1.4; }
.home-heading-icon { color: #129cff; font-size: 29px; line-height: 1; filter: drop-shadow(0 2px 1px #164dce25); }
.home-heading-icon--star { color: #ffbd20; text-shadow: 1px 1px #ea9100; }
.home-heading-icon--rocket { color: #6654f6; transform: rotate(-8deg); }
.home-section-subtitle { color: #647b9f; font-size: 13px; margin: 0; }
.home-start__chevron { margin-left: auto; font-size: 15px; color: #2960dc; transition: transform .2s; }
.home-start[open] .home-start__chevron { transform: rotate(90deg); }
.home-start__content { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 190px; }
.home-path { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; margin: 20px 0 10px; padding: 0; gap: 23px; }
.home-path li { position: relative; min-width: 0; }
.home-path li:not(:last-child)::after { content: '\2192'; position: absolute; top: 24px; right: -22px; font-size: 25px; color: #0d2460; }
.home-path a { display: flex; flex-direction: column; align-items: center; text-align: center; color: #0d2460; }
.home-path img,.home-path__blocks { display: grid; place-items: center; width: 65px; height: 65px; object-fit: contain; margin-bottom: 10px; }
.home-path__blocks { color: #ffbd29; font-size: 48px; filter: drop-shadow(0 3px 1px #e4931c50); }
.home-path strong { font-size: 17px; margin-bottom: 4px; line-height: 1.5; }
.home-path a > span:not(.home-path__blocks) { color: #647b9f; font-size: 12px; line-height: 1.6; }
.home-path-guide { position: relative; min-height: 170px; }
.home-path-guide img { position: absolute; width: 165px; height: 195px; object-fit: contain; object-position: bottom; right: -18px; bottom: -8px; }
.home-path-guide p { position: absolute; right: 67px; top: -50px; z-index: 1; padding: 12px 15px; border: 1px solid #e4ecff; border-radius: 50px; background: #fff; color: #304e83; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 10px #2e5bb715; }
.home-section { margin-top: 26px; }
.home-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; padding-inline: 12px; }
.home-section-heading h2 { margin: 0; font-size: 25px; line-height: 1.4; }
.home-section-heading > a { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; font-size: 13px; font-weight: 600; min-height: 36px; }
.home-reading-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.home-reading-card { min-width: 0; overflow: hidden; border: 1px solid #e6effc; border-radius: 15px; background: #fff; }
.home-reading-card__cover { display: flex; position: relative; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 1.85; background: radial-gradient(circle at 65% 25%,#8eeaff,transparent 55%),linear-gradient(135deg,#1560cd,#071e70); }
.home-reading-card:nth-child(2) .home-reading-card__cover { background: linear-gradient(130deg,#b4dcff,#8d81f9); }
.home-reading-card:nth-child(3) .home-reading-card__cover { background: linear-gradient(130deg,#76caff,#094c9b); }
.home-reading-card__cover > i { font-size: 64px; color: #b7f3ff; filter: drop-shadow(0 5px 1px #092f8470); }
.home-reading-card__cover::after { content: ''; position: absolute; inset: 14px; border: 1px solid #fff2; border-radius: 8px; pointer-events: none; }
.home-reading-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.home-reading-card__body { padding: 12px; }
.home-reading-card h3 { margin: 0 0 7px; line-height: 1.45; font-size: 17px; }
.home-reading-card h3 a { color: #0b2058; }
.home-reading-card h3 a:hover { color: #146fff; }
.home-reading-card__body > p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 42px; margin: 0 0 12px; color: #7586a6; font-size: 13px; line-height: 1.6; }
.home-reading-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; color: #657fae; font-size: 11px; }
.home-reading-card__meta > span { white-space: nowrap; }
.home-reading-card__tag { padding: 2px 9px; border-radius: 20px; background: #d8f5f6; color: #14728c; font-size: 11px; font-weight: 600; }
.home-reading-card:nth-child(2) .home-reading-card__tag { background: #eee5ff; color: #623bbe; }
.home-tool-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.home-tool-tile { display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 15px 8px 12px; min-height: 128px; border: 1px solid #e6effa; border-radius: 15px; background: linear-gradient(130deg,#fff,#f9fcff); color: #102255; text-align: center; box-shadow: 0 3px 9px #3e68bc05; }
.home-tool-tile__icon { display: grid; place-items: center; height: 53px; font-size: 40px; color: #128cff; margin-bottom: 10px; filter: drop-shadow(0 3px 1px #1e72f02b); }
.home-tool-tile:nth-child(6n+1) .home-tool-tile__icon { color: #ffb618; }
.home-tool-tile:nth-child(6n+2) .home-tool-tile__icon { color: #ef729d; }
.home-tool-tile:nth-child(6n+4) .home-tool-tile__icon { color: #7661ff; }
.home-tool-tile:nth-child(6n+5) .home-tool-tile__icon { color: #16c7af; }
.home-tool-tile strong { font-size: 15px; line-height: 1.4; }
.home-tool-tile small { font-size: 10px; color: #8592ad; margin-top: 5px; }
.home-tool-tile:hover { border-color: #a4c9ff; background: #fff; }
.home-explore { position: relative; isolation: isolate; display: grid; grid-template-columns: 180px minmax(0,1fr) auto; align-items: center; gap: 24px; margin-top: 26px; min-height: 156px; padding: 14px 45px 14px 24px; overflow: hidden; border-radius: 19px; color: #fff; background: radial-gradient(ellipse at 12% 100%,#3684ed 0,transparent 42%),radial-gradient(ellipse at 90% 100%,#1748b2,transparent 50%),#061b56; }
.home-explore::before { content: '✦       ·       ✧          ·       ✦       ·       ✧'; position: absolute; top: 10px; left: 7%; right: 5%; color: #ffe89b; font-size: 23px; word-spacing: 18px; opacity: .8; z-index: -1; }
.home-explore::after { content: ''; position: absolute; z-index: -1; width: 320px; height: 120px; background: #96c5ff55; border-radius: 50%; bottom: -70px; left: -90px; box-shadow: 850px 10px 0 #3174d977; }
.home-explore > img { position: absolute; width: 175px; height: 175px; bottom: -9px; left: 22px; object-fit: contain; }
.home-explore > div { grid-column: 2; }
.home-explore h2 { font-size: 29px; line-height: 1.35; margin: 0 0 10px; }
.home-explore p { font-size: 14px; line-height: 1.6; margin: 0; }
.home-explore .home-yellow-button { position: relative; z-index: 1; white-space: nowrap; }
.home-page a:focus-visible,.home-page summary:focus-visible { outline: 3px solid #347cff; outline-offset: 4px; }
@media (max-width: 1100px) {
    .home-category-card { padding: 13px 9px 25px; }
    .home-category-card strong { font-size: 17px; }
    .home-category-card__summary { font-size: 12px; }
    .home-start__content { grid-template-columns: minmax(0,1fr) 130px; }
    .home-path-guide img { width: 140px; }
    .home-path-guide p { display: none; }
    .home-path strong { font-size: 14px; }
    .home-section-subtitle { display: none; }
    .home-reading-card h3 { font-size: 15px; }
    .home-explore { grid-template-columns: 150px minmax(0,1fr) auto; padding-right: 24px; gap: 14px; }
    .home-explore h2 { font-size: 25px; }
}
@media (min-width: 641px) and (max-width: 900px) {
    .home-reading-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .home-path-guide { display: none; }
    .home-start__content { grid-template-columns: minmax(0,1fr); }
    .home-category-card img { width: 65px; height: 65px; }
    .home-category-card strong { font-size: 15px; }
    .home-explore { grid-template-columns: 115px minmax(0,1fr) auto; }
    .home-explore > img { width: 135px; left: 10px; }
    .home-yellow-button { font-size: 15px; padding: 10px 18px; }
}
@media (max-width: 640px) {
    .home-page { padding: 8px 0 20px; }
    .home-hero { border-radius: 12px; }
    .home-hero__image { aspect-ratio: 4 / 3; object-fit: cover; min-height: 235px; }
    .home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#03164a50,transparent 45%); pointer-events: none; }
    .home-hero__tagline,.home-hero--en .home-hero__tagline { display: block; position: absolute; top: 7%; right: 5%; left: auto; margin: 0; color: #fff; font-size: clamp(14px,4.5vw,21px); line-height: 1.6; font-weight: 700; text-shadow: 0 2px 7px #071a50; transform: rotate(-5deg); z-index: 1; }
    .home-hero--en .home-hero__title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); }
    .home-hero--en .home-hero__tagline { font-size: 14px; max-width: 58%; }
    .home-hero__cta { left: 5%; bottom: 7%; z-index: 1; min-height: 44px; font-size: 15px; padding: 9px 19px; gap: 13px; }
    .home-category-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin: 12px 0 18px; scroll-margin-top: 80px; }
    .home-category-card { grid-column: span 2; padding: 10px 4px; border-radius: 12px; min-height: 95px; }
    .home-category-card:nth-child(n+4) { grid-column: span 3; }
    .home-category-card img { width: 50px; height: 50px; margin-bottom: 5px; }
    .home-category-card strong { font-size: 12px; line-height: 1.3; margin: 0; }
    .home-category-card__summary,.home-category-card__arrow { display: none; }
    .home-start { padding: 11px 13px; border-radius: 12px; scroll-margin-top: 80px; }
    .home-start summary { min-height: 42px; gap: 10px; }
    .home-start h2 { font-size: 22px; }
    .home-start__content { display: block; }
    .home-path { grid-template-columns: minmax(0,1fr); gap: 8px; margin: 12px 0 4px; }
    .home-path li:not(:last-child)::after { display: none; }
    .home-path a { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 0 12px; text-align: left; padding: 8px; border-radius: 9px; background: #ffffffb3; }
    .home-path img,.home-path__blocks { grid-row: span 2; width: 42px; height: 42px; margin: 0; font-size: 30px; }
    .home-path strong { font-size: 14px; margin: 0; }
    .home-path a > span:not(.home-path__blocks) { font-size: 12px; }
    .home-path-guide { display: none; }
    .home-section { margin-top: 22px; }
    .home-section-heading { gap: 8px; margin-bottom: 10px; padding-inline: 4px; }
    .home-section-heading h2 { font-size: 20px; }
    .home-section-heading > a { gap: 4px; font-size: 11px; min-height: 36px; }
    .home-heading-icon { font-size: 25px; }
    .home-reading-grid { grid-template-columns: minmax(0,1fr); gap: 7px; }
    .home-reading-card { display: grid; grid-template-columns: 75px minmax(0,1fr); padding: 6px; gap: 10px; border-radius: 10px; }
    .home-reading-card__cover { aspect-ratio: 1; width: 75px; height: 75px; border-radius: 7px; }
    .home-reading-card__cover > i { font-size: 36px; }
    .home-reading-card__cover::after { inset: 5px; }
    .home-reading-card__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 1px 3px 1px 0; }
    .home-reading-card h3 { font-size: 14px; line-height: 1.45; margin: 0 0 8px; }
    .home-reading-card__body > p { display: none; }
    .home-reading-card__meta { gap: 5px 10px; font-size: 10px; }
    .home-reading-card__tag { padding: 2px 7px; font-size: 10px; }
    .home-tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .home-tool-tile { padding: 12px 5px 9px; min-height: 105px; border-radius: 11px; }
    .home-tool-tile__icon { font-size: 32px; height: 40px; margin-bottom: 7px; }
    .home-tool-tile strong { font-size: 12px; }
    .home-tool-tile small { font-size: 10px; }
    .home-explore { grid-template-columns: 110px minmax(0,1fr); gap: 8px 12px; min-height: 150px; padding: 18px 15px; margin-top: 24px; border-radius: 13px; }
    .home-explore > img { width: 140px; height: 150px; left: -7px; bottom: -12px; }
    .home-explore h2 { font-size: 21px; margin: 0; }
    .home-explore p { display: none; }
    .home-explore .home-yellow-button { grid-column: 2; justify-self: start; min-height: 40px; font-size: 15px; padding: 8px 22px; }
    html[lang="en"] .home-section-heading h2 { font-size: 17px; }
    html[lang="en"] .home-explore h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .home-category-card,.home-start__chevron { transition: none; } }
.home-binary-art { display: flex; gap: 10px; align-items: center; transform: rotate(-5deg); }
.home-binary-art b { display: grid; place-items: center; width: 37px; height: 63px; border-radius: 9px; color: #fff16d; background: linear-gradient(135deg,#39cfff,#5660ee); border: 2px solid #e8f9ff9c; box-shadow: 4px 5px 0 #5663c978; font-size: 36px; text-shadow: 0 3px 1px #a0800f; }
.home-binary-art b:nth-child(even) { transform: translateY(-10px); }
.home-reading-card:nth-child(4) .home-reading-card__cover { background: linear-gradient(120deg,#e0e4ff,#dcefff); }
.home-reading-card:nth-child(4) .home-reading-card__cover img { object-position: center 30%; }
@media (max-width: 640px) {
    .home-tool-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); overflow-x: auto; scroll-snap-type: x proximity; padding: 1px 0 6px; scrollbar-width: thin; }
    .home-tool-tile { scroll-snap-align: start; }
    .home-binary-art { gap: 3px; }
    .home-binary-art b { width: 13px; height: 30px; border-radius: 3px; font-size: 19px; border-width: 1px; box-shadow: 2px 3px 0 #5663c978; }
    .home-binary-art b:nth-child(even) { transform: translateY(-5px); }
}
