/* GenGyan UX layer (added 6 Dec 2026). Loaded on every page by gg-speed.php (step 12).
   Preview any page without it: add ?noux=1 to the URL. */
:root{--gg-g:#05053c;--gg-g2:#1a1a5e;--gg-navy:#05053c;--gg-ink:#1d2433;--gg-mut:#5b6678;--gg-bg:#f6f8fb;--gg-line:#e4e8ef;--gg-r:14px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{overflow-x:clip}
img{max-width:100%;height:auto}
video,iframe,embed,object{max-width:100%}
:focus-visible{outline:3px solid #b20000!important;outline-offset:2px}
a,button{-webkit-tap-highlight-color:rgba(5,5,60,.15)}
.gg-tbl{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;margin-bottom:16px}
.gg-tbl>table{margin-bottom:0}

/* Homepage course cards: tidy spacing and hover feedback */
.choose-course .row>[class*=col-]{margin-bottom:24px}
.choose-course .item-course{border-radius:16px;transition:transform .2s ease,box-shadow .2s ease;height:100%}
.choose-course .item-course:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(23,35,63,.10)}

/* Legacy page banners (city and course pages): readable text over the photo */
.best-staff.background-opacity .layout-left .course-title:not(h1),
.best-staff.background-opacity .layout-left p{color:rgba(255,255,255,.94)!important;text-shadow:0 1px 3px rgba(0,0,0,.45);font-size:17px!important;line-height:1.65!important;font-weight:400!important}

/* Quick-action bar (phones only, built by gg-ux.js) */
.gg-mbar{display:none}

@media (max-width:991px){
  .gg-calc-fab{transform:scale(.9);transform-origin:right center}
}

@media (max-width:767px){
  /* header: drop the contact strip (the same details are in the action bar and footer) */
  .header-topbar{display:none!important}
  .gg-tk-wrap{font-size:12.5px}
  /* one clear set of actions instead of four floating buttons */
  #back-top,.ggwa-tip,.ggwa-fab,.gg-calc-fab{display:none!important}
  body.gg-has-mbar{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  .gg-mbar{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:grid;grid-template-columns:repeat(var(--n,4),1fr);gap:4px;background:#fff;border-top:1px solid var(--gg-line);box-shadow:0 -6px 20px rgba(23,35,63,.08);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
  .gg-mbar a,.gg-mbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;border:0;background:none;padding:0;font:600 11.5px/1.15 Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--gg-ink)!important;text-decoration:none!important;border-radius:12px;cursor:pointer}
  .gg-mbar svg{width:22px;height:22px;flex:none}
  .gg-mbar .wa svg{color:#05053c}
  .gg-mbar .cta{background:var(--gg-g);color:#fff!important}
  .gg-mbar .cta svg{color:#fff}
  .ggwa-panel{bottom:80px!important}
  /* comfortable, zoom-free forms */
  input,select,textarea{font-size:16px!important}
  /* headings that fit small screens */
  h1{font-size:clamp(26px,7.2vw,34px)!important;line-height:1.2!important;word-wrap:break-word}
  h2{font-size:clamp(22px,6vw,28px)!important;line-height:1.25!important}
  .best-staff.background-opacity .layout-left .course-title:not(h1),.best-staff.background-opacity .layout-left p{font-size:15.5px!important}
  /* homepage course cards: two compact columns */
  .choose-course .row>[class*=col-]{margin-bottom:12px;padding-left:6px;padding-right:6px}
  .choose-course .item-course{padding:10px!important}
  .choose-course .item-course .icon-circle{height:auto!important;padding:8px 0!important}
  .choose-course .item-course .icon-background{height:auto!important;padding:10px!important}
  .choose-course .item-course img{max-height:84px;width:auto!important;height:auto!important}
  .choose-course .item-course h4,.choose-course .item-course .name-course{font-size:14px!important;line-height:1.3!important}
  /* footer: shorter on phones */
  .footer-main .gg-ft-gal,.footer-main .gallery-widget{display:none!important}
  .footer-main .sd380{width:100%!important;float:none!important}
  .footer-main .sd380 .col-xs-4{width:50%!important}
  .footer-main .col-md-3:not([class*=col-xs]):not(.sd380){width:50%!important;float:left!important;padding-left:6px;padding-right:6px}
  .footer-main .col-md-3:not([class*=col-xs]):not(.sd380){margin:0 0 8px!important;min-height:0!important;height:auto!important}
  .footer-main .col-md-3:not([class*=col-xs]):not(.sd380) a,.footer-main .col-md-3:not([class*=col-xs]):not(.sd380) button{display:block;width:100%;font-size:12px!important;line-height:1.3!important;padding:12px 8px!important;text-align:center;height:auto!important;min-height:48px}
  .footer-main{padding-top:36px!important;padding-bottom:20px!important}
}


/* ===== Phase 2 (6 Dec 2026) ===== */
/* Brand accents: white, navy #05053c, red #b20000 */
.isoc-kicker{color:#b20000!important}
.ggrv-rec{color:#05053c!important}
.owl-dot.active span,.owl-dot.active{background-color:#05053c;border-color:#05053c}
/* Headings sitting on dark photo backgrounds must be white */
.background-opacity .group-title-index .top-title,.background-opacity .group-title-index .center-title,.background-opacity .group-title-index h2{color:#fff!important}
.background-opacity .group-title-index .bottom-title,.background-opacity .group-title-index .bottom-icon{color:#fff!important;border-color:#fff!important}
.background-opacity .group-title-index .bottom-title::before,.background-opacity .group-title-index .bottom-title::after{background:#fff!important}
/* ISO band appears on the homepage, so the footer copy is not needed there */
body:has(.isoc-band) footer .isoc-strip{display:none}

/* Homepage order: courses and batches first, proof next, extras last */
div.content:has(> #workshop-gallery){display:flex;flex-direction:column}
div.content:has(> #workshop-gallery) > *{order:50;min-width:0}
div.content:has(> #workshop-gallery) > .slider-banner{order:1}
div.content:has(> #workshop-gallery) > .ggtp-strip{order:2}
div.content:has(> #workshop-gallery) > .choose-course{order:3}
div.content:has(> #workshop-gallery) > #upcoming-batches{order:4}
div.content:has(> #workshop-gallery) > #reviews{order:5}
div.content:has(> #workshop-gallery) > .why-choose-us{order:6}
div.content:has(> #workshop-gallery) > .section-padding.background-opacity:not(.slider-talk-about-us):not(.progress-bars){order:7}
div.content:has(> #workshop-gallery) > .isoc-band{order:8}
div.content:has(> #workshop-gallery) > .progress-bars{order:9}
div.content:has(> #workshop-gallery) > #workshop-gallery{order:10}
div.content:has(> #workshop-gallery) > .slider-talk-about-us{order:11}
div.content:has(> #workshop-gallery) > .top-courses{order:12}
div.content:has(> #workshop-gallery) > .picture-gallery{order:13}

/* Tablets: calculator becomes a small round button instead of a tall side tab */
@media (min-width:768px) and (max-width:1199px){
 .gg-calc-fab{writing-mode:horizontal-tb!important;top:auto!important;bottom:96px!important;right:16px!important;transform:none!important;width:52px!important;height:52px!important;padding:0!important;border-radius:50%!important;font-size:0!important;display:flex!important;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(5,5,60,.3)}
 .gg-calc-fab i{font-size:21px!important;margin:0!important;transform:none!important}
}

@media (max-width:767px){
 /* ISO band: seals side by side */
 .isoc-band .isoc-seals{display:grid!important;grid-template-columns:1fr 1fr;gap:12px}
 .isoc-band .isoc-seal{width:96px!important;height:96px!important}
 .isoc-band .isoc-txt p{font-size:15px;line-height:1.6}
 /* Upcoming batches: one compact card per batch */
 .ggub-row:not(.hd){display:grid!important;grid-template-columns:1fr auto;grid-template-areas:"c c" "d e" "f e";gap:4px 12px;align-items:center;padding:14px 6px!important}
 .ggub-row:not(.hd) > .ggub-c{grid-area:c}
 .ggub-row:not(.hd) > .ggub-d{grid-area:d;font-size:14.5px;line-height:1.35}
 .ggub-row:not(.hd) > .ggub-f{grid-area:f;font-size:13px;text-align:left!important}
 .ggub-row:not(.hd) > :nth-child(4){grid-area:e;justify-self:end}
 .ggub-row:not(.hd) > :nth-child(4) a,.ggub-row:not(.hd) > a:nth-child(4){min-height:40px;padding:8px 18px!important}
 /* Footer accordion (built by gg-ux.js) */
 footer .gg-acc-t{position:relative;cursor:pointer;padding-right:36px!important;user-select:none}
 footer .gg-acc-t::after{content:"+";position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:24px;font-weight:400;line-height:1;color:#fff}
 footer .gg-acc.gg-open .gg-acc-t::after{content:"\2212"}
 footer .gg-acc:not(.gg-open) .gg-acc-b{display:none!important}
 footer .gg-acc{border-bottom:1px solid rgba(255,255,255,.15);margin-bottom:0!important;padding-bottom:4px}
 footer .footer-main .sd380{margin-bottom:6px!important}
}

/* Phase 2b: tighter mobile spacing */
@media (max-width:767px){
 .section-padding{padding-top:44px!important;padding-bottom:44px!important}
 .group-title-index{margin-bottom:22px!important}
 .choose-course .choose-course-wrapper>[class*=col-]{margin-bottom:12px!important}
 .choose-course .item-course{margin-bottom:0!important}
 .choose-course .item-course .icon-circle{min-height:0!important;margin-bottom:4px!important}
 .choose-course .item-course .name-course{margin-top:6px!important}
 .choose-course .item-course h3{font-size:15.5px!important;line-height:1.3!important}
}

/* Phase 2c: testimonial slider contrast */
.slider-talk-about-us .peopel-comment{background:#fff!important;color:#05053c!important;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:16px;line-height:1.65}
.slider-talk-about-us .peopel-comment::before,.slider-talk-about-us .peopel-comment::after{border-top-color:#fff!important}
.slider-talk-about-us .peopel-name{color:#fff!important;font-weight:700}
.slider-talk-about-us .people-job a{color:#fff!important;text-decoration:underline;text-underline-offset:3px}

/* Phase 2d: enquiry form usable on phones (iPhone fix, 6 Dec 2026) */
/* iOS Safari cannot draw fixed backgrounds: they show as blank or hugely zoomed blocks */
@media (max-width:1199px),(hover:none){
 .background-opacity,.best-staff,.slider-talk-about-us,[class*=parallax]{background-attachment:scroll!important}
}
.ggf,.ggf-form{scroll-margin-top:84px}
@media (max-width:767px){
 /* plain navy behind the form instead of a busy photo */
 .best-staff.background-opacity{background-image:none!important;background-color:#05053c!important}
 .best-staff.background-opacity::before,.best-staff.background-opacity::after{display:none!important}
 /* form first, trainer bio after it */
 .best-staff .best-staff-wrapper{display:flex!important;flex-direction:column}
 .best-staff .best-staff-wrapper>.layout-right{order:-1;margin-top:0!important}
 .best-staff .best-staff-wrapper>[class*=col-]{width:100%!important;float:none!important;padding-left:0!important;padding-right:0!important}
 /* full-width form card */
 .best-staff .layout-right .widget,.best-staff .layout-right [class*=col-],.layout-right .popular-course-widget{width:100%!important;float:none!important;padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}
 .ggf.ggf-compact,.ggf{width:100%!important;max-width:none!important;box-sizing:border-box;padding:18px 16px 20px!important;border-radius:14px}
 .ggf-form,.ggf-form input,.ggf-form select,.ggf-form textarea,.ggf-form button{max-width:100%!important;box-sizing:border-box}
 .ggf-form input,.ggf-form select,.ggf-form textarea{min-height:48px;width:100%}
 .ggf-form button,.ggf-form [type=submit]{min-height:50px;width:100%}
 /* homepage: enquiry form straight after the batch calendar */
 div.content:has(> #workshop-gallery) > .best-staff{order:4!important}
 div.content:has(> #workshop-gallery) > #upcoming-batches{order:3!important}
 div.content:has(> #workshop-gallery) > .choose-course{order:3!important}
}

@media (max-width:767px){
 /* forms nested inside another card: drop the doubled padding */
 .gg-card:has(.ggf),.ggc-card:has(.ggf){padding:16px 12px!important}
 .gg-card .ggf.ggf-compact,.ggc-card .ggf.ggf-compact,.gg-card .ggf,.ggc-card .ggf{padding:2px 0 4px!important;box-shadow:none!important;border:0!important;background:transparent!important}
}

/* Reviews above Upcoming batches (owner request, 6 Dec 2026) */
div.content:has(> #workshop-gallery) > #reviews{order:4!important}
div.content:has(> #workshop-gallery) > #upcoming-batches{order:5!important}
@media (max-width:767px){
 div.content:has(> #workshop-gallery) > .best-staff{order:5!important}
}
