/* /live-class/ (Elementor page). Every rule hangs on the ctl-* classes of the widgets, so the customer edits the words in Elementor and the look stays. */
body.cthub-live{--ctl-p:#d71960;--ctl-deep:#a70c48;--ctl-ink:#202a3b;--ctl-sub:#657084;--ctl-line:#eee4e9;--ctl-pale:#fff3f7;counter-reset:ctl}
body.cthub-live .e-con[class*="ctl-"]{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--gap:0px;--row-gap:0px;--column-gap:0px;gap:0;box-sizing:border-box;min-height:0}
body.cthub-live .elementor-widget[class*="ctl-"]{margin:0;width:auto;max-width:100%;min-width:0}
body.cthub-live .elementor-widget[class*="ctl-"] .elementor-widget-container{margin:0;padding:0}
body.cthub-live [class*="ctl-"] p{margin:0}
body.cthub-live [class*="ctl-"] .elementor-heading-title{margin:0;font-family:Prompt,sans-serif;color:var(--ctl-ink)}
body.cthub-live .e-con.ctl-hero,body.cthub-live .e-con.ctl-strip,body.cthub-live .e-con.ctl-select,body.cthub-live .e-con.ctl-group,body.cthub-live .e-con.ctl-contact{width:calc(100% - 32px);max-width:1148px;margin-left:auto;margin-right:auto;font-family:Prompt,sans-serif;line-height:1.6;color:var(--ctl-ink)}
body.cthub-live #ctlive-select,body.cthub-live .ctl-group{scroll-margin-top:120px}

/* hero */
body.cthub-live .e-con.ctl-hero{position:relative;isolation:isolate;overflow:hidden;flex-direction:row;align-items:center;margin-top:22px;border-radius:28px;background:linear-gradient(120deg,#a80c46 0%,#d71960 57%,#ee548e 100%);padding:clamp(26px,5vw,54px)}
body.cthub-live .e-con.ctl-hero:before,body.cthub-live .e-con.ctl-hero:after{content:"";position:absolute;z-index:-1;display:block;border:1px solid #ffffff35;border-radius:50%;width:460px;height:460px;right:-90px;top:-210px;left:auto;bottom:auto;transform:none;background:none}
body.cthub-live .e-con.ctl-hero:after{width:590px;height:590px;right:-150px;top:-270px}
body.cthub-live .e-con.ctl-hero-copy{flex:0 1 62%;width:62%;align-items:flex-start}
@media(min-width:721px){body.cthub-live .e-con.ctl-hero{background:url(../img/live-calendar.svg) no-repeat right 54px center/300px auto,linear-gradient(120deg,#a80c46 0%,#d71960 57%,#ee548e 100%)}}
@media(min-width:721px) and (max-width:980px){body.cthub-live .e-con.ctl-hero{background-size:230px auto,auto;background-position:right 22px center,0 0}}
body.cthub-live .ctl-kicker .elementor-heading-title{font-size:12px;letter-spacing:2px;font-weight:700;color:#fff;margin-bottom:12px}
body.cthub-live .ctl-kicker .elementor-heading-title:before{content:"";display:inline-block;width:8px;height:8px;background:#ffd5e5;border-radius:50%;margin-right:8px;vertical-align:1px}
body.cthub-live .ctl-title .elementor-heading-title{font-size:clamp(30px,4.5vw,52px);line-height:1.28;letter-spacing:-.025em;font-weight:700;color:#fff;margin-bottom:14px}
body.cthub-live .ctl-lead{font-size:clamp(15px,1.6vw,18px);color:#fff3f7;max-width:560px;margin-bottom:24px!important}
body.cthub-live .ctl-lead p{color:#fff3f7}
body.cthub-live [class*="ctl-"] .elementor-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:0;border-radius:12px;font:700 16px/1.45 Prompt,sans-serif;text-decoration:none;box-shadow:none;transition:filter .15s}
body.cthub-live [class*="ctl-"] .elementor-button:hover{filter:brightness(.96)}
body.cthub-live .ctl-hero-btn .elementor-button{background:#fff;color:var(--ctl-deep);fill:var(--ctl-deep)}

/* three numbers */
body.cthub-live .e-con.ctl-strip{flex-direction:row;flex-wrap:nowrap;align-items:stretch;border:1px solid var(--ctl-line);border-radius:16px;margin-top:14px;margin-bottom:34px;background:#fff;padding:15px 0}
body.cthub-live .e-con.ctl-stat{flex:1 1 0;width:auto;min-width:0;align-items:center;text-align:center;padding:5px 12px;border-right:1px solid var(--ctl-line)}
body.cthub-live .e-con.ctl-stat:last-child{border-right:0}
body.cthub-live .ctl-stat-n .elementor-heading-title{font-size:19px;line-height:1.4;font-weight:700;color:var(--ctl-p)}
body.cthub-live .ctl-stat-t .elementor-heading-title{font-size:12.5px;line-height:1.5;font-weight:400;color:var(--ctl-sub)}

/* subject cards */
body.cthub-live .e-con.ctl-select{margin-bottom:34px}
body.cthub-live .ctl-h2 .elementor-heading-title{font-size:clamp(23px,3vw,30px);font-weight:700;line-height:1.4}
body.cthub-live .ctl-sub{margin:3px 0 17px!important;color:var(--ctl-sub);font-size:14px}
body.cthub-live .e-con.ctl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
body.cthub-live .elementor-widget.ctl-card{width:100%;display:flex}
body.cthub-live .ctl-card .elementor-widget-container,body.cthub-live .ctl-card>.elementor-icon-box-wrapper{width:100%}
body.cthub-live .ctl-card .elementor-icon-box-wrapper{position:relative;display:flex;flex-direction:row;align-items:flex-start;gap:14px;box-sizing:border-box;height:100%;min-height:122px;padding:19px 40px 17px 16px;border:1px solid var(--ctl-line);border-radius:17px;background:#fff;text-align:left;transition:background .15s,border-color .15s}
body.cthub-live .ctl-card .elementor-icon-box-wrapper:hover,body.cthub-live .ctl-card .elementor-icon-box-wrapper:focus-within{border-color:var(--ctl-p);background:var(--ctl-pale)}
body.cthub-live .ctl-card .elementor-icon-box-wrapper:after{content:"\2197";position:absolute;right:16px;top:16px;color:var(--ctl-p);font-size:21px;font-weight:700;line-height:1}
body.cthub-live .ctl-card .elementor-icon-box-icon{flex:0 0 48px;margin:0}
body.cthub-live .ctl-card .elementor-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:var(--ctl-pale);color:var(--ctl-p);fill:var(--ctl-p);font-size:22px;padding:0}
body.cthub-live .ctl-card .elementor-icon svg{width:22px;height:22px}
body.cthub-live .ctl-card .elementor-icon-box-content{flex:1;min-width:0;text-align:left}
body.cthub-live .ctl-card .elementor-icon-box-title{margin:0;font:700 21px/1.3 Prompt,sans-serif;color:var(--ctl-ink)}
body.cthub-live .ctl-card .elementor-icon-box-title a{color:inherit;text-decoration:none}
body.cthub-live .ctl-card .elementor-icon-box-title a:after{content:"";position:absolute;inset:0;z-index:2}
body.cthub-live .ctl-card .elementor-icon-box-description{margin:4px 0 0;font:400 13px/1.55 Prompt,sans-serif;color:var(--ctl-sub);overflow-wrap:anywhere}
body.cthub-live .ctl-card .ctl-mini{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 9px;margin-top:7px}
body.cthub-live .ctl-card .ctl-mini b{color:var(--ctl-deep);font-size:15px;white-space:nowrap}

/* one block per subject; the number in front counts by itself */
body.cthub-live .e-con.ctl-group{counter-increment:ctl;margin-bottom:36px}
body.cthub-live .e-con.ctl-head{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:13px;padding:14px 18px;background:linear-gradient(90deg,#fff2f7,#fff);border:1px solid var(--ctl-line);border-left:4px solid var(--ctl-p);border-radius:14px;margin-bottom:14px;width:100%}
body.cthub-live .e-con.ctl-head:before{content:counter(ctl,decimal-leading-zero);display:block;position:static;width:auto;height:auto;border:0;background:none;transform:none;color:var(--ctl-p);font:700 14px/1 Prompt,sans-serif;letter-spacing:1px}
body.cthub-live .e-con.ctl-head-t{flex:1 1 auto;width:auto;min-width:0}
body.cthub-live .ctl-name .elementor-heading-title{font-size:clamp(22px,3vw,29px);font-weight:700;line-height:1.3}
body.cthub-live .ctl-head-sub{margin-top:2px!important;font-size:13px;color:var(--ctl-sub)}
body.cthub-live .elementor-widget.ctl-back{flex:none;margin-left:auto}
body.cthub-live .ctl-back .elementor-button{min-height:34px;padding:6px 4px;background:none;color:var(--ctl-deep);fill:var(--ctl-deep);font-size:12.5px;white-space:nowrap}
body.cthub-live .e-con.ctl-info{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.45fr);gap:22px;align-items:center;width:100%;border:1px solid var(--ctl-line);border-radius:18px;padding:20px 22px;background:#fff}
body.cthub-live .e-con.ctl-info-main{width:100%;align-items:flex-start;padding-right:20px;border-right:1px solid var(--ctl-line)}
body.cthub-live .e-con.ctl-info-list{width:100%}
body.cthub-live .ctl-label{font-size:12.5px;color:var(--ctl-sub);font-weight:600;margin-bottom:4px!important}
body.cthub-live .ctl-price .elementor-heading-title{font-size:clamp(28px,3.8vw,38px);font-weight:700;line-height:1.25;letter-spacing:-.02em;color:var(--ctl-deep)}
body.cthub-live .elementor-widget.ctl-hours{margin:9px 0}
body.cthub-live .ctl-hours .elementor-heading-title{display:inline-block;background:var(--ctl-pale);color:var(--ctl-deep);font-size:13px;line-height:1.5;font-weight:600;border-radius:7px;padding:4px 9px}
body.cthub-live .ctl-teacher{font-size:14px;line-height:1.55}
body.cthub-live .ctl-strength-t .elementor-heading-title{font-size:15px;font-weight:700;margin-bottom:9px}
body.cthub-live .ctl-strengths ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
body.cthub-live .ctl-strengths li{position:relative;margin:0;padding:0 0 0 29px;font-size:14px;line-height:1.6;color:var(--ctl-ink)}
body.cthub-live .ctl-strengths li:before{content:"\2713";position:absolute;left:0;top:1px;width:20px;height:20px;line-height:20px;text-align:center;border-radius:50%;background:var(--ctl-pale);color:var(--ctl-deep);font-weight:700;font-size:12px}
body.cthub-live .ctl-schedule-t .elementor-heading-title{font-size:17px;font-weight:700;margin:16px 0 4px}

/* the timetables (the snippet's own table) in the site colours; on a narrow column every round is a card */
body.cthub-live .elementor-widget.ctl-table{width:100%;container-type:inline-size}
body.cthub-live .ctl-table .table-wrapper{overflow:visible}
body.cthub-live .ctl-table table{width:100%!important;margin:0;border:0!important;border-collapse:separate!important;border-spacing:0 6px;background:none!important;font-family:Prompt,sans-serif}
body.cthub-live .ctl-table table td,body.cthub-live .ctl-table table th{border:0!important;padding:11px 8px;font-size:14px;line-height:1.45;text-align:center;vertical-align:middle;color:var(--ctl-ink);background:#fff7fa;border-top:1px solid #ffe3ee!important;border-bottom:1px solid #ffe3ee!important}
body.cthub-live .ctl-table table tr{background:none!important}
body.cthub-live .ctl-table table tr td:first-child{border-left:1px solid #ffe3ee!important;border-radius:12px 0 0 12px;font-weight:600}
body.cthub-live .ctl-table table tr td:last-child{border-right:1px solid #ffe3ee!important;border-radius:0 12px 12px 0}
body.cthub-live .ctl-table table tr:first-child td,body.cthub-live .ctl-table table thead th{background:#d71960!important;color:#fff;font-weight:600;font-size:13.5px;border-color:#d71960!important}
body.cthub-live .ctl-table a.btn-book{display:inline-flex;align-items:center;justify-content:center;padding:8px 18px;border:0!important;border-radius:999px;background:#d41a5d!important;color:#fff!important;font-size:14px;font-weight:600;line-height:1.3;text-decoration:none;white-space:nowrap}
body.cthub-live .ctl-table a.btn-book:hover{background:#b8134f!important}
body.cthub-live .ctl-table .btn-book-red{display:inline-block;padding:6px 14px;border:1px solid #f0b4b4!important;border-radius:999px;background:#fff1f1;color:#b42318!important;font-size:13px;line-height:1.3;white-space:nowrap}
@container (max-width:700px){
body.cthub-live .ctl-table table,body.cthub-live .ctl-table table tbody{display:block!important}
body.cthub-live .ctl-table table thead,body.cthub-live .ctl-table table tbody tr:first-child{display:none!important}
body.cthub-live .ctl-table table tr{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 10px;margin:0 0 10px!important;padding:14px!important;border:1px solid #ffd3e3!important;border-radius:16px;background:#fff7fa!important;box-sizing:border-box}
body.cthub-live .ctl-table table tr td{display:block!important;position:static!important;width:auto!important;min-width:0;padding:0!important;border:0!important;border-radius:0!important;background:none!important;text-align:left!important;font-size:14.5px;overflow-wrap:anywhere}
body.cthub-live .ctl-table table tr td:before{display:block!important;position:static!important;width:auto!important;left:auto!important;margin:0 0 1px;font-size:11.5px;font-weight:500;color:#8a93a5}
body.cthub-live .ctl-table table tr td:nth-of-type(1){grid-column:1/-1;font-size:17px;font-weight:700;color:var(--ctl-p);padding-bottom:8px!important;border-bottom:1px dashed #ffd3e3!important}
body.cthub-live .ctl-table table tr td:nth-of-type(1):before{content:none!important;display:none!important}
body.cthub-live .ctl-table table tr td:nth-of-type(2){grid-column:span 2}
body.cthub-live .ctl-table table tr td:first-child{border:0!important;border-bottom:1px dashed #ffd3e3!important;border-radius:0}
body.cthub-live .ctl-table table tr td:last-child{border:0!important;border-radius:0}
body.cthub-live .ctl-table table tr td:nth-of-type(2):before{content:"วันเรียน"}
body.cthub-live .ctl-table table tr td:nth-of-type(3):before{content:"รอบ"}
body.cthub-live .ctl-table table tr td:nth-of-type(4):before{content:"เวลา"}
body.cthub-live .ctl-table table tr td:nth-of-type(6):before{content:"เหลือที่นั่ง"}
body.cthub-live .ctl-table table tr td:nth-of-type(7):before{content:"อาจารย์"}
body.cthub-live .ctl-table table tr td:nth-of-type(5){grid-column:1/-1;order:10;text-align:center!important}
body.cthub-live .ctl-table table tr td:nth-of-type(5):before{content:none!important;display:none!important}
body.cthub-live .ctl-table a.btn-book,body.cthub-live .ctl-table .btn-book-red{display:flex;justify-content:center;width:100%;box-sizing:border-box;padding:11px 14px;font-size:15px;text-align:center}
}

/* contact box */
body.cthub-live .e-con.ctl-contact{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;background:var(--ctl-pale);border:1px solid #f5d2e0;border-radius:20px;padding:26px;margin-bottom:44px}
body.cthub-live .e-con.ctl-contact-t{flex:1 1 360px;width:auto}
body.cthub-live .ctl-contact-h .elementor-heading-title{font-size:22px;font-weight:700;margin-bottom:4px}
body.cthub-live .ctl-contact-p{font-size:14px;color:var(--ctl-sub)}
body.cthub-live .ctl-contact-btn .elementor-button{background:var(--ctl-p);color:#fff;fill:#fff}

@media(max-width:720px){
body.cthub-live .e-con.ctl-hero,body.cthub-live .e-con.ctl-strip,body.cthub-live .e-con.ctl-select,body.cthub-live .e-con.ctl-group,body.cthub-live .e-con.ctl-contact{width:calc(100% - 20px)}
body.cthub-live .e-con.ctl-hero{margin-top:10px;padding:25px 22px;border-radius:20px}
body.cthub-live .e-con.ctl-hero-copy{flex-basis:100%;width:100%}
body.cthub-live .ctl-title .elementor-heading-title{font-size:clamp(28px,7.7vw,40px)}
body.cthub-live .e-con.ctl-strip{margin-top:12px;margin-bottom:24px;padding:10px 0}
body.cthub-live .e-con.ctl-stat{padding:3px 6px}
body.cthub-live .ctl-stat-n .elementor-heading-title{font-size:15.5px}
body.cthub-live .ctl-stat-t .elementor-heading-title{font-size:11px}
body.cthub-live .e-con.ctl-select{margin-bottom:24px}
body.cthub-live .e-con.ctl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.cthub-live .ctl-card .elementor-icon-box-wrapper{flex-direction:column;gap:8px;min-height:132px;padding:12px 10px}
body.cthub-live .ctl-card .elementor-icon-box-wrapper:after{right:10px;top:12px;font-size:17px}
body.cthub-live .ctl-card .elementor-icon-box-icon{flex:0 0 auto}
body.cthub-live .ctl-card .elementor-icon{width:32px;height:32px;border-radius:9px;font-size:16px}
body.cthub-live .ctl-card .elementor-icon svg{width:16px;height:16px}
body.cthub-live .ctl-card .elementor-icon-box-title{font-size:17px}
body.cthub-live .ctl-card .elementor-icon-box-description{font-size:11.5px}
body.cthub-live .ctl-card .ctl-mini b{font-size:13.5px}
body.cthub-live .e-con.ctl-head{padding:12px 11px;gap:9px}
body.cthub-live .ctl-head-sub{font-size:11.5px}
body.cthub-live .e-con.ctl-info{grid-template-columns:minmax(0,1fr);gap:13px;padding:16px}
body.cthub-live .e-con.ctl-info-main{border-right:0;border-bottom:1px solid var(--ctl-line);padding:0 0 12px}
body.cthub-live .ctl-strengths li{font-size:13.5px}
body.cthub-live .e-con.ctl-contact{padding:20px}
body.cthub-live .e-con.ctl-contact-t{flex-basis:100%}
body.cthub-live .elementor-widget.ctl-contact-btn,body.cthub-live .ctl-contact-btn .elementor-button{width:100%}
}
