
/* Trainonex story experience — plugin-owned styles, independent of theme overrides */
.tnx-story-start,.tnx-create-story-band,.tnx-about-story-chapter,.tnx-about-conclusion{position:relative;isolation:isolate;overflow:hidden}
.tnx-story-start{padding:clamp(64px,8vw,112px) 0;background:linear-gradient(180deg,#fff 0%,#f7f7fa 100%);color:#111827}
.tnx-story-wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}
.tnx-story-heading{text-align:center;max-width:850px;margin:0 auto 42px}
.tnx-story-kicker{display:inline-block;color:#ed1738;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;margin-bottom:14px}
.tnx-story-heading h2,.tnx-about-story-chapter h2{font-size:clamp(30px,4.2vw,54px);line-height:1.08;letter-spacing:-.035em;font-weight:850;margin:0 0 16px;color:#111827}
.tnx-story-heading h2 em,.tnx-about-story-chapter h2 em,.tnx-create-story-band h2 em,.tnx-about-conclusion h2 em{font-style:normal;color:#ed1738}
.tnx-story-lead{font-size:clamp(15px,1.5vw,18px);line-height:1.75;color:#536071;max-width:760px;margin:0 auto}
.tnx-story-panels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.tnx-story-panel{position:relative;min-width:0;background:#fff;border:1px solid #e3e7ed;border-radius:20px;overflow:hidden;box-shadow:0 14px 38px rgba(16,24,40,.08);padding:15px;display:flex;flex-direction:column;transition:transform .25s ease,box-shadow .25s ease}
.tnx-story-panel:hover{transform:translateY(-5px);box-shadow:0 20px 42px rgba(16,24,40,.13)}
.tnx-story-number{font-size:10px;letter-spacing:.12em;font-weight:850;color:#ed1738}
.tnx-story-art{height:190px;margin:12px 0 15px;border-radius:14px;background:radial-gradient(circle at 50% 45%,rgba(255,44,75,.15),transparent 55%),linear-gradient(145deg,#101a27,#1b293a);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.tnx-story-owner{font-size:92px;line-height:1;filter:drop-shadow(0 8px 8px rgba(0,0,0,.3))}
.tnx-story-prop{position:absolute;right:18px;bottom:15px;font-size:42px}
.tnx-story-doodle{position:absolute;right:30px;top:20px;color:#ff3151;font-size:54px;font-weight:900}
.tnx-story-art img{height:100%;width:auto;max-width:90%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 15px rgba(0,0,0,.35))}
.tnx-story-bubble{position:absolute;top:12px;left:10px;max-width:62%;background:#fff;color:#111827;border-radius:14px;padding:8px 10px;font-size:11px;font-weight:750;line-height:1.35;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.tnx-story-camera{font-size:76px;filter:drop-shadow(0 8px 10px rgba(0,0,0,.4))}
.tnx-story-clapper{position:absolute;left:18px;bottom:14px;font-size:45px}
.tnx-story-play{position:absolute;right:22px;top:22px;color:#ff2b4e;background:#fff;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;font-size:18px}
.tnx-story-chart{position:absolute;right:16px;bottom:20px;color:#ff3151;font-size:30px;letter-spacing:2px;font-weight:900}
.tnx-story-happy{font-size:86px}
.tnx-story-panel h3{font-size:18px;line-height:1.3;color:#101827;margin:0 0 8px;font-weight:800}
.tnx-story-panel p{font-size:13px;line-height:1.65;color:#647184;margin:0}
.tnx-story-continue{display:flex;align-items:center;justify-content:center;gap:26px;margin:34px auto 0;text-align:left}
.tnx-story-continue p{font-size:14px;line-height:1.65;color:#526071;margin:0}
.tnx-story-continue strong{color:#111827}
.tnx-story-button{display:inline-flex;align-items:center;justify-content:center;gap:15px;background:#ed1738;color:#fff!important;text-decoration:none!important;border-radius:999px;padding:14px 22px;font-weight:800;font-size:13px;box-shadow:0 10px 24px rgba(237,23,56,.2);transition:transform .2s ease,background .2s ease}
.tnx-story-button:hover{background:#c90d2b;transform:translateY(-2px)}
.tnx-story-button span{font-size:18px}
.tnx-about-hero .hero-doodle{max-height:360px;max-width:42%;object-fit:contain}
.tnx-about-story-chapter{padding:clamp(64px,8vw,104px) 0;background:#0b1724;color:#fff}
.tnx-about-story-chapter h2{color:#fff;max-width:760px}
.tnx-about-story-chapter .tnx-story-lead{color:#b9c5d3;margin:0 0 34px}
.tnx-about-journey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tnx-about-journey article{padding:22px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.045);border-radius:16px;min-width:0}
.tnx-about-journey article span{font-size:10px;color:#ff4560;letter-spacing:.12em;font-weight:850}
.tnx-about-journey h3{font-size:19px;line-height:1.3;color:#fff;margin:14px 0 8px}
.tnx-about-journey p{font-size:13px;line-height:1.7;color:#b8c4d1;margin:0}
.tnx-about-conclusion{padding:clamp(64px,8vw,105px) 0;background:#f7f8fb;color:#111827}
.tnx-about-conclusion-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:50px;align-items:center}
.tnx-about-conclusion h2{font-size:clamp(34px,4.5vw,58px);line-height:1.08;letter-spacing:-.035em;margin:0 0 18px;color:#101827}
.tnx-about-conclusion p{font-size:15px;line-height:1.8;color:#566274;max-width:700px}
.tnx-about-conclusion .tnx-story-malayalam{font-weight:800;color:#ed1738}
.tnx-about-conclusion img{width:100%;max-height:460px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 18px 30px rgba(16,24,40,.18))}
.tnx-create-story-band{padding:clamp(48px,7vw,84px) 0;background:radial-gradient(circle at 70% 50%,#45101b 0%,#160c12 42%,#080d16 100%);color:#fff}
.tnx-create-story-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.45fr) auto;gap:28px;align-items:center}
.tnx-create-story-band h2{font-size:clamp(38px,5vw,66px);line-height:1;margin:0 0 14px;color:#fff;letter-spacing:-.04em}
.tnx-create-story-band p{max-width:650px;font-size:15px;line-height:1.75;color:#d0d5de;margin:0}
.tnx-create-story-band .tnx-create-services{margin-top:14px;color:#ffb5c1;font-size:12px;font-weight:700}
.tnx-create-story-band img{width:100%;max-height:320px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 0 28px rgba(237,23,56,.35))}
.tnx-create-story-band .tnx-story-button{white-space:nowrap}
@media(max-width:900px){
 .tnx-story-panels{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tnx-about-journey{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tnx-create-story-inner{grid-template-columns:minmax(0,1fr) minmax(150px,.5fr)}
 .tnx-create-story-inner .tnx-story-button{grid-column:1/-1;justify-self:start}
}
@media(max-width:600px){
 .tnx-story-wrap{width:min(100% - 32px,1180px)}
 .tnx-story-start{padding:56px 0}
 .tnx-story-heading{text-align:left;margin-bottom:25px}
 .tnx-story-panels{grid-template-columns:1fr;gap:12px}
 .tnx-story-panel{display:grid;grid-template-columns:110px minmax(0,1fr);column-gap:14px;align-items:center;padding:12px}
 .tnx-story-number{grid-column:1/-1}
 .tnx-story-art{grid-row:2/4;height:130px;margin:8px 0 0}
 .tnx-story-owner{font-size:65px}
 .tnx-story-panel h3{font-size:16px;align-self:end}
 .tnx-story-panel p{font-size:12px;align-self:start}
 .tnx-story-continue{align-items:flex-start;flex-direction:column;gap:16px}
 .tnx-about-journey{grid-template-columns:1fr}
 .tnx-about-conclusion-grid{grid-template-columns:1fr;gap:20px}
 .tnx-about-conclusion img{max-height:340px}
 .tnx-create-story-inner{grid-template-columns:minmax(0,1fr) 120px;gap:12px}
 .tnx-create-story-inner img{max-height:190px}
 .tnx-create-story-inner .tnx-story-button{grid-column:1/-1}
 .tnx-create-story-band h2{font-size:42px}
 .tnx-about-hero .hero-doodle{max-width:80%;max-height:280px}
}

/* Conversation comic layout: connected scenes, not a grid of cards */
.tnx-comic-sequence{position:relative;display:flex;flex-direction:column;gap:0;max-width:1020px;margin:0 auto}
.tnx-comic-sequence:before{content:"";position:absolute;left:50%;top:4%;bottom:4%;width:1px;background:linear-gradient(transparent,rgba(237,23,56,.45),rgba(237,23,56,.45),transparent);z-index:-1}
.tnx-comic-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,72px);align-items:center;padding:32px 0;border-bottom:1px solid rgba(120,132,150,.18);background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
.tnx-comic-scene:nth-child(even) .tnx-comic-visual{order:2}
.tnx-comic-scene:nth-child(even) .tnx-comic-caption{order:1}
.tnx-comic-visual{height:280px;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 65%,rgba(237,23,56,.12),transparent 68%);border-radius:0;overflow:visible}
.tnx-comic-visual img{height:100%;max-width:62%;width:auto;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 12px 18px rgba(10,18,28,.18))}
.tnx-comic-owner{font-size:130px;line-height:1;filter:drop-shadow(0 12px 15px rgba(10,18,28,.2))}
.tnx-comic-shop{position:absolute;bottom:12px;right:18%;font-size:65px}
.tnx-comic-speech{position:absolute;z-index:2;max-width:265px;padding:15px 18px;background:#fff;border:2px solid #111827;border-radius:22px;color:#172033;font-size:14px;line-height:1.45;font-weight:750;box-shadow:5px 6px 0 rgba(237,23,56,.85)}
.tnx-comic-speech:after{content:"";position:absolute;bottom:-13px;left:35px;width:20px;height:20px;background:#fff;border-right:2px solid #111827;border-bottom:2px solid #111827;transform:rotate(45deg)}
.tnx-comic-owner-speech{top:8px;left:0}
.tnx-comic-mascot-speech{top:12px;right:0}
.tnx-comic-caption{max-width:440px;padding:12px 0}
.tnx-comic-caption>span{font-size:10px;letter-spacing:.16em;font-weight:850;color:#ed1738}
.tnx-comic-caption h3{font-size:clamp(23px,2.7vw,34px);line-height:1.12;letter-spacing:-.025em;color:#111827;margin:12px 0}
.tnx-comic-caption p{font-size:15px;line-height:1.75;color:#586476;margin:0;max-width:420px}
.tnx-about-story-chapter .tnx-comic-sequence:before{background:linear-gradient(transparent,rgba(255,69,96,.55),rgba(255,69,96,.55),transparent)}
.tnx-about-story-chapter .tnx-comic-scene{border-bottom-color:rgba(255,255,255,.12)}
.tnx-about-story-chapter .tnx-comic-visual{background:radial-gradient(ellipse at 50% 65%,rgba(237,23,56,.2),transparent 68%)}
.tnx-about-story-chapter .tnx-comic-caption h3{color:#fff}
.tnx-about-story-chapter .tnx-comic-caption p{color:#bdc7d3}
.tnx-about-story-chapter .tnx-comic-speech{border-color:#fff;box-shadow:5px 6px 0 #ed1738}
.tnx-story-heading h2{color:#111827}
@media(max-width:700px){
 .tnx-comic-sequence:before{left:18px}
 .tnx-comic-scene,.tnx-comic-scene:nth-child(even){grid-template-columns:1fr;gap:8px;padding:26px 0 30px}
 .tnx-comic-scene:nth-child(even) .tnx-comic-visual,.tnx-comic-scene:nth-child(even) .tnx-comic-caption{order:initial}
 .tnx-comic-visual{height:230px;margin-left:18px}
 .tnx-comic-visual img{max-width:58%}
 .tnx-comic-owner{font-size:105px}
 .tnx-comic-speech{max-width:210px;padding:11px 13px;font-size:12px}
 .tnx-comic-caption{padding-left:18px}
 .tnx-comic-caption h3{font-size:24px}
 .tnx-comic-caption p{font-size:14px}
}


/* Trainonex comic-story refinements: dialogue-first, aligned character staging */
.tnx-story-start .tnx-comic-sequence,
.tnx-about-story-chapter .tnx-comic-sequence{display:flex!important;flex-direction:column!important;gap:0!important;max-width:1120px!important;margin:32px auto 0!important}
.tnx-story-start .tnx-comic-sequence:before,
.tnx-about-story-chapter .tnx-comic-sequence:before{left:50%!important;top:3%!important;bottom:3%!important;width:2px!important;z-index:-1!important}
.tnx-story-start .tnx-comic-scene,
.tnx-about-story-chapter .tnx-comic-scene{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:clamp(28px,5vw,76px)!important;align-items:center!important;min-height:365px!important;padding:34px 0!important;margin:0!important;border:0!important;border-bottom:1px solid rgba(130,145,165,.2)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.tnx-story-start .tnx-comic-scene:nth-child(even) .tnx-comic-visual,
.tnx-about-story-chapter .tnx-comic-scene:nth-child(even) .tnx-comic-visual{order:2!important}
.tnx-story-start .tnx-comic-scene:nth-child(even) .tnx-comic-caption,
.tnx-about-story-chapter .tnx-comic-scene:nth-child(even) .tnx-comic-caption{order:1!important}
.tnx-story-start .tnx-comic-visual,
.tnx-about-story-chapter .tnx-comic-visual{position:relative!important;height:330px!important;min-height:330px!important;width:100%!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:0!important;padding:72px 14px 0!important;margin:0!important;box-sizing:border-box!important;overflow:visible!important;background:radial-gradient(ellipse at 50% 78%,rgba(237,23,56,.16),transparent 68%)!important}
.tnx-story-start .tnx-comic-visual img,
.tnx-about-story-chapter .tnx-comic-visual img{display:block!important;position:relative!important;flex:0 1 auto!important;width:auto!important;height:255px!important;max-width:68%!important;max-height:255px!important;min-width:0!important;object-fit:contain!important;object-position:center bottom!important;align-self:flex-end!important;margin:0 auto!important;padding:0!important;transform:none!important;filter:drop-shadow(0 12px 15px rgba(0,0,0,.2))!important}
.tnx-story-start .tnx-comic-owner,
.tnx-about-story-chapter .tnx-comic-owner{display:flex!important;align-items:flex-end!important;justify-content:center!important;height:255px!important;max-width:68%!important;margin:0 auto!important;font-size:128px!important;line-height:1!important}
.tnx-story-start .tnx-comic-shop,
.tnx-about-story-chapter .tnx-comic-shop{bottom:16px!important;right:10%!important}
.tnx-story-start .tnx-comic-speech,
.tnx-about-story-chapter .tnx-comic-speech{position:absolute!important;top:8px!important;left:0!important;right:auto!important;bottom:auto!important;z-index:5!important;display:block!important;width:min(330px,82%)!important;max-width:330px!important;min-height:unset!important;margin:0!important;padding:14px 17px!important;border:1.5px solid #172033!important;border-radius:19px!important;background:#fff!important;color:#172033!important;font-size:14px!important;font-weight:700!important;line-height:1.55!important;text-align:left!important;white-space:normal!important;box-shadow:5px 6px 0 #ed1738!important;box-sizing:border-box!important}
.tnx-story-start .tnx-comic-speech b,
.tnx-about-story-chapter .tnx-comic-speech b{display:block!important;margin:0 0 5px!important;color:#ed1738!important;font-size:9px!important;letter-spacing:.15em!important;font-weight:900!important}
.tnx-story-start .tnx-comic-speech small,
.tnx-about-story-chapter .tnx-comic-speech small{display:block!important;margin-top:5px!important;color:#657184!important;font-size:11px!important;line-height:1.4!important;font-weight:500!important}
.tnx-story-start .tnx-comic-mascot-speech,
.tnx-about-story-chapter .tnx-comic-mascot-speech{left:auto!important;right:0!important}
.tnx-story-start .tnx-comic-speech:after,
.tnx-about-story-chapter .tnx-comic-speech:after{content:""!important;position:absolute!important;left:30px!important;right:auto!important;bottom:-10px!important;top:auto!important;width:17px!important;height:17px!important;background:#fff!important;border-right:1.5px solid #172033!important;border-bottom:1.5px solid #172033!important;transform:rotate(45deg)!important}
.tnx-story-start .tnx-comic-mascot-speech:after,
.tnx-about-story-chapter .tnx-comic-mascot-speech:after{left:auto!important;right:30px!important}
.tnx-story-start .tnx-comic-caption,
.tnx-about-story-chapter .tnx-comic-caption{max-width:460px!important;width:100%!important;margin:0!important;padding:16px 0!important;align-self:center!important;box-sizing:border-box!important}
.tnx-story-start .tnx-comic-caption>span,
.tnx-about-story-chapter .tnx-comic-caption>span{display:block!important;margin-bottom:8px!important;color:#ed1738!important;font-size:10px!important;letter-spacing:.15em!important;font-weight:900!important}
.tnx-story-start .tnx-comic-caption h3,
.tnx-about-story-chapter .tnx-comic-caption h3{margin:0 0 10px!important;font-size:clamp(23px,2.5vw,34px)!important;line-height:1.13!important;letter-spacing:-.025em!important;font-weight:800!important}
.tnx-story-start .tnx-comic-caption p,
.tnx-about-story-chapter .tnx-comic-caption p{margin:0!important;max-width:440px!important;font-size:14px!important;line-height:1.75!important}
.tnx-about-story-chapter .tnx-comic-visual{background:radial-gradient(ellipse at 50% 78%,rgba(237,23,56,.24),transparent 68%)!important}
.tnx-about-story-chapter .tnx-comic-speech{border-color:#fff!important;box-shadow:5px 6px 0 #ed1738!important}
.tnx-story-start .tnx-comic-scene-result .tnx-comic-visual{background:radial-gradient(ellipse at 50% 78%,rgba(20,170,115,.16),transparent 68%)!important}
@media(max-width:760px){
 .tnx-story-start .tnx-comic-sequence:before,.tnx-about-story-chapter .tnx-comic-sequence:before{left:13px!important;top:2%!important;bottom:2%!important}
 .tnx-story-start .tnx-comic-scene,.tnx-about-story-chapter .tnx-comic-scene,
 .tnx-story-start .tnx-comic-scene:nth-child(even),.tnx-about-story-chapter .tnx-comic-scene:nth-child(even){grid-template-columns:minmax(0,1fr)!important;gap:12px!important;min-height:unset!important;padding:28px 0 32px 22px!important}
 .tnx-story-start .tnx-comic-scene:nth-child(even) .tnx-comic-visual,.tnx-about-story-chapter .tnx-comic-scene:nth-child(even) .tnx-comic-visual,
 .tnx-story-start .tnx-comic-scene:nth-child(even) .tnx-comic-caption,.tnx-about-story-chapter .tnx-comic-scene:nth-child(even) .tnx-comic-caption{order:initial!important}
 .tnx-story-start .tnx-comic-visual,.tnx-about-story-chapter .tnx-comic-visual{height:295px!important;min-height:295px!important;padding:78px 8px 0!important}
 .tnx-story-start .tnx-comic-visual img,.tnx-about-story-chapter .tnx-comic-visual img{height:215px!important;max-height:215px!important;max-width:65%!important}
 .tnx-story-start .tnx-comic-owner,.tnx-about-story-chapter .tnx-comic-owner{height:215px!important;font-size:108px!important}
 .tnx-story-start .tnx-comic-speech,.tnx-about-story-chapter .tnx-comic-speech{top:5px!important;width:min(285px,88%)!important;max-width:285px!important;padding:11px 13px!important;font-size:12px!important;line-height:1.45!important}
 .tnx-story-start .tnx-comic-speech small,.tnx-about-story-chapter .tnx-comic-speech small{font-size:10px!important}
 .tnx-story-start .tnx-comic-caption,.tnx-about-story-chapter .tnx-comic-caption{padding:0 6px!important}
 .tnx-story-start .tnx-comic-caption h3,.tnx-about-story-chapter .tnx-comic-caption h3{font-size:23px!important}
}
