/* TRACOILGAS Academy Connect 2.3.0 */
.tg-academy{--black:#0b0d0f;--dark:#0b2736;--orange:#f58220;--ink:#142532;--muted:#64737d;--line:#dfe5e9;--soft:#f5f7f8;width:100vw;max-width:100vw;position:relative;left:50%;margin-left:-50vw;background:#fff;color:var(--ink);font-family:inherit;overflow:hidden;padding:0 0 48px}.tg-academy *{box-sizing:border-box}.tg-academy a{text-decoration:none}.tg-academy button,.tg-academy input,.tg-academy select{font:inherit}
.tg-academy__layout{width:min(1780px,calc(100vw - 28px));margin:0 auto;display:grid;grid-template-columns:270px minmax(0,1fr) 280px;align-items:start}.tg-sidebar{min-width:0;background:#f7f9fa}.tg-sidebar--left{border-right:1px solid var(--line)}.tg-sidebar--right{border-left:1px solid var(--line);padding:18px 16px}.tg-side-title{padding:28px 22px 16px}.tg-side-title span,.tg-hero__content>span,.tg-toolbar label{display:block;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.tg-side-title span{color:#566773}.tg-side-title h2{margin:5px 0 0;font-size:28px;line-height:1.05;color:#132633;font-weight:500}.tg-area-nav{padding:0 16px 16px}.tg-area-nav button{width:100%;border:0;background:transparent;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 10px;margin:2px 0;border-radius:6px;text-align:left;color:#263a47;cursor:pointer;transition:.18s}.tg-area-nav button span:not(.tg-nav-icon){font-size:14px;line-height:1.25}.tg-area-nav button em{font-size:12px;font-style:normal;color:#63717a}.tg-area-nav button:hover{background:#eef2f4}.tg-area-nav button.is-active{background:var(--orange);color:#fff;box-shadow:0 5px 14px rgba(245,130,32,.22)}.tg-area-nav button.is-active em,.tg-area-nav button.is-active .tg-nav-icon{color:#fff}.tg-nav-icon{font-size:16px;color:var(--orange);text-align:center}
.tg-promo{position:relative;overflow:hidden;color:#fff;background:#0c1e28;min-height:270px;margin:10px 16px 16px;border-radius:6px}.tg-promo:before{content:"";position:absolute;inset:0;background:linear-gradient(145deg,rgba(8,18,24,.15),rgba(8,18,24,.8)),radial-gradient(circle at 78% 20%,rgba(245,130,32,.4),transparent 26%),linear-gradient(135deg,transparent 46%,rgba(245,130,32,.35) 47% 48%,transparent 49%)}.tg-promo__content{position:absolute;inset:auto 16px 16px;z-index:2}.tg-promo__content span{display:block;color:var(--orange);font-size:9px;font-weight:800;letter-spacing:.1em}.tg-promo__content strong{display:block;font-size:24px;line-height:1.05;margin:7px 0 10px}.tg-promo__content p{font-size:12px;line-height:1.4;margin:0 0 15px;color:#eef3f5}.tg-promo__content a{display:block;text-align:center;background:var(--orange);color:#fff;padding:11px 10px;border-radius:4px;font-size:12px;font-weight:800}.tg-business{padding:16px;border-top:1px solid var(--line);font-size:12px}.tg-business strong,.tg-business span{display:block}.tg-business span{margin:5px 0 12px;color:#60717b}.tg-business a{display:block;text-align:center;border:1px solid #aebcc4;background:#fff;color:#152934;padding:10px;border-radius:4px;font-weight:700}
.tg-main{min-width:0;background:#fff}.tg-hero{position:relative;min-height:305px;overflow:hidden;background:#08171f;color:#fff}.tg-hero__photo{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,12,17,.96) 0%,rgba(4,12,17,.8) 42%,rgba(4,12,17,.25) 78%,rgba(4,12,17,.45) 100%),linear-gradient(140deg,#102d3a 0%,#163f51 52%,#0d202a 100%)}.tg-hero__photo:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 58%,rgba(245,130,32,.32),transparent 16%),linear-gradient(125deg,transparent 54%,rgba(245,130,32,.75) 55% 56%,transparent 57%),linear-gradient(90deg,transparent 0 72%,rgba(255,255,255,.06) 73% 74%,transparent 75%)}.tg-hero__content{position:relative;z-index:2;padding:34px 220px 28px 36px}.tg-hero__content>span{color:var(--orange);margin-bottom:10px}.tg-hero h1{margin:0 0 13px;font-size:46px;line-height:1.02;font-weight:600;letter-spacing:-.025em;max-width:760px}.tg-hero p{margin:0;color:#f2f5f6;font-size:17px;line-height:1.45;max-width:680px}.tg-hero__benefits{display:grid;grid-template-columns:repeat(4,auto);justify-content:start;gap:28px;margin-top:28px}.tg-hero__benefits b{display:flex;gap:9px;align-items:center;color:#fff;font-size:18px}.tg-hero__benefits i{font-style:normal;font-size:11px;font-weight:600;line-height:1.25}.tg-benefit-icon{width:25px;height:25px;border:2px solid var(--orange);color:var(--orange);border-radius:50%;display:grid;place-items:center;font-size:8px!important}.tg-hero__count{position:absolute;right:28px;top:38px;z-index:3;width:120px}.tg-hero__count strong{display:block;font-size:56px;line-height:1;font-weight:600}.tg-hero__count span{font-size:11px}.tg-hero__count hr{width:40px;margin:14px 0;border:0;border-top:3px solid var(--orange)}.tg-hero__count small{font-size:8px;line-height:1.4;letter-spacing:.06em}
.tg-catalog{padding:24px 18px 0}.tg-toolbar{display:grid;grid-template-columns:1fr 1.7fr .72fr;gap:18px;margin-bottom:12px}.tg-toolbar label{color:#3b4d58;margin:0 0 7px;font-size:9px}.tg-toolbar select,.tg-toolbar input{width:100%;height:42px;border:1px solid #cbd5db;border-radius:4px;background:#fff;padding:0 12px;color:#263742;font-size:13px;outline:none}.tg-toolbar select:focus,.tg-toolbar input:focus{border-color:var(--orange);box-shadow:0 0 0 2px rgba(245,130,32,.12)}.tg-search{position:relative}.tg-search input{padding-right:38px}.tg-search>span{position:absolute;right:12px;bottom:8px;font-size:21px;color:#53636e}.tg-results{text-align:right;font-size:12px;color:#687782;margin:0 2px 14px}.tg-course-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.tg-course-card{min-width:0;display:flex;flex-direction:column;border:1px solid #dfe5e9;border-radius:7px;background:#fff;overflow:hidden;box-shadow:0 3px 14px rgba(10,25,35,.08);transition:transform .2s,box-shadow .2s}.tg-course-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(10,25,35,.14)}.tg-course-card[hidden]{display:none!important}.tg-course-card__media{height:168px;position:relative;display:block;overflow:hidden;background:#153645}.tg-course-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s}.tg-course-card:hover .tg-course-card__media img{transform:scale(1.035)}.tg-course-card__media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(4,15,21,.52) 100%);pointer-events:none}.tg-course-card__area{position:absolute;left:12px;bottom:0;z-index:2;padding:7px 10px;background:rgba(10,29,39,.94);color:#fff;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.tg-course-card__body{padding:16px 17px 15px;display:flex;flex-direction:column;flex:1;min-height:325px}.tg-course-card h3{font-size:18px;line-height:1.14;letter-spacing:-.02em;margin:0 0 10px;color:#0c1216;font-weight:800}.tg-course-card p{font-size:12.5px;line-height:1.42;color:#53636d;margin:0 0 13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tg-course-card__meta{display:grid;gap:7px;margin-top:auto;padding-top:9px}.tg-course-card__meta div{display:flex;gap:8px;font-size:11px;line-height:1.3;color:#41525d}.tg-icon{width:16px;color:#1e3543}.tg-course-card__cta{margin-top:12px}.tg-course-card__cta a{display:block;text-align:center;padding:11px;background:var(--orange);color:#fff;border-radius:4px;font-size:12px;font-weight:800}.tg-course-card__cta a:hover{background:#db6d10}.tg-no-results,.tg-error{padding:24px;border:1px solid var(--line);margin-top:15px}.tg-why{background:#f7f8f9;border-radius:6px;padding:20px 16px}.tg-why h2{font-size:22px;line-height:1.14;margin:0 0 18px;color:#132330;font-weight:600}.tg-why ul{padding:0;margin:0;list-style:none}.tg-why li{display:flex;gap:11px;align-items:flex-start;padding:11px 0;color:#283b47;font-size:12px;line-height:1.35;border-top:1px solid #e2e7ea}.tg-why li b{color:var(--orange);font-size:18px;line-height:1}.tg-promo--right{margin:16px 0;min-height:210px}.tg-promo--right .tg-promo__content{bottom:18px}.tg-promo--right .tg-promo__content strong{font-size:21px}.tg-contact{background:#f7f8f9;padding:19px 16px;border-radius:6px;display:flex;flex-direction:column;gap:13px;text-align:center}.tg-contact strong{font-size:14px;line-height:1.25}.tg-contact a{border:1px solid #b9c6ce;border-radius:4px;padding:11px;color:#152934;font-size:12px;font-weight:700;background:#fff}.tg-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:16px 18px 0;background:#0f2938;color:#fff;border-radius:5px;overflow:hidden}.tg-stats div{padding:20px 22px;display:grid;grid-template-columns:38px 1fr;column-gap:9px;align-items:center;border-right:1px solid rgba(255,255,255,.2)}.tg-stats div:last-child{border-right:0}.tg-stats strong{grid-row:span 2;color:var(--orange);font-size:28px}.tg-stats b{font-size:23px}.tg-stats span{font-size:11px;color:#dbe3e7}
@media(max-width:1450px){.tg-academy__layout{grid-template-columns:245px minmax(0,1fr) 250px}.tg-hero h1{font-size:42px}.tg-hero__benefits{gap:18px}.tg-course-grid{gap:13px}.tg-course-card__body{padding-left:14px;padding-right:14px}}@media(max-width:1180px){.tg-academy__layout{grid-template-columns:220px minmax(0,1fr)}.tg-sidebar--right{display:none}.tg-course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tg-hero__count{right:24px}.tg-hero__content{padding-right:165px}}@media(max-width:920px){.tg-academy__layout{grid-template-columns:190px minmax(0,1fr)}.tg-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tg-hero{min-height:285px}.tg-hero h1{font-size:37px}.tg-hero__benefits{grid-template-columns:repeat(2,auto);gap:12px 20px}.tg-toolbar{grid-template-columns:1fr 1.5fr}.tg-sort{display:none}}@media(max-width:700px){.tg-academy__layout{display:block;width:100%}.tg-sidebar--left{border-right:0;border-bottom:1px solid var(--line)}.tg-side-title{padding:20px 16px 12px}.tg-area-nav{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;padding:0 10px 12px}.tg-promo--left,.tg-business{display:none}.tg-hero{min-height:320px}.tg-hero__content{padding:25px 20px}.tg-hero h1{font-size:32px;max-width:75%}.tg-hero p{font-size:15px}.tg-hero__count{top:25px;right:18px;width:80px}.tg-hero__count strong{font-size:38px}.tg-hero__benefits{display:none}.tg-catalog{padding:18px 12px 0}.tg-toolbar{grid-template-columns:1fr;gap:10px}.tg-sort{display:block}.tg-course-grid{grid-template-columns:1fr}.tg-course-card__media{height:190px}.tg-course-card__body{min-height:0}.tg-stats{grid-template-columns:1fr;margin:14px 12px 0}.tg-stats div{border-right:0;border-bottom:1px solid rgba(255,255,255,.2)}.tg-stats div:last-child{border-bottom:0}}@media(max-width:460px){.tg-area-nav{grid-template-columns:1fr}.tg-hero__count{position:relative;top:auto;right:auto;margin:-5px 20px 16px;padding:0 20px;display:flex;gap:8px;align-items:end}.tg-hero__count hr,.tg-hero__count small{display:none}.tg-hero h1{max-width:100%}}

/* v2.4.0 — approved visual system: compact, aligned, professional SVG icons */
.tg-academy{--orange:#f58220;--orange-dark:#d9670c;--navy:#082b3c;--ink:#122633;--muted:#5f707b;--line:#dce4e8}
.tg-course-card{border-radius:6px;box-shadow:0 2px 10px rgba(9,31,43,.07)}
.tg-course-card__media{height:160px}
.tg-course-card__media img{object-fit:cover}
.tg-course-card__area{left:10px;padding:6px 9px;font-size:8.5px;border-radius:2px 2px 0 0;background:rgba(8,28,39,.94)}
.tg-course-card__body{padding:15px 16px 14px;min-height:312px}
.tg-course-card h3{font-size:17px;line-height:1.14;margin-bottom:9px}
.tg-course-card p{font-size:12px;line-height:1.38;margin-bottom:10px;-webkit-line-clamp:3}
.tg-course-card__meta{gap:6px;padding-top:8px}
.tg-course-card__meta div{gap:8px;font-size:11px;line-height:1.25;min-height:17px}
.tg-meta-icon{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 17px;color:#173646}
.tg-meta-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.tg-course-card__cta{margin-top:11px}
.tg-course-card__cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:10px 12px;background:var(--orange);color:#fff;border-radius:4px;font-size:12px;font-weight:800;cursor:pointer;transition:background .18s,transform .18s}
.tg-course-card__cta:hover{background:var(--orange-dark);transform:translateY(-1px)}
.tg-arrow{font-size:17px;line-height:1}
.tg-hero{min-height:292px}
.tg-hero__content{padding:30px 210px 24px 34px}
.tg-hero h1{font-size:43px;max-width:720px}
.tg-hero p{font-size:16px;max-width:660px}
.tg-hero__benefits{gap:22px;margin-top:24px}
.tg-hero__benefits b{font-size:13px}
.tg-benefit-icon{width:24px;height:24px}
.tg-catalog{padding:21px 16px 0}
.tg-toolbar{gap:16px;margin-bottom:11px}
.tg-toolbar select,.tg-toolbar input{height:40px}
.tg-results{margin-bottom:12px}
.tg-sidebar--right{padding:16px 14px}
.tg-why{padding:18px 15px}
.tg-why h2{font-size:21px}
.tg-why li{padding:10px 0}
.tg-stats{margin:15px 16px 0}
.tg-stats div{padding:17px 18px}
@media(max-width:1450px){
  .tg-academy__layout{grid-template-columns:240px minmax(0,1fr) 250px}
  .tg-course-grid{gap:12px}
  .tg-course-card__media{height:150px}
  .tg-course-card__body{padding-left:14px;padding-right:14px}
}
@media(max-width:1180px){
  .tg-academy__layout{grid-template-columns:220px minmax(0,1fr)}
  .tg-course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:920px){
  .tg-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tg-hero h1{font-size:37px}
}
/* v2.5.0 — image-first cards and reliable fallback */
.tg-hero__photo{background-image:linear-gradient(90deg,rgba(4,12,17,.94) 0%,rgba(4,12,17,.74) 42%,rgba(4,12,17,.25) 78%,rgba(4,12,17,.48) 100%),var(--tg-hero-image),linear-gradient(140deg,#102d3a,#163f51 52%,#0d202a);background-size:cover;background-position:center 42%}
.tg-promo:before{background-image:linear-gradient(145deg,rgba(8,18,24,.15),rgba(8,18,24,.78)),var(--tg-promo-image);background-size:cover;background-position:center}
.tg-course-card__media{background:#0f2d3b}
.tg-course-card__media img{background:#0f2d3b;color:#fff}
.tg-svg-icon{width:23px;height:23px;display:inline-grid;place-items:center;color:var(--orange);font-size:17px;font-weight:700;flex:0 0 23px}

/* v2.6.0 — Moodle-native course imagery + clean hero typography */
.tg-hero__content h1,.tg-hero h1{color:#fff!important;text-shadow:0 2px 18px rgba(0,0,0,.35)!important}
.tg-hero__content p{color:#fff!important}
.tg-hero__photo{background-position:center 48%!important}
.tg-course-card__media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}

/* v2.7.0 — WordPress Media Library image system */
.tg-hero__photo{background-image:linear-gradient(90deg,rgba(3,11,16,.88) 0%,rgba(3,11,16,.64) 44%,rgba(3,11,16,.16) 78%,rgba(3,11,16,.42) 100%),var(--tg-hero-image,linear-gradient(140deg,#09232f,#123e51 55%,#07151d));background-size:cover;background-position:center!important}
.tg-promo:before{background-image:linear-gradient(145deg,rgba(5,15,21,.08),rgba(5,15,21,.76)),var(--tg-promo-image,linear-gradient(140deg,#0b2838,#123e51));background-size:cover;background-position:center}
.tg-course-card__media img{image-rendering:auto}

/* v3.0.0 — Moodle launcher: CTA is a real link to the Moodle course */
.tg-course-card__cta, .tg-course-card__cta:visited {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:10px 12px;
  background:var(--orange);
  color:#fff !important;
  border-radius:4px;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
  text-decoration:none !important;
  transition:background .18s,transform .18s,box-shadow .18s;
}
.tg-course-card__cta:hover, .tg-course-card__cta:focus-visible {
  background:var(--orange-dark);
  color:#fff !important;
  text-decoration:none !important;
  transform:translateY(-1px);
  box-shadow:0 5px 14px rgba(245,130,32,.22);
}
.tg-course-card__cta:focus-visible {
  outline:2px solid #173646;
  outline-offset:2px;
}

/* v3.1.0 — Responsive layout for desktop, tablet and mobile
 * Mobile-first behavior is applied through width breakpoints.
 * No fixed card width is used; images preserve their aspect ratio.
 */
.tg-academy,
.tg-academy *{min-width:0}
.tg-academy img{max-width:100%;height:auto}
.tg-academy .tg-course-card__media img{width:100%;height:100%;object-fit:cover}
.tg-course-card__media{aspect-ratio:16 / 9;height:auto}

/* Large desktop */
@media (min-width:1401px){
  .tg-academy__layout{width:min(1780px,calc(100% - 28px));grid-template-columns:270px minmax(0,1fr) 280px}
  .tg-course-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
}

/* Laptop / medium desktop */
@media (min-width:1101px) and (max-width:1400px){
  .tg-academy__layout{width:calc(100% - 24px);grid-template-columns:225px minmax(0,1fr) 245px}
  .tg-course-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .tg-course-card__body{min-height:300px;padding:14px}
  .tg-course-card h3{font-size:16px}
  .tg-hero__content{padding-right:170px}
  .tg-hero h1{font-size:40px}
}

/* Tablet landscape / portrait: remove the right rail and turn the left rail into a compact top navigation */
@media (min-width:768px) and (max-width:1100px){
  .tg-academy{width:100%;max-width:100%;left:auto;margin-left:0}
  .tg-academy__layout{width:100%;display:block}
  .tg-sidebar--right{display:none}
  .tg-sidebar--left{border-right:0;border-bottom:1px solid var(--line)}
  .tg-side-title{padding:18px 18px 10px}
  .tg-side-title h2{font-size:24px}
  .tg-area-nav{display:flex;gap:6px;overflow-x:auto;padding:0 12px 12px;scrollbar-width:thin}
  .tg-area-nav button{flex:0 0 auto;width:auto;min-width:max-content;margin:0;padding:10px 12px}
  .tg-area-nav button span:not(.tg-nav-icon){font-size:12px}
  .tg-promo--left,.tg-business{display:none}
  .tg-main{width:100%}
  .tg-hero{min-height:290px}
  .tg-hero__content{padding:28px 170px 25px 28px}
  .tg-hero h1{font-size:38px;max-width:620px}
  .tg-hero p{font-size:15px;max-width:600px}
  .tg-hero__benefits{grid-template-columns:repeat(2,minmax(0,auto));gap:12px 22px}
  .tg-hero__count{right:22px;top:30px;width:105px}
  .tg-hero__count strong{font-size:48px}
  .tg-catalog{padding:18px 14px 0}
  .tg-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(150px,.8fr);gap:10px}
  .tg-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .tg-course-card__body{min-height:290px;padding:14px}
  .tg-course-card h3{font-size:16px}
  .tg-course-card p{font-size:12px}
}

/* Mobile */
@media (max-width:767px){
  .tg-academy{
    width:100%;
    max-width:100%;
    left:auto;
    margin-left:0;
    padding-bottom:28px;
    overflow:clip;
  }
  .tg-academy__layout{display:block;width:100%;max-width:100%;}
  .tg-sidebar--left{border-right:0;border-bottom:1px solid var(--line)}
  .tg-sidebar--right{display:none}
  .tg-side-title{padding:16px 14px 9px}
  .tg-side-title span{font-size:9px}
  .tg-side-title h2{font-size:22px}
  .tg-area-nav{
    display:flex;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 10px 10px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .tg-area-nav::-webkit-scrollbar{display:none}
  .tg-area-nav button{
    flex:0 0 auto;
    width:auto;
    min-width:max-content;
    margin:0;
    padding:9px 11px;
    border:1px solid #dbe3e7;
    background:#fff;
    box-shadow:none;
  }
  .tg-area-nav button span:not(.tg-nav-icon){font-size:11px}
  .tg-area-nav button em{font-size:10px}
  .tg-area-nav button.is-active{border-color:var(--orange);background:var(--orange)}
  .tg-promo--left,.tg-business{display:none}

  .tg-hero{
    min-height:0;
    padding:0;
  }
  .tg-hero__photo{position:absolute;inset:0;background-position:center!important}
  .tg-hero__content{
    padding:26px 18px 22px;
    min-height:280px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .tg-hero__content>span{font-size:9px;margin-bottom:8px}
  .tg-hero h1{
    font-size:clamp(28px,8vw,34px);
    line-height:1.05;
    max-width:calc(100% - 72px);
    margin-bottom:11px;
  }
  .tg-hero p{font-size:14px;line-height:1.4;max-width:100%;padding-right:30px}
  .tg-hero__benefits{display:none}
  .tg-hero__count{
    position:absolute;
    top:20px;
    right:14px;
    width:62px;
    margin:0;
    padding:0;
  }
  .tg-hero__count strong{font-size:32px}
  .tg-hero__count span{display:block;font-size:8px;line-height:1.15}
  .tg-hero__count hr,.tg-hero__count small{display:none}

  .tg-catalog{padding:15px 10px 0}
  .tg-toolbar{grid-template-columns:1fr;gap:9px;margin-bottom:9px}
  .tg-toolbar label{font-size:8px;margin-bottom:5px}
  .tg-toolbar select,.tg-toolbar input{height:44px;font-size:13px}
  .tg-sort{display:block}
  .tg-results{text-align:left;font-size:11px;margin:8px 2px 10px}

  .tg-course-grid{grid-template-columns:1fr;gap:12px}
  .tg-course-card{width:100%;border-radius:7px}
  .tg-course-card__media{width:100%;aspect-ratio:16 / 9;height:auto}
  .tg-course-card__area{left:10px;padding:6px 8px;font-size:8px}
  .tg-course-card__body{min-height:0;padding:14px 14px 13px}
  .tg-course-card h3{font-size:17px;line-height:1.16;margin-bottom:8px}
  .tg-course-card p{font-size:12px;line-height:1.4;-webkit-line-clamp:4;margin-bottom:9px}
  .tg-course-card__meta{gap:6px;padding-top:5px}
  .tg-course-card__meta div{font-size:11px;min-height:19px}
  .tg-course-card__cta{min-height:44px;padding:11px 12px;font-size:12px}
  .tg-course-card__cta:hover{transform:none}

  .tg-stats{grid-template-columns:1fr;margin:12px 10px 0;border-radius:5px}
  .tg-stats div{padding:14px 16px;border-right:0;border-bottom:1px solid rgba(255,255,255,.2)}
  .tg-stats div:last-child{border-bottom:0}
  .tg-stats b{font-size:20px}
  .tg-stats strong{font-size:25px}
}

/* Small phones */
@media (max-width:420px){
  .tg-hero__content{min-height:265px;padding:23px 15px 20px}
  .tg-hero h1{font-size:27px;max-width:100%;padding-right:45px}
  .tg-hero p{font-size:13px;padding-right:0}
  .tg-hero__count{top:16px;right:12px;width:48px}
  .tg-hero__count strong{font-size:28px}
  .tg-hero__count span{font-size:7px}
  .tg-course-card h3{font-size:16px}
  .tg-course-card__body{padding:13px 12px 12px}
}

/* Touch devices: avoid hover movement and preserve readable tap targets */
@media (hover:none){
  .tg-course-card:hover{transform:none;box-shadow:0 2px 10px rgba(9,31,43,.07)}
  .tg-course-card:hover .tg-course-card__media img{transform:none}
  .tg-course-card__cta:hover{transform:none}
}

/* Corporate hero image supplied by TRACOILGAS. The image already contains the approved typography and composition. */
.tg-hero--corporate-image{min-height:clamp(250px,34vw,430px);background:#061923}
.tg-hero--corporate-image .tg-hero__corporate-img{display:block;width:100%;height:100%;min-height:clamp(250px,34vw,430px);object-fit:cover;object-position:center center}
@media (max-width:900px){.tg-hero--corporate-image{min-height:clamp(210px,42vw,340px)}.tg-hero--corporate-image .tg-hero__corporate-img{min-height:clamp(210px,42vw,340px)}}
@media (max-width:560px){.tg-hero--corporate-image{min-height:190px}.tg-hero--corporate-image .tg-hero__corporate-img{min-height:190px;object-position:center center}}

/* ================================================================
 * TRACOILGAS Academy 3.1.4
 * Container-aware responsive layout.
 * The Academy may live inside a Divi/WordPress content column whose
 * width is smaller than the browser viewport. Layout decisions must
 * therefore use the actual Academy container width, not the viewport.
 * ================================================================ */
.tg-academy{
  container-type:inline-size;
  container-name:tgacademy;
  width:100%;
  max-width:none;
  left:auto;
  margin-left:0;
  position:relative;
  overflow:visible;
}
.tg-academy__layout{width:100%;max-width:none;margin:0 auto;}
.tg-main,.tg-sidebar,.tg-academy__layout{min-width:0;}
.tg-course-grid{min-width:0;}
.tg-course-card{min-width:0;}
.tg-course-card h3,.tg-course-card p{overflow-wrap:anywhere;word-break:normal;}

/* The hero artwork contains its own typography. Never crop or stretch it. */
.tg-hero--corporate-image{
  min-height:0;
  height:auto;
  aspect-ratio:2141 / 734;
  background:#061923;
}
.tg-hero--corporate-image .tg-hero__corporate-img{
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center;
}

/* A page/container around 1,250 px or less: keep the left rail,
   remove the right rail and give the catalogue enough room. */
@container tgacademy (max-width:1250px){
  .tg-academy__layout{grid-template-columns:220px minmax(0,1fr);}
  .tg-sidebar--right{display:none;}
  .tg-course-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
  .tg-course-card__body{min-height:300px;padding:14px;}
  .tg-course-card h3{font-size:16px;}
  .tg-course-card p{font-size:12px;}
}

/* Medium content columns: convert the left rail into a compact
   horizontal area selector and use two readable course columns. */
@container tgacademy (max-width:950px){
  .tg-academy__layout{display:block;width:100%;}
  .tg-sidebar--right{display:none;}
  .tg-sidebar--left{border-right:0;border-bottom:1px solid var(--line);}
  .tg-side-title{padding:18px 18px 10px;}
  .tg-side-title h2{font-size:24px;}
  .tg-area-nav{display:flex;gap:6px;overflow-x:auto;padding:0 12px 12px;scrollbar-width:thin;}
  .tg-area-nav button{flex:0 0 auto;width:auto;min-width:max-content;margin:0;padding:10px 12px;}
  .tg-promo--left,.tg-business{display:none;}
  .tg-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  .tg-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(140px,.8fr);gap:10px;}
}

/* Phone-sized content columns. */
@container tgacademy (max-width:700px){
  .tg-academy__layout{display:block;width:100%;}
  .tg-sidebar--left{border-right:0;border-bottom:1px solid var(--line);}
  .tg-side-title{padding:16px 14px 9px;}
  .tg-area-nav{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;padding:0 10px 10px;scrollbar-width:none;}
  .tg-area-nav::-webkit-scrollbar{display:none;}
  .tg-area-nav button{flex:0 0 auto;width:auto;min-width:max-content;margin:0;padding:9px 11px;}
  .tg-promo--left,.tg-business,.tg-sidebar--right{display:none;}
  .tg-hero--corporate-image{aspect-ratio:2141 / 734;}
  .tg-catalog{padding:15px 10px 0;}
  .tg-toolbar{grid-template-columns:1fr;gap:9px;}
  .tg-course-grid{grid-template-columns:1fr;gap:12px;}
  .tg-course-card__media{width:100%;aspect-ratio:16 / 9;height:auto;}
  .tg-course-card__body{min-height:0;padding:14px;}
}

/* Prevent any WordPress/Divi ancestor from creating a horizontal
   scrollbar because of the Academy's internal content. */
.tg-academy,.tg-academy__layout,.tg-main,.tg-catalog,.tg-course-grid{max-width:100%;}


/* TRACOILGAS Academy 3.1.5 - abstract corporate hero. Artwork is background only; text remains HTML. */
.tg-hero--html-overlay{position:relative;isolation:isolate;min-height:clamp(300px,24cqw,430px);background:#061a29;overflow:hidden;}
.tg-hero--html-overlay .tg-hero__bg{position:absolute;inset:0;z-index:0;background-image:linear-gradient(90deg,rgba(3,18,31,.92) 0%,rgba(3,18,31,.72) 48%,rgba(3,18,31,.22) 100%),var(--tg-hero-image);background-size:cover;background-position:center;background-repeat:no-repeat;}
.tg-hero--html-overlay .tg-hero__content{position:relative;z-index:2;padding:clamp(30px,3.2cqw,48px) clamp(120px,12cqw,190px) clamp(30px,3cqw,44px) clamp(28px,3.2cqw,52px);}
.tg-hero--html-overlay .tg-hero__content>span{color:var(--orange);margin-bottom:10px;}
.tg-hero--html-overlay h1{font-size:clamp(34px,4.2cqw,58px);max-width:850px;margin:0 0 14px;line-height:1.02;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.22);}
.tg-hero--html-overlay p{font-size:clamp(14px,1.35cqw,19px);max-width:760px;line-height:1.45;color:#f3f7f9;}
.tg-hero--html-overlay .tg-hero__benefits{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2cqw,30px);margin-top:clamp(22px,2.8cqw,34px);max-width:900px;}
.tg-hero--html-overlay .tg-hero__benefits b{min-width:0;}
.tg-hero--html-overlay .tg-hero__benefits i{font-size:clamp(10px,1cqw,13px);}
.tg-hero--html-overlay .tg-hero__count{right:clamp(18px,2.8cqw,42px);top:clamp(24px,3cqw,44px);width:clamp(75px,8cqw,120px);}
.tg-hero--html-overlay .tg-hero__count strong{font-size:clamp(38px,4.5cqw,62px);}
.tg-hero--html-overlay .tg-hero__count span{font-size:clamp(8px,1cqw,12px);}
.tg-hero--html-overlay .tg-hero__count small{font-size:clamp(7px,.75cqw,9px);}
@container tgacademy (max-width:900px){.tg-hero--html-overlay{min-height:320px}.tg-hero--html-overlay .tg-hero__content{padding-right:150px}.tg-hero--html-overlay .tg-hero__benefits{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px}}
@container tgacademy (max-width:600px){.tg-hero--html-overlay{min-height:285px}.tg-hero--html-overlay .tg-hero__content{padding:25px 80px 22px 20px;min-height:285px;display:flex;flex-direction:column;justify-content:center}.tg-hero--html-overlay h1{font-size:clamp(28px,7cqw,38px);max-width:none}.tg-hero--html-overlay p{font-size:13px}.tg-hero--html-overlay .tg-hero__benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin-top:18px}.tg-hero--html-overlay .tg-hero__benefits i{font-size:9px}.tg-hero--html-overlay .tg-hero__count{right:12px;top:16px;width:55px}.tg-hero--html-overlay .tg-hero__count strong{font-size:30px}.tg-hero--html-overlay .tg-hero__count span{font-size:7px}.tg-hero--html-overlay .tg-hero__count hr{margin:7px 0;border-top-width:2px}.tg-hero--html-overlay .tg-hero__count small{font-size:6px}}
@container tgacademy (max-width:420px){.tg-hero--html-overlay{min-height:270px}.tg-hero--html-overlay .tg-hero__content{min-height:270px;padding:22px 64px 18px 16px}.tg-hero--html-overlay h1{font-size:25px}.tg-hero--html-overlay p{font-size:12px}.tg-hero--html-overlay .tg-hero__benefits{display:none}.tg-hero--html-overlay .tg-hero__count{width:44px;right:9px}.tg-hero--html-overlay .tg-hero__count strong{font-size:25px}}

/* TRACOILGAS Academy 3.1.8 - full-width desktop canvas inside WordPress/Divi.
 * The Academy uses the available browser width on large screens so the
 * three-column structure and four course cards do not become compressed
 * by the parent page builder column. Smaller containers remain responsive.
 */
@media (min-width: 1400px){
  .tg-academy{
    width:100vw;
    max-width:100vw;
    position:relative;
    left:50%;
    margin-left:-50vw;
    margin-right:-50vw;
  }
  .tg-academy__layout{
    width:min(1680px,calc(100vw - 48px));
    max-width:none;
    margin:0 auto;
    grid-template-columns:260px minmax(0,1fr) 280px;
  }
  .tg-sidebar--right{display:block;}
  .tg-course-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
  .tg-course-card__media{height:180px;}
}

@media (min-width: 1200px) and (max-width: 1399px){
  .tg-academy{
    width:100vw;
    max-width:100vw;
    position:relative;
    left:50%;
    margin-left:-50vw;
    margin-right:-50vw;
  }
  .tg-academy__layout{
    width:calc(100vw - 32px);
    max-width:1320px;
    margin:0 auto;
    grid-template-columns:235px minmax(0,1fr) 255px;
  }
  .tg-course-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
}

@media (max-width:1199px){
  .tg-academy{width:100%;max-width:100%;left:auto;margin-left:0;margin-right:0;}
}


/* TRACOILGAS Academy 3.3.4 - launch campaign bar */
.tg-promo-bar{display:block;width:100%;margin:0;padding:0;background:var(--tg-promo-accent,#ff4b0b);color:#fff;border:0;box-shadow:none;position:relative;z-index:99999;font-family:inherit;box-sizing:border-box}
.tg-promo-bar *{box-sizing:border-box}
.tg-promo-bar__inner{min-height:64px;width:100%;margin:0 auto;display:flex;align-items:center;gap:18px;padding:7px 42px 7px 24px;position:relative}
.tg-promo-bar__mark{width:42px;height:42px;border:2px solid rgba(255,255,255,.96);border-radius:50%;display:grid;place-items:center;flex:0 0 42px}
.tg-promo-bar__mark span{width:11px;height:11px;border-left:3px solid #fff;border-bottom:3px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
.tg-promo-bar__copy{display:flex;align-items:baseline;gap:12px;min-width:0;flex:1}
.tg-promo-bar__copy strong{font-size:15px;line-height:1.15;white-space:nowrap;font-weight:800}
.tg-promo-bar__sub{font-size:13px;line-height:1.2;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-promo-bar__countdown{display:flex;align-items:center;gap:7px;white-space:nowrap;flex:0 0 auto}
.tg-promo-bar__countdown div{display:flex;flex-direction:column;align-items:center;min-width:40px}
.tg-promo-bar__countdown b{font-size:27px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.tg-promo-bar__countdown small{font-size:8px;line-height:1;margin-top:4px;letter-spacing:.06em}
.tg-promo-bar__countdown i{font-style:normal;font-size:21px;font-weight:700;margin-top:-7px}
.tg-promo-bar__button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;background:#fff;color:#152934!important;border-radius:3px;padding:11px 17px;font-size:11px;font-weight:800;text-transform:uppercase;text-decoration:none!important;white-space:nowrap}
.tg-promo-bar__button:hover{background:#f5f5f5;color:#152934!important}
.tg-promo-bar__close{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:rgba(255,255,255,.75);font-size:26px;line-height:1;padding:5px 7px;cursor:pointer}
.tg-promo-bar__close:hover{color:#fff}
@media(max-width:1100px){.tg-promo-bar__inner{gap:11px;padding-left:16px}.tg-promo-bar__copy{display:block}.tg-promo-bar__copy strong{display:block;font-size:13px}.tg-promo-bar__sub{display:block;font-size:11px;margin-top:3px}.tg-promo-bar__countdown{gap:4px}.tg-promo-bar__countdown div{min-width:31px}.tg-promo-bar__countdown b{font-size:21px}.tg-promo-bar__countdown small{font-size:7px}.tg-promo-bar__button{padding:9px 12px}}
@media(max-width:760px){.tg-promo-bar__inner{min-height:58px;padding:6px 34px 6px 10px;gap:8px}.tg-promo-bar__mark{width:34px;height:34px;flex-basis:34px}.tg-promo-bar__copy{flex:1;min-width:0}.tg-promo-bar__copy strong{font-size:11px}.tg-promo-bar__sub{font-size:9px}.tg-promo-bar__countdown{margin-left:0}.tg-promo-bar__countdown div{min-width:23px}.tg-promo-bar__countdown b{font-size:16px}.tg-promo-bar__countdown small{font-size:6px}.tg-promo-bar__countdown i{font-size:14px}.tg-promo-bar__button{padding:8px 9px;font-size:9px}.tg-promo-bar__button span{display:none}}
@media(max-width:520px){.tg-promo-bar__sub{display:none}.tg-promo-bar__countdown div:first-of-type,.tg-promo-bar__countdown i:first-of-type{display:none}.tg-promo-bar__countdown b{font-size:15px}.tg-promo-bar__button{font-size:8px;padding:8px 7px}.tg-promo-bar__mark{display:none}.tg-promo-bar__inner{gap:7px}}
