
/* Svasti chapter learning wall — cinematic banner + sequential glass topic rows */
.svasti-library-kind-chapter{position:relative;isolation:isolate;min-height:0!important;padding:0!important;color:#f8fbff!important;background-color:transparent!important}
.svasti-library-kind-chapter:before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 12% 10%,rgba(22,123,150,.22),transparent 42%),radial-gradient(ellipse at 85% 22%,rgba(238,157,65,.18),transparent 38%),linear-gradient(145deg,#06131b,#071e29 55%,#08131d)}
.svasti-library-kind-chapter .svasti-chapter-hero{position:relative;display:flex;align-items:center;width:min(1120px,calc(100% - 40px));min-height:260px;margin:24px auto 18px;padding:clamp(24px,4vw,52px);padding-right:34%;overflow:hidden;border:1px solid rgba(108,226,255,.48);border-radius:22px;background-color:#071b25;background-image:linear-gradient(90deg,rgba(2,12,18,.94) 0%,rgba(2,12,18,.82) 48%,rgba(2,12,18,.12) 100%),var(--svasti-chapter-banner);background-size:100% 100%,auto 82%;background-position:center,right 24px center;box-shadow:0 14px 42px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.08)}
.svasti-library-kind-chapter .svasti-chapter-hero:not([style*="--svasti-chapter-banner"]){background-image:radial-gradient(ellipse at 75% 30%,rgba(25,138,167,.35),transparent 45%),linear-gradient(120deg,#071722,#102c38);background-size:100% 100%;background-position:center}
.svasti-library-kind-chapter .svasti-chapter-hero-copy{position:relative;z-index:1;max-width:720px;text-shadow:0 2px 12px rgba(0,0,0,.7)}
.svasti-library-kind-chapter .svasti-chapter-breadcrumb{font-size:clamp(.85rem,1.4vw,1.05rem);color:#f4f7fa;margin-bottom:24px;letter-spacing:.02em}
.svasti-library-kind-chapter .svasti-chapter-kicker{font-size:clamp(1rem,2vw,1.35rem);font-weight:800;color:#ffd45f;margin-bottom:4px}
.svasti-library-kind-chapter .svasti-chapter-hero h1{margin:0 0 12px!important;color:#fff!important;font-size:clamp(2.2rem,5vw,4rem)!important;line-height:1.05!important;font-weight:800}
.svasti-library-kind-chapter .svasti-chapter-hero p{margin:0;color:#f0f4f6;font-size:clamp(.95rem,1.6vw,1.15rem)}
.svasti-library-kind-chapter .svasti-topic-list{display:flex;flex-direction:column;gap:9px;width:min(1120px,calc(100% - 40px));margin:0 auto;padding:0 0 38px}
.svasti-library-kind-chapter .svasti-topic-row{display:grid;grid-template-columns:58px 132px minmax(155px,1fr) minmax(380px,2.15fr);align-items:center;gap:16px;min-height:114px;padding:12px 18px;border:1px solid rgba(94,218,242,.65);border-radius:17px;background:linear-gradient(110deg,rgba(2,24,34,.88),rgba(3,34,43,.78) 55%,rgba(3,22,32,.86));box-shadow:0 9px 25px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.09);backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
.svasti-library-kind-chapter .svasti-topic-number{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border:1px solid #48d7ff;border-radius:13px;background:linear-gradient(145deg,rgba(0,133,196,.8),rgba(3,42,78,.9));box-shadow:0 0 18px rgba(30,190,255,.35);font-size:1.35rem;font-weight:800;color:#fff}
.svasti-library-kind-chapter .svasti-topic-row:nth-child(3n+2) .svasti-topic-number{border-color:#55e6c0;background:linear-gradient(145deg,rgba(0,151,111,.8),rgba(3,64,58,.9));box-shadow:0 0 18px rgba(50,230,184,.25)}
.svasti-library-kind-chapter .svasti-topic-row:nth-child(3n+3) .svasti-topic-number{border-color:#ffc45e;background:linear-gradient(145deg,rgba(164,92,9,.85),rgba(76,40,5,.92));box-shadow:0 0 18px rgba(255,179,55,.25)}
.svasti-library-kind-chapter .svasti-topic-icon{width:132px;height:82px;overflow:hidden;border-radius:10px;background:rgba(5,16,27,.7);border:1px solid rgba(255,255,255,.18)}
.svasti-library-kind-chapter .svasti-topic-icon-img{display:block;width:100%;height:100%;object-fit:cover}
.svasti-library-kind-chapter .svasti-topic-icon-fallback{display:flex;width:100%;height:100%;align-items:center;justify-content:center;color:#fff;font-size:2rem}
.svasti-library-kind-chapter .svasti-topic-title{margin:0!important;color:#fff!important;font-size:clamp(1rem,1.3vw,1.18rem)!important;line-height:1.35!important;font-weight:700}
.svasti-library-kind-chapter .svasti-topic-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.svasti-library-kind-chapter .svasti-topic-action{display:flex;align-items:center;gap:12px;min-height:68px;padding:10px 14px;border:1px solid;border-radius:12px;text-decoration:none!important;color:#fff!important;font-weight:700;font-size:clamp(.9rem,1.2vw,1rem);transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.svasti-library-kind-chapter .svasti-topic-action:hover{transform:translateY(-2px);filter:brightness(1.16);color:#fff!important}
.svasti-library-kind-chapter .svasti-action-video{border-color:#159de0;background:linear-gradient(110deg,rgba(0,91,153,.78),rgba(3,46,81,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 5px 15px rgba(0,0,0,.2)}
.svasti-library-kind-chapter .svasti-action-lesson{border-color:#27c59c;background:linear-gradient(110deg,rgba(0,112,83,.8),rgba(3,66,61,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 5px 15px rgba(0,0,0,.2)}
.svasti-library-kind-chapter .svasti-action-icon{display:flex;flex:0 0 40px;width:40px;height:40px;align-items:center;justify-content:center;border-radius:50%;background:rgba(91,214,255,.2);font-size:1.45rem;color:#9ceaff}
.svasti-library-kind-chapter .svasti-action-lesson .svasti-action-icon{border-radius:9px;background:rgba(88,255,196,.17);color:#a4ffdc}
.svasti-library-kind-chapter .svasti-topic-action-arrow{margin-left:auto;font-size:1.8rem;font-weight:400;line-height:1}
@media(max-width:900px){.svasti-library-kind-chapter .svasti-topic-row{grid-template-columns:52px 105px minmax(130px,1fr);gap:12px}.svasti-library-kind-chapter .svasti-topic-actions{grid-column:2/4}.svasti-library-kind-chapter .svasti-topic-icon{width:105px;height:72px}.svasti-library-kind-chapter .svasti-topic-action{min-height:58px}}
@media(max-width:600px){.svasti-library-kind-chapter .svasti-chapter-hero{width:calc(100% - 20px);min-height:220px;margin:12px auto 14px;padding:22px 39% 22px 18px;border-radius:16px;background-size:100% 100%,auto 72%;background-position:center,right 10px center}.svasti-library-kind-chapter .svasti-chapter-hero-copy{max-width:100%}.svasti-library-kind-chapter .svasti-chapter-hero h1{font-size:clamp(1.45rem,6vw,2.15rem)!important;overflow-wrap:anywhere}.svasti-library-kind-chapter .svasti-chapter-hero p{font-size:.82rem}.svasti-library-kind-chapter .svasti-chapter-breadcrumb{margin-bottom:18px}.svasti-library-kind-chapter .svasti-topic-list{width:calc(100% - 20px);gap:9px}.svasti-library-kind-chapter .svasti-topic-row{grid-template-columns:44px 84px minmax(0,1fr);gap:9px;padding:10px;border-radius:13px}.svasti-library-kind-chapter .svasti-topic-number{width:42px;height:42px;font-size:1.05rem;border-radius:10px}.svasti-library-kind-chapter .svasti-topic-icon{width:84px;height:68px}.svasti-library-kind-chapter .svasti-topic-title{font-size:.95rem!important}.svasti-library-kind-chapter .svasti-topic-actions{grid-column:1/-1;gap:8px}.svasti-library-kind-chapter .svasti-topic-action{gap:7px;min-height:52px;padding:7px 9px;font-size:.82rem;border-radius:9px}.svasti-library-kind-chapter .svasti-action-icon{flex-basis:30px;width:30px;height:30px;font-size:1.05rem}.svasti-library-kind-chapter .svasti-topic-action-arrow{font-size:1.35rem}}


/* 2.3.3 — chapter typography/readability */
.svasti-library-kind-chapter,
.svasti-library-kind-chapter *{
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.svasti-library-kind-chapter{color:#fff!important}
.svasti-library-kind-chapter .svasti-chapter-hero-copy{max-width:660px;text-shadow:0 2px 5px rgba(0,0,0,.95),0 5px 18px rgba(0,0,0,.85)}
.svasti-library-kind-chapter .svasti-chapter-breadcrumb{color:#fff!important;font-weight:600;letter-spacing:.025em;text-shadow:0 2px 5px #000}
.svasti-library-kind-chapter .svasti-chapter-kicker{color:#ffdc72!important;font-weight:800;text-shadow:0 2px 5px #000,0 0 12px rgba(0,0,0,.8)}
.svasti-library-kind-chapter .svasti-chapter-hero h1{font-family:Georgia,"Times New Roman",serif!important;font-weight:700!important;letter-spacing:-.025em;text-shadow:0 3px 8px rgba(0,0,0,.95),0 0 18px rgba(0,0,0,.65)!important}
.svasti-library-kind-chapter .svasti-chapter-hero p{color:#fff!important;font-weight:500;text-shadow:0 2px 5px #000}
.svasti-library-kind-chapter .svasti-topic-row{background:linear-gradient(110deg,rgba(1,15,23,.96),rgba(2,25,34,.94) 55%,rgba(1,14,23,.96));}
.svasti-library-kind-chapter .svasti-topic-title{font-family:Georgia,"Times New Roman",serif!important;color:#fff!important;font-weight:700!important;text-shadow:0 2px 5px rgba(0,0,0,.95)!important}
.svasti-library-kind-chapter .svasti-topic-action{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;font-weight:700!important;letter-spacing:.005em;text-shadow:0 1px 3px rgba(0,0,0,.75)}
.svasti-library-kind-chapter .svasti-topic-number{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;font-variant-numeric:tabular-nums}
@media(max-width:600px){
  .svasti-library-kind-chapter .svasti-topic-title{font-size:1rem!important;line-height:1.3!important}
  .svasti-library-kind-chapter .svasti-chapter-hero h1{line-height:1.12!important}
}

/* Chapter-level Ask a doubt call-to-action */
.svasti-chapter-doubt-cta{display:flex;justify-content:center;margin:30px auto 18px;padding:0 14px}
.svasti-ask-doubt-button{display:flex;align-items:center;gap:16px;min-width:min(100%,360px);padding:17px 22px;border:1px solid rgba(144,211,255,.45);border-radius:20px;color:#fff!important;text-decoration:none!important;background:linear-gradient(125deg,rgba(20,39,75,.94),rgba(63,36,104,.92));box-shadow:0 14px 45px rgba(21,108,190,.25),inset 0 1px rgba(255,255,255,.18);backdrop-filter:blur(18px);transition:transform .25s,box-shadow .25s}
.svasti-ask-doubt-button:hover{transform:translateY(-3px);box-shadow:0 20px 55px rgba(21,108,190,.38)}
.svasti-doubt-orb{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#54e6ff,#a78bfa);color:#10172c;font-size:25px;box-shadow:0 0 28px rgba(84,230,255,.35)}
.svasti-ask-doubt-button strong,.svasti-ask-doubt-button small{display:block}.svasti-ask-doubt-button strong{font-size:16px;letter-spacing:.02em}.svasti-ask-doubt-button small{margin-top:4px;color:#c9d9f3;font-size:12px}.svasti-doubt-arrow{margin-left:auto;font-size:22px;color:#8cecff}
