/* Kines Academy — every route in the Canva CI (Art 16 Nov 2026: "ปรับหน้าทุกหน้าของ academy ให้เป็น CI ใหม่").
   Home keeps canva-20261116.css; this file covers catalog, AI pages, course detail, login/library and policy pages. */
:root{--kc-blue:#006cff;--kc-mid:#0054c0;--kc-deep:#003b81;--kc-navy:#002341;--kc-band:linear-gradient(110deg,#006cff 0%,#0047b3 30%,#002a6b 60%,#00142f 85%,#000 100%);--kc-panel:linear-gradient(140deg,#4d86e6 0%,#1d4fa8 38%,#0b2f6c 72%,#021632 100%);--kc-ice:linear-gradient(150deg,#fff 0%,#eef5ff 55%,#d9e8ff 100%);--kc-card:linear-gradient(180deg,#fff 0%,#fff 55%,#d9e8ff 100%)}
html,body{overflow-x:clip}
#app .btn:not(.danger):not(.secondary):not(.light){background:var(--kc-blue)!important;border-color:var(--kc-blue)!important;color:#fff!important;border-radius:999px!important;font-weight:600;box-shadow:0 8px 22px #006cff40}
#app .btn.secondary{border-radius:999px!important;color:var(--kc-blue)!important;border-color:#cfe0f7!important}
#app .white-card{border:0!important;border-radius:28px!important;box-shadow:0 14px 40px #0054c01a!important}
#app :is(input,select,textarea):not([type=checkbox]):not([type=radio]){border-radius:14px!important;border-color:#cfe0f7!important}
/* kickers keep their per-section colours from canva-20261116.css */
#app :is(h1,h2){letter-spacing:-.3px}

/* ---------- Catalog page (#catalog): dark surface like the home catalog ---------- */
#app>section.wrap:has(>.catalog-tools){background:#1f1f25;box-shadow:0 0 0 100vmax #1f1f25;clip-path:inset(0 -100vmax);padding-top:56px!important;padding-bottom:70px!important;margin-top:0!important}
#app>section.wrap:has(>.catalog-tools) .section-heading h2{color:#fff!important;font-size:clamp(30px,3.8vw,52px)!important;font-weight:700!important}
#app>section.wrap:has(>.catalog-tools) .section-heading :is(p,small){color:#fff!important;font-size:20px}
#app>section.wrap:has(>.catalog-tools) .section-heading:before{content:"EXPLORE OUR COURSES";display:block;color:var(--kc-blue);font-weight:600;font-size:17px;letter-spacing:.5px;margin-bottom:8px}
html[lang=en] #app>section.wrap:has(>.catalog-tools) .section-heading:before{content:"EXPLORE OUR COURSES"}
#app>section.wrap:has(>.catalog-tools) .section-heading .section-kicker{display:none}
#app>section.wrap:has(>.catalog-tools) .chip{background:#dfe4ea!important;border:0!important;color:#1f1f25!important;border-radius:10px!important;padding:8px 22px!important;font-size:17px}
#app>section.wrap:has(>.catalog-tools) .chip.active{background:var(--kc-blue)!important;color:#fff!important;font-weight:600}
#app>section.wrap:has(>.catalog-tools) .search{border:0!important;border-radius:999px!important;padding:10px 46px 10px 20px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006cff' stroke-width='2.4'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") right 16px center/20px no-repeat!important}
#app>section.wrap:has(>.catalog-tools) .course-card,#app .ai-page .course-card{border:0!important;border-radius:28px!important;background:var(--kc-card)!important;padding:16px;box-shadow:0 14px 40px #0006;overflow:hidden}
#app .ai-page .course-card{box-shadow:0 14px 40px #0054c01f}
#app>section.wrap:has(>.catalog-tools) .course-card>a:first-child,#app :is(section.wrap:has(>.catalog-tools),.ai-page) .course-card .ai-card-art{border-radius:18px!important;overflow:hidden}
#app :is(section.wrap:has(>.catalog-tools),.ai-page) .course-card .card-body{padding:16px 6px 4px}
#app :is(section.wrap:has(>.catalog-tools),.ai-page) .course-card h3{font-size:22px;font-weight:600;line-height:1.3}
#app :is(section.wrap:has(>.catalog-tools),.ai-page) .course-card h3 a{color:#0d0d0d}
#app :is(section.wrap:has(>.catalog-tools),.ai-page) :is(.course-format,.teacher){color:var(--kc-blue)}
#app :is(section.wrap:has(>.catalog-tools),.ai-page) .teacher-mark{background:var(--kc-blue);color:#fff}
#app :is(section.wrap:has(>.catalog-tools),.ai-page) .course-price{font-size:24px;font-weight:600;color:#0d0d0d}
#app :is(section.wrap:has(>.catalog-tools),.ai-page) .ai-outcome{background:#6ea7ff!important;color:#fff!important;text-align:center;border-radius:14px!important}

/* ---------- AI landing (#ai) ---------- */
#app .ai-page>.ai-intro{background:linear-gradient(180deg,#0a3f9cd9,#0b3a8fe0 55%,#0a2f72f0),url('./assets/canva-20261116/hero.jpg') center/cover no-repeat;box-shadow:0 0 0 100vmax #0b3a8f;clip-path:inset(0 -100vmax);color:#fff;text-align:center;padding:84px 0 76px!important;max-width:none!important;margin:0 0 48px!important}
#app .ai-page>.ai-intro :is(h1,p,span){color:#fff!important}
#app .ai-page>.ai-intro h1{font-size:clamp(40px,5.2vw,72px)!important;font-weight:700!important;line-height:1.18!important;max-width:1000px;margin:0 auto 18px!important}
#app .ai-page>.ai-intro h1 span{color:#5ea0ff!important}
#app .ai-page>.ai-intro p{max-width:820px;margin:0 auto!important;font-size:clamp(16px,1.6vw,21px)!important;color:#e8f0ff!important}
#app .ai-page>.ai-intro .section-kicker{color:#dbe9ff!important;letter-spacing:1px}
#app .ai-page>.ai-intro .ai-pills{justify-content:center}
#app .ai-page .ai-pills span{background:#ffffff1f!important;border:1px solid #ffffff59!important;color:#fff!important}
#app .ai-page .ai-feature{border:0!important;border-radius:48px!important;background:var(--kc-panel)!important;color:#fff;box-shadow:0 26px 60px #0054c033!important}
#app .ai-page .ai-feature :is(h2,p,.section-kicker){color:#fff!important}
#app .ai-page .ai-feature h2 span{color:#5ea0ff!important}
#app .ai-page .ai-feature .ai-system{border:0!important;border-radius:28px!important;box-shadow:none}
#app .ai-page .ai-feature .ai-system :is(span,strong){color:var(--kc-blue)!important}
#app .ai-page .ai-feature .ai-system>div span{background:#fff!important;color:#0d2140!important}
#app .ai-page>.section-heading h2,#app .ai-page>div.section-heading h2{font-weight:700!important;color:#0d0d0d}
#app .ai-page :is(.ai-roadmap,.ai-support,.ai-included){border:0!important;border-radius:32px!important;background:var(--kc-ice)!important;box-shadow:0 12px 34px #0054c014}
#app .ai-page .ai-project{border:0!important;border-radius:32px!important;background:var(--kc-panel)!important;color:#fff}
#app .ai-page .ai-project :is(h2,p,small,span){color:#fff!important}
#app .ai-page .ai-links a{border:0!important;border-radius:999px!important;background:#fff!important;color:var(--kc-blue)!important;box-shadow:0 6px 16px #0054c01a;font-weight:600}

/* PERSONAL AI OS / AI course detail hero */
#app .ai-page>.ai-detail-hero{border:0!important;border-radius:40px!important;background:var(--kc-band)!important;color:#fff;box-shadow:0 22px 50px #0054c033!important}
#app .ai-page>.ai-detail-hero :is(h1,h2,p,.section-kicker,span){color:#fff!important}
#app .ai-page>.ai-detail-hero h1{color:#fff!important}
#app .ai-page>.ai-detail-hero h1 span,#app .ai-page>.ai-detail-hero h2 span{color:#5ea0ff!important}
#app .ai-page>.ai-detail-hero .ai-detail-cover{border:0!important;border-radius:28px!important}
#app .ai-page>.ai-detail-hero .btn{background:#fff!important;color:var(--kc-blue)!important;border-color:#fff!important}
#app .ai-page .ai-modules article{border:0!important;border-radius:24px!important;background:var(--kc-card)!important;box-shadow:0 10px 28px #0054c014}
#app .ai-page .ai-modules article>span{color:var(--kc-blue)!important;font-weight:700}

/* ---------- Course detail (hotel / live / service / people / ai / property) ---------- */
#app .ai-course .course-visual{border-radius:36px!important;overflow:hidden;border:0!important;box-shadow:0 22px 50px #00234126}
#app .ai-course .course-visual img{border-radius:36px!important}
#app .ai-course>.ai-hero{border:0!important;border-radius:40px!important;background:var(--kc-band)!important;color:#fff;box-shadow:0 22px 50px #0054c033!important}
#app .ai-course>.ai-hero :is(h1,h2,p,span,small,.section-kicker){color:#fff!important}
#app .ai-course>.ai-hero h1{font-size:clamp(34px,3.6vw,52px)!important;font-weight:700!important}
#app .ai-course>.ai-hero h2{color:#dbe9ff!important}
#app .ai-course>.ai-hero .ai-tags span{background:#ffffff1f!important;border:1px solid #ffffff59!important;color:#fff!important;border-radius:999px!important}
#app .ai-course>.ai-hero .ai-offer{border:0!important;border-radius:28px!important;background:var(--kc-card)!important;box-shadow:0 18px 44px #0007}
#app .ai-course>.ai-hero .ai-offer :is(p,span,small,strong,b,li,h3){color:#0d2140!important}
#app .ai-course>.ai-hero .ai-offer :is(strong,b,.ai-price){color:#0d0d0d!important}
#app .ai-course .ai-section{border:0!important;border-radius:32px!important;background:var(--kc-ice)!important;box-shadow:0 12px 34px #0054c014}
#app .ai-course .ai-section h2{font-weight:700!important;color:#0d0d0d!important}
#app .ai-course .ai-section-title :is(span,small){color:var(--kc-blue)!important}
#app .ai-course .ai-section li::marker{color:var(--kc-blue)}
#app .ai-course .service-heading,#app .ai-course .ai-learning-heading{border:0!important;border-radius:32px!important;background:var(--kc-band)!important}
#app .ai-course .service-heading :is(h2,p,span,small){color:#fff!important}
#app .ai-course .service-module,#app .ai-course .ai-example{border:0!important;border-radius:24px!important;background:var(--kc-card)!important;box-shadow:0 10px 28px #0054c014}
#app .ai-course .service-module :is(span,small):first-child,#app .ai-course .ai-example>span:first-child{color:var(--kc-blue)!important;font-weight:700}
#app .ai-course .service-module h3,#app .ai-course .ai-example h3{color:#0d0d0d!important;font-weight:600}
#app .ai-course .ai-final{border:0!important;border-radius:40px!important;background:var(--kc-band)!important;color:#fff;box-shadow:0 22px 50px #0054c033}
#app .ai-course .ai-final :is(h2,h3,p,li,span,small){color:#fff!important}
#app .ai-course .ai-final .ai-preparation{border:0!important;border-radius:24px!important;background:#ffffff14!important;border:1px solid #ffffff2e!important}
#app .ai-course .ai-final .btn{background:#fff!important;color:var(--kc-blue)!important;border-color:#fff!important}
#app .ai-course .atmosphere .atmos-heading{background:none!important;padding:0!important}
#app .ai-course .atmosphere .atmos-heading h2{font-weight:700;color:#0d0d0d}
#app .ai-course .atmosphere .atmos-photo{border-radius:18px}
#app .breadcrumb,#app .crumbs{color:#5a6f8a}

/* ---------- Login / password / library ---------- */
#app .auth-shell .auth-story{border:0!important;border-radius:36px!important;background:var(--kc-band)!important;box-shadow:0 22px 50px #0054c033}
#app .auth-shell .auth-story :is(h1,h2,p,span,small,strong){color:#fff!important}
#app .auth-shell .auth-story h1 span,#app .auth-shell .auth-story h2 span{color:#5ea0ff!important}
#app .auth-shell .auth-card{border-radius:36px!important}
#app .auth-shell .auth-card h2{font-weight:700;color:#0d0d0d}

/* ---------- Policy pages ---------- */
#app .intro-text{border-radius:32px!important;background:var(--kc-ice)!important}
#app .intro-text .page-title{font-weight:700!important;color:#0d0d0d!important}
#app .policy-list li::marker{color:var(--kc-blue);font-weight:700}

@media(max-width:760px){
 #app .ai-page>.ai-intro{padding:56px 0 48px!important}
 #app .ai-page>.ai-intro h1{font-size:38px!important}
 #app :is(.ai-course>.ai-hero,.ai-page>.ai-detail-hero,.ai-course .ai-final){border-radius:28px!important}
 #app .ai-course .course-visual,#app .ai-course .course-visual img{border-radius:24px!important}
 #app>section.wrap:has(>.catalog-tools) .chip{padding:7px 14px!important;font-size:15px}
}
#app>section.wrap:has(>.catalog-tools) .section-heading{flex-wrap:wrap!important;align-items:flex-end!important;gap:6px 24px}
#app>section.wrap:has(>.catalog-tools) .section-heading:before{flex-basis:100%;margin-bottom:0}
#app>section.wrap:has(>.catalog-tools) .section-heading>div{flex:1 1 320px;text-align:left}

/* ---------- layout-critic round (16 Nov 2026) ---------- */
#app :is(h1,h2,h3){text-wrap:balance}
/* hero highlight word: lighter blue for contrast on the overlay */
#app .brand-hero h1 span{color:#5ea0ff!important}
/* main hero CTA: white pill on the blue photo */
#app .brand-hero a.btn{background:#fff!important;color:#006cff!important;border-color:#fff!important}
#app .brand-hero a.btn:hover{background:#eaf3ff!important}
/* AI card outcome box: dark text on pale blue */
#app .course-card .ai-outcome{background:#eaf3ff!important;color:#003b81!important;font-weight:500}
/* last lone course card: wide flagship card */
/* last lone course card: wide flagship card on desktop only */
@media(min-width:761px){
 #app .grid>.course-card:last-child:nth-child(3n+1){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:stretch}
 #app .grid>.course-card:last-child:nth-child(3n+1)>:first-child{height:100%;min-height:300px}
 #app .grid>.course-card:last-child:nth-child(3n+1)>:first-child img{height:100%;object-fit:cover}
 #app .grid>.course-card:last-child:nth-child(3n+1)>.card-body{padding:32px 40px!important;align-self:center}
}
/* AI page hero: full width, flush to the header */
#app .ai-page>.ai-intro{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-top:0!important;border-radius:0!important;box-sizing:border-box;padding-left:max(24px,calc(50vw - 570px))!important;padding-right:max(24px,calc(50vw - 570px))!important}
#app section.ai-page:has(>.ai-intro:first-child){padding-top:0!important;margin-top:0!important}
/* course detail: cover photo becomes a full-width hero, offer band follows full width */
#app .ai-course>.course-visual{width:100vw!important;max-width:none!important;margin:0 0 0 calc(50% - 50vw)!important;border-radius:0!important;height:clamp(240px,34vw,460px);overflow:hidden;background:#002341}
#app .ai-course>.course-visual img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 45%}
#app .ai-course>.ai-hero{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-top:0!important;border-radius:0!important;box-sizing:border-box;padding-left:max(24px,calc(50vw - 570px))!important;padding-right:max(24px,calc(50vw - 570px))!important}
#app .ai-course>.breadcrumb{margin-bottom:14px}
/* modules: last two sit as a pair when the count is even */
#app .service-module-grid>.service-module:last-child:nth-child(even){grid-column:auto!important}
/* closing CTA band: white button, readable link */
#app .ai-final a.btn{background:#fff!important;color:#006cff!important;border-color:#fff!important}
#app .ai-final .ai-preparation a{color:#9cc6ff!important;text-decoration:underline}
/* mobile galleries: a lone last photo spans the row */
@media(max-width:760px){#app .atmos-grid>:last-child:nth-child(even){grid-column:1/-1}}
/* terms: centred card */
#app section.wrap:has(>.intro-text){display:flex;justify-content:center}
#app .intro-text{max-width:860px;width:100%}
#app :is(section.wrap:has(>.catalog-tools),.ai-page,.grid) .course-card p.ai-outcome{background:#eaf3ff!important;color:#003b81!important}
#app :is(.ai-final,.brand-hero) a.btn:not(.danger):not(.secondary):not(.light){background:#fff!important;color:#006cff!important;border-color:#fff!important}
/* cover images carry a navy text panel on the left; show the photo part across the full width */
#app .ai-course>.course-visual{position:relative}
#app .ai-course>.course-visual img{position:absolute!important;right:0;top:50%;transform:translateY(-50%);width:162%!important;height:auto!important;max-width:none!important;object-fit:fill!important}
@media(max-width:760px){#app .ai-course>.course-visual{height:300px}}
#app .ai-feature h2 span{color:#a6ceff!important}
#app :is(section.wrap:has(>.catalog-tools),.ai-page,.grid) .course-card p.ai-outcome{background:#e3eeff!important;border:1px solid #cfe0ff!important}
#app section.ai-page section.ai-feature .ai-feature-copy h2 span{color:#a6ceff!important}
/* course pages use the same 1240px content width as Academy home */
#app .ai-course.wrap{max-width:1360px!important}
#app .ai-course>:is(.ai-hero) {padding-left:max(24px,calc(50vw - 620px))!important;padding-right:max(24px,calc(50vw - 620px))!important}
#app .ai-page>.ai-intro{padding-left:max(24px,calc(50vw - 620px))!important;padding-right:max(24px,calc(50vw - 620px))!important}
#app section.wrap.ai-page{max-width:1360px!important}
#app>*>section.wrap.ai-feature,#app>section.wrap.ai-feature{max-width:1240px!important;margin-left:auto!important;margin-right:auto!important}

/* one footer: PACH legal block = bottom row of the Academy footer (logo shown once) */
body:has(#app) footer .footer-brand img[src*="pach"],body:has(#app) footer img[src*="pach-logo"]{display:none!important}
body:has(#app) #pach-company-details{background:transparent!important;border-top:0!important;padding:0 24px 32px!important;font-size:13px!important;line-height:1.65!important;color:#4a6382!important}
body:has(#app) #pach-company-details>div{max-width:1240px!important;border-top:1px solid #c2dbf0;padding-top:22px;align-items:flex-start!important;gap:20px!important}
body:has(#app) #pach-company-details img{width:88px!important}
body:has(#app) #pach-company-details p:first-child{color:#103058!important;font-size:15px!important}
/* folder tabs: same as the property site */
@media(min-width:1001px){
 .kines-header .k-panel{background:linear-gradient(0deg,#a9cdff 0%,#d6e8ff 38%,#f3f8ff 72%,#fff 100%)!important}
 .kines-header .k-subnav>a{transition:height .22s ease,background-color .22s ease,color .22s ease,box-shadow .22s ease!important}
 .kines-header .k-subnav>a:not([aria-current=page]):hover{transform:none!important;height:52px!important}
 .kines-header .k-subnav>a[aria-current=page]:hover{transform:none!important}
}
body:has(#app) #pach-company-details{padding-bottom:40px!important}
body:has(#app) #pach-company-details>div::after{content:"© 2026 Kines Hospitality สงวนลิขสิทธิ์";flex-basis:100%;text-align:center;font-size:12px;color:#6b819c;padding-top:24px}
html[lang=en] body:has(#app) #pach-company-details>div::after{content:"© 2026 Kines Hospitality. All rights reserved."}

/* 17 Nov 2026 (Art): remove the stretched full-width cover photo on course detail pages (hotel-live-3, hotel, ai, people, service). */
.service-course > figure.course-visual{display:none!important}
