.study-tree{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:60px;align-items:center;min-height:560px;margin:24px 0 0;padding:40px 0 90px}
#study-branches{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}
.tree-column{display:flex;flex-direction:column;justify-content:center;gap:56px;min-width:0}.tree-subjects{gap:100px}.tree-cermat-options{grid-column:2}.tree-actions{grid-column:3}
.study-tree .tree-node{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;width:100%;padding:12px 8px 12px 20px;background:#fafaf7d9!important;border:0!important;border-radius:12px;box-shadow:none!important;color:#3f4d37!important;min-height:100px;position:relative;transition:transform .3s,color .3s,background .3s}
.tree-node strong{font-size:15px;font-weight:500;line-height:1.4}.tree-node small{font-size:10px;line-height:1.5;color:#828675!important}.study-tree .tree-node:hover{transform:translateY(-3px);background:#f2f4e9d9!important;color:#456e22!important}.tree-node[aria-expanded=true]{color:#426a25!important}.tree-node:focus-visible{outline:2px solid #70954d!important;outline-offset:5px!important}
.tree-folder{width:29px;height:21px;border:1.5px solid #78816b;border-radius:2px;display:block;margin:3px 0 3px;position:relative;background:#fafaf7;box-shadow:2px 2px 0 #e5e9dc}.tree-folder::before{content:'';position:absolute;top:-6px;left:-1.5px;width:13px;height:5px;border:1.5px solid #78816b;border-bottom:0;border-radius:3px 3px 0 0;background:#fafaf7}.tree-node[aria-expanded=true] .tree-folder{transform:skewX(-10deg);border-color:#4f762b}
.tree-file{display:block;width:22px;height:27px;border:1.5px solid #929784;border-radius:2px;position:relative;margin-bottom:2px}.tree-file::after{content:'≡';position:absolute;inset:0;font-size:20px;text-align:center;color:#90977d}
.tree-column:not([hidden]){animation:tree-unfold .5s cubic-bezier(.2,.8,.2,1) both}.tree-hint{position:absolute;bottom:15px;left:20px;font-size:11px;color:#8d917f!important;max-width:90%;line-height:1.7}
@keyframes tree-unfold{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
@media(max-width:750px){.study-tree{grid-template-columns:1fr;gap:40px;padding:20px 0 75px;min-height:440px}.tree-column,.tree-subjects{gap:25px;grid-column:1}.tree-subjects{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tree-sections,.tree-cermat-options{margin-left:30px;width:calc(100% - 30px)}.tree-actions{margin-left:65px;width:calc(100% - 65px)}.study-tree .tree-node{min-height:95px;padding:12px 14px}.tree-node strong{font-size:14px}.tree-node small{font-size:10px}.tree-hint{left:14px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.tree-column:not([hidden]){animation:none}.study-tree .tree-node{transition:none}.study-tree .tree-node:hover{transform:none}}

.study-tree .tree-node{width:fit-content;max-width:100%;min-width:150px}.study-tree{min-height:480px}.tree-column{gap:38px}.tree-subjects{gap:100px}@media(max-width:750px){.study-tree .tree-node{min-width:0;width:fit-content;max-width:100%}.tree-column{gap:25px}}

.home-view .home-main{padding-top:20px!important}.study-tree{min-height:650px;margin-top:0;padding-top:40px;padding-bottom:95px}.tree-node{background:#fafaf7!important}.tree-column{gap:60px}.tree-subjects{gap:140px}@media(max-width:750px){.study-tree{min-height:450px;padding-top:35px}.tree-column{gap:30px}.tree-subjects{gap:10px}}

/* Folders live on the boughs, rather than in boxed grid columns. */
@media(min-width:751px){
.study-tree{display:block;min-height:660px;height:660px;padding:0;margin-top:0}
.tree-column:not([hidden]){display:contents;animation:none}
.study-tree .tree-node{position:absolute;min-height:85px;min-width:0;width:max-content;max-width:220px;padding:0 5px 7px;background:transparent!important;border-radius:0}
.study-tree .tree-node:hover{background:transparent!important;transform:translateY(-2px)}
.tree-node .tree-folder,.tree-node .tree-file{background:#fafaf7}.tree-node strong,.tree-node small{background:#fafaf7e8;padding-right:6px}
#tree-psychology{left:11%;top:42%}#tree-cermat{left:15%;top:78%}
#tree-section-1{left:40%;top:15%}#tree-section-2{left:46%;top:46%}#tree-section-3{left:38%;top:76%}
#tree-study{left:77%;top:7%}#tree-practice{left:74%;top:39%}#tree-exam{left:80%;top:76%}
#tree-topics{left:56%;top:36%}#tree-tests{left:65%;top:76%}
.tree-hint{bottom:0}
}
@media(min-width:751px) and (max-width:1000px){.tree-node strong{font-size:12px}.tree-node small{font-size:9px}.study-tree .tree-node{max-width:170px}#tree-exam{left:75%}}

/* 3D folders: a back panel with a tab, a sheet of paper, and a front cover that swings open toward you.
   When a folder is expanded the cover drops, the paper lifts, and the child branches grow out of its mouth. */
.study-tree .tree-folder{width:34px;height:26px;margin:8px 0 3px;border:0;border-radius:0;background:none!important;box-shadow:none;perspective:140px;perspective-origin:50% 0;transform-style:preserve-3d;transform:none!important}
.study-tree .tree-folder::before{content:none}
.tree-folder>i{position:absolute;display:block;box-sizing:border-box;transition:transform .5s cubic-bezier(.2,.8,.2,1),background .3s,border-color .3s}
.tree-folder .tf-back{inset:0;background:#dcd9c6;border:1.5px solid #6c7460;border-radius:1px 3px 3px 3px;box-shadow:2px 2px 0 #e5e8dc}
.tree-folder .tf-back::before{content:'';position:absolute;top:-6px;left:-1.5px;width:14px;height:6px;background:#dcd9c6;border:1.5px solid #6c7460;border-bottom:0;border-radius:3px 4px 0 0;box-sizing:border-box}
.tree-folder .tf-paper{left:4px;right:5px;top:3px;height:17px;background:#fffdf7;border:1px solid #bdbba8;border-radius:1px;transform-origin:50% 100%}
.tree-folder .tf-paper::after{content:'';position:absolute;left:3px;right:5px;top:4px;height:1px;background:#cfd1c2;box-shadow:0 3px 0 #cfd1c2,0 6px 0 #e3c5cf}
.tree-folder .tf-front{left:0;right:0;bottom:0;height:20px;background:#ebe8d8;border:1.5px solid #6c7460;border-radius:2px;transform-origin:50% 100%;box-shadow:inset 0 1px 0 #fffdf4}
.study-tree .tree-node:hover .tf-front{transform:rotateX(-18deg)}
.study-tree .tree-node:hover .tf-paper{transform:translateY(-2px)}
.study-tree .tree-node[aria-expanded=true] .tf-front{transform:rotateX(-58deg);background:#e4ead2;border-color:#4f6b36}
.study-tree .tree-node[aria-expanded=true] .tf-paper{transform:translateY(-6px) rotate(-4deg)}
.study-tree .tree-node[aria-expanded=true] .tf-back,.study-tree .tree-node[aria-expanded=true] .tf-back::before{border-color:#4f6b36;background:#d5dcc0}
/* Files get a folded corner so they read as paper rather than a flat outline. */
.study-tree .tree-file{background:#fffdf7!important;border-color:#7d8471;border-radius:1px 6px 1px 1px;box-shadow:2px 2px 0 #e5e8dc}
.study-tree .tree-file::before{content:'';position:absolute;top:-1.5px;right:-1.5px;width:7px;height:7px;background:#e8e6d8;border-left:1.5px solid #7d8471;border-bottom:1.5px solid #7d8471;border-radius:0 0 0 2px}
@media(prefers-reduced-motion:reduce){.tree-folder>i{transition:none}}
