/* ==========================================================
   Thermal Energy Solutions – inner-page layer
   Shared by all inner pages (about, products, capabilities…)
   Load AFTER main.css and tes.css
   ========================================================== */

/* ---------- Page banner / breadcrumb ---------- */
.tes-pagehead { position: relative; overflow: hidden; background: var(--tes-navy-deep); color: #fff; padding: 55px 0 45px; isolation: isolate; }
.tes-pagehead__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -3; transform: scale(1.08); animation: tesHeadZoom 18s ease-out forwards; }
.tes-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(7, 29, 68, .96) 0%, rgba(7, 29, 68, .86) 42%, rgba(7, 29, 68, .45) 100%); }
/* fin lines drifting across the banner */
.tes-pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 1px, transparent 1px 22px); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); animation: tesFins 14s linear infinite; }
@keyframes tesHeadZoom { to { transform: scale(1); } }
@keyframes tesFins { to { background-position: 220px 0; } }
.tes-pagehead__inner { max-width: 760px; }
.tes-pagehead__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-bottom: 18px; }
.tes-pagehead__kicker::before { content: ""; width: 34px; height: 2px; background: var(--theme); }
.tes-pagehead h1 { color: #fff; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.tes-pagehead p.lead-text { color: rgba(255, 255, 255, .82); font-size: 18px; line-height: 1.65; max-width: 620px; margin-bottom: 0; }
.tes-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0 0; padding: 10px 18px; list-style: none; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 40px; width: max-content; max-width: 100%; backdrop-filter: blur(6px); }
.tes-crumbs li { font-size: 14px; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 10px; }
.tes-crumbs li + li::before { content: "\f054"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--theme); }
.tes-crumbs a { color: #fff; }
.tes-crumbs a:hover { color: var(--theme); }
.tes-crumbs li[aria-current] { color: #fff; font-weight: 600; }

/* in-page section nav (sticky tabs under the banner) */
.tes-subnav { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--border); }
.tes-subnav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.tes-subnav ul::-webkit-scrollbar { display: none; }
.tes-subnav a { display: inline-flex; align-items: center; gap: 10px; padding: 20px 22px; font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 15px; color: var(--header); white-space: nowrap; border-bottom: 3px solid transparent; transition: color .25s, border-color .25s; }
.tes-subnav a em { font-style: normal; font-size: 12px; color: var(--theme); }
.tes-subnav a:hover, .tes-subnav a.is-active { color: var(--theme); border-bottom-color: var(--theme); }

/* ---------- Shared bits ---------- */
.tes-sec { padding: 55px 0; position: relative; }
.tes-sec--tight { padding: 80px 0; }
.tes-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--theme); margin-bottom: 16px; }
.tes-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.tes-h2 { font-size: 35px; line-height: 1.12; font-weight: 800; color: var(--header); letter-spacing: -.5px; margin-bottom: 22px; }
.tes-h2 span { color: var(--theme); }
.tes-prose p { font-size: 16px; line-height: 1.8; color: var(--black); margin-bottom: 18px; text-align: justify; }
.tes-prose p:last-child { margin-bottom: 0; }

/* ---------- Company profile ---------- */
@keyframes tesFloat { 50% { transform: translateY(-10px); } }

/* what we do – process ribbon */
.tes-ribbon { margin-top: 70px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; list-style: none; padding: 0; counter-reset: rib; }
.tes-ribbon li { counter-increment: rib; position: relative; padding: 26px 18px 22px; background: var(--bg); border-right: 1px solid #fff; transition: background .3s, color .3s, transform .3s; }
.tes-ribbon li:first-child { border-radius: 14px 0 0 14px; }
.tes-ribbon li:last-child { border-radius: 0 14px 14px 0; border-right: 0; }
.tes-ribbon li::before { content: "0" counter(rib); display: block; font-size: 12px; font-weight: 700; color: var(--theme); letter-spacing: 1px; margin-bottom: 10px; }
.tes-ribbon i { font-size: 26px; color: var(--tes-blue); margin-bottom: 12px; display: block; transition: color .3s; }
.tes-ribbon h3 { font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--header); margin: 0; transition: color .3s; }
.tes-ribbon li:hover { background: var(--header); transform: translateY(-6px); }
.tes-ribbon li:hover h3, .tes-ribbon li:hover i { color: #fff; }

/* ---------- Founder's legacy ---------- */
.tes-founder { background: var(--tes-navy-deep); color: #fff; overflow: hidden; }
.tes-founder::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(20, 80, 200, .35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(227, 30, 36, .18), transparent 40%); pointer-events: none; }
.tes-founder .container { position: relative; }
.tes-founder .tes-h2 { color: #fff; }
.tes-founder .tes-prose p { color: rgba(255, 255, 255, .78); }
.tes-memorial { position: relative; border-radius: 22px; padding: 46px 40px 40px; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; }
.tes-memorial__emblem { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: 26px; position: relative; }
.tes-memorial__emblem img { width: 62px; height: auto; }
.tes-memorial__emblem::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .45); animation: tesSpin 22s linear infinite; }
@keyframes tesSpin { to { transform: rotate(360deg); } }
.tes-memorial small { display: block; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 8px; }
.tes-memorial h3 { color: #fff; font-size: 34px; font-weight: 800; line-height: 1.15; margin-bottom: 6px; }
.tes-memorial .role { color: #ff6b70; font-weight: 600; font-size: 15px; margin-bottom: 26px; display: block; }
.tes-memorial__label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 12px; }
.tes-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tes-chips li { padding: 9px 16px; border-radius: 30px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: #fff; }
.tes-memorial__wm { position: absolute; right: -10px; bottom: -34px; font-family: "Hanken Grotesk", sans-serif; font-size: 150px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); pointer-events: none; }
.tes-evolution { list-style: none; padding: 0; margin: 34px 0 0; position: relative; }
.tes-evolution::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--theme), var(--tes-blue)); }
.tes-evolution li { position: relative; padding-left: 62px; margin-bottom: 26px; }
.tes-evolution li:last-child { margin-bottom: 0; }
.tes-evolution li > i { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--tes-navy-deep); border: 2px solid var(--theme); color: #fff; display: grid; place-items: center; font-size: 15px; }
.tes-evolution h4 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.tes-evolution p { color: rgba(255, 255, 255, .68); font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- Vision & mission ---------- */

/* ---------- Why TES ---------- */
.tes-why__list { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: why; }
.tes-why__list li { counter-increment: why; display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); font-family: "Hanken Grotesk", sans-serif; font-size: 19px; font-weight: 700; color: var(--header); transition: padding .3s, color .3s; }
.tes-why__list li::before { content: "0" counter(why); font-size: 14px; color: var(--theme); min-width: 26px; }
.tes-why__list li::after { content: "\f061"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: 14px; color: var(--theme); opacity: 0; transform: translateX(-10px); transition: .3s; }
.tes-why__list li:hover { padding-left: 10px; color: var(--theme); }
.tes-why__list li:hover::after { opacity: 1; transform: none; }
.tes-why__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px; gap: 18px; }
.tes-why__gallery figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; }
.tes-why__gallery figure:first-child { grid-row: span 2; }
.tes-why__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; display: block; }
.tes-why__gallery figure:hover img { transform: scale(1.07); }
.tes-why__gallery figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(7, 29, 68, .85); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; }

/* ---------- Media band (full-width photo strip) ---------- */
.tes-band { display: grid; grid-template-columns: 1.4fr 1fr 1fr; height: 360px; }
.tes-band figure { margin: 0; overflow: hidden; position: relative; }
.tes-band img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s; }
.tes-band figure:hover img { transform: scale(1.06); }

/* ---------- Enquiry CTA ---------- */
.tes-cta-band { background: linear-gradient(110deg, var(--theme) 0%, #b5141a 100%); border-radius: 24px; padding: 54px 56px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.tes-cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .08); }
.tes-cta-band h2 { color: #fff; font-size: 36px; line-height: 1.2; margin-bottom: 10px; }
.tes-cta-band p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 17px; max-width: 620px; }
.tes-cta-band .btns { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }
.tes-cta-band .theme-btn { background: #fff; color: var(--theme); }
.tes-cta-band .theme-btn:hover { color: #fff; }
.tes-cta-band .theme-btn.tes-btn-outline { background: transparent; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .tes-pagehead h1 { font-size: 52px; }
  .tes-h2 { font-size: 38px; }
  .tes-ribbon { grid-template-columns: repeat(3, 1fr); row-gap: 1px; }
  .tes-ribbon li { border-radius: 0 !important; }
  .tes-cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 991px) {
  .tes-sec { padding: 80px 0; }
  .tes-pagehead { padding: 80px 0 70px; }
  .tes-band { grid-template-columns: 1fr 1fr; height: 280px; }
  .tes-band figure:first-child { display: none; }
  .tes-memorial { margin-bottom: 30px; }
}
@media (max-width: 767px) {
  .tes-pagehead h1 { font-size: 40px; }
  .tes-pagehead p.lead-text { font-size: 16px; }
  .tes-h2 { font-size: 30px; }
  .tes-ribbon { grid-template-columns: 1fr 1fr; }
  .tes-why__gallery { grid-template-rows: 180px 180px; gap: 12px; }
  .tes-band { height: 200px; }
  .tes-cta-band { padding: 40px 26px; }
  .tes-cta-band h2 { font-size: 28px; }
  .tes-memorial { padding: 36px 26px 30px; }
  .tes-memorial h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tes-pagehead__bg, .tes-pagehead::after, .tes-memorial__emblem::after { animation: none; }
}

/* ==========================================================
   Product / category / industry / utility page components
   ========================================================== */
/* category cards */
.tes-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tes-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s; height: 100%; }
.tes-pcard:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(7, 29, 68, .13); border-color: transparent; }
.tes-pcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.tes-pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; display: block; }
.tes-pcard:hover .tes-pcard__img img { transform: scale(1.07); }
.tes-pcard__no { position: absolute; top: 14px; left: 14px; background: rgba(7, 29, 68, .85); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 8px; letter-spacing: 1px; }
.tes-pcard__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tes-pcard__body h3 { font-size: 21px; line-height: 1.3; color: var(--header); margin-bottom: 10px; }
.tes-pcard__body h3 a { color: inherit; }
.tes-pcard__body p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 18px; }
.tes-pcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--theme); }
.tes-pcard__more i { transition: transform .3s; }
.tes-pcard:hover .tes-pcard__more i { transform: translateX(5px); }

/* product detail */
.tes-gal__main { border-radius: 20px; overflow: hidden; position: relative; background: var(--bg); }
.tes-gal__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: opacity .3s; }
.tes-gal__zoom { position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--header); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.tes-gal__zoom:hover { background: var(--theme); color: #fff; }
.tes-gal__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.tes-gal__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; transition: border-color .25s; }
.tes-gal__thumbs button.is-active, .tes-gal__thumbs button:hover { border-color: var(--theme); }
.tes-gal__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.tes-cons { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tes-cons li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; background: var(--bg); color: var(--header); font-weight: 600; font-size: 14px; }
.tes-cons li i { color: var(--theme); }
.tes-box { border: 1px solid var(--border); border-radius: 18px; padding: 32px; background: #fff; }
.tes-box h3 { font-size: 22px; color: var(--header); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.tes-box h3 i { width: 42px; height: 42px; border-radius: 12px; background: rgba(227, 30, 36, .1); color: var(--theme); display: grid; place-items: center; font-size: 18px; }
.tes-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.tes-checks li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; color: var(--header); }
.tes-checks li::before { content: "\f00c"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--theme); color: #fff; font-size: 10px; display: grid; place-items: center; }
.tes-checks.one { grid-template-columns: 1fr; }
.tes-note { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: #fff7e8; border: 1px solid #f4dcae; color: #6b4a12; font-size: 14.5px; line-height: 1.6; }
.tes-note i { color: #d08a0e; margin-top: 3px; }

/* sidebar */
.tes-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.tes-side__nav { background: var(--bg); border-radius: 18px; padding: 26px 22px; }
.tes-side__nav h4 { font-size: 19px; color: var(--header); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #fff; }
.tes-side__nav ul { list-style: none; padding: 0; margin: 0; max-height: 470px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--theme) transparent; }
.tes-side__nav li + li { margin-top: 6px; }
.tes-side__nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 10px; background: #fff; color: var(--header); font-weight: 600; font-size: 15px; transition: background .25s, color .25s; }
.tes-side__nav a i { font-size: 12px; color: var(--theme); transition: color .25s; }
.tes-side__nav a:hover, .tes-side__nav a.is-current { background: var(--header); color: #fff; }
.tes-side__nav a:hover i, .tes-side__nav a.is-current i { color: #fff; }
.tes-side__help { border-radius: 18px; padding: 30px 26px; color: #fff; background: linear-gradient(160deg, var(--header), var(--tes-navy-deep)); position: relative; overflow: hidden; }
.tes-side__help::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .06); }
.tes-side__help h4 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.tes-side__help p { color: rgba(255, 255, 255, .75); font-size: 14.5px; margin-bottom: 18px; }
.tes-side__help a.ph { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.tes-side__help a.ph i { width: 36px; height: 36px; border-radius: 50%; background: var(--theme); display: grid; place-items: center; font-size: 14px; }
.tes-side__help .theme-btn { margin-top: 12px; width: 100%; justify-content: center; position: relative; z-index: 1; }

/* process steps (manufacturing/quality) */
.tes-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: st; }
.tes-step { position: relative; padding: 34px 28px 30px; border-radius: 18px; background: #fff; border: 1px solid var(--border); counter-increment: st; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.tes-step:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(7, 29, 68, .1); }
.tes-step::after { content: counter(st, decimal-leading-zero); position: absolute; right: 20px; top: 12px; font-family: "Hanken Grotesk", sans-serif; font-size: 66px; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px rgba(11, 42, 94, .1); }
.tes-step i { width: 58px; height: 58px; border-radius: 16px; background: var(--header); color: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 20px; }
.tes-step h3 { font-size: 20px; color: var(--header); margin-bottom: 8px; }
.tes-step p { font-size: 15px; line-height: 1.65; color: var(--black); margin: 0; }

/* video block */
.tes-video { position: relative; border-radius: 22px; overflow: hidden; background: #000; }
.tes-video video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.tes-video figcaption { position: absolute; left: 18px; bottom: 18px; background: rgba(7, 29, 68, .85); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.tes-pagehead video.tes-pagehead__bg { width: 100%; height: 100%; object-fit: cover; }

/* industries grid */
.tes-ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tes-ind { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--border); color: var(--header); transition: background .3s, color .3s, transform .3s; scroll-margin-top: 140px; }
.tes-ind i.ic { font-size: 30px; color: var(--theme); transition: color .3s; }
.tes-ind h3 { font-size: 18px; margin: 0; color: inherit; line-height: 1.3; }
.tes-ind span { margin-top: auto; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--theme); transition: color .3s; }
.tes-ind:hover { background: var(--header); color: #fff; transform: translateY(-6px); }
.tes-ind:hover i.ic, .tes-ind:hover span { color: #fff; }
.tes-ind:target { outline: 3px solid var(--theme); }
.tes-media-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tes-media-pills div { padding: 22px; border-radius: 16px; background: var(--bg); text-align: center; }
.tes-media-pills i { font-size: 28px; color: var(--tes-blue); margin-bottom: 10px; display: block; }
.tes-media-pills b { color: var(--header); font-size: 16px; }

/* gallery */
.tes-gfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tes-gfilter button { border: 1px solid var(--border); background: #fff; color: var(--header); font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 30px; cursor: pointer; transition: .25s; }
.tes-gfilter button.is-active, .tes-gfilter button:hover { background: var(--theme); color: #fff; border-color: var(--theme); }
.tes-ggrid { columns: 4 260px; column-gap: 16px; }
.tes-gitem { break-inside: avoid; margin-bottom: 16px; border-radius: 14px; overflow: hidden; position: relative; display: block; }
.tes-gitem img { width: 100%; display: block; transition: transform .8s; }
.tes-gitem::after { content: "\f00e"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: #fff; background: rgba(7, 29, 68, .55); opacity: 0; transition: opacity .3s; }
.tes-gitem:hover::after { opacity: 1; }
.tes-gitem:hover img { transform: scale(1.06); }
.tes-gitem span { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--header); font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: .3s; }
.tes-gitem:hover span { opacity: 1; transform: none; }
.tes-gitem.is-hidden { display: none; }

/* forms */
.tes-form { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: 0 24px 50px rgba(7, 29, 68, .07); }
.tes-form h3 { font-size: 26px; color: var(--header); margin-bottom: 6px; }
.tes-form > p { color: var(--text); margin-bottom: 26px; }
.tes-form label { display: block; font-size: 13px; font-weight: 700; color: var(--header); margin-bottom: 7px; letter-spacing: .3px; }
.tes-form input, .tes-form select, .tes-form textarea { width: 100%; border: 1px solid var(--border); background: #f8f9fc; border-radius: 10px; padding: 13px 16px; font-size: 15px; color: var(--header); outline: none; transition: border-color .25s, background .25s; }
.tes-form input:focus, .tes-form select:focus, .tes-form textarea:focus { border-color: var(--tes-blue); background: #fff; }
.tes-form textarea { min-height: 130px; resize: vertical; }
.tes-form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.tes-form legend { font-size: 14px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--theme); margin-bottom: 14px; float: none; width: auto; }
.tes-form .theme-btn { border: 0; }
.tes-form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #e9f7ef; color: #1d6b3f; font-weight: 600; }
.tes-form-msg.show { display: block; }

/* contact cards */
.tes-ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tes-ccard { padding: 32px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--border); transition: transform .3s, box-shadow .3s; }
.tes-ccard:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(7, 29, 68, .1); }
.tes-ccard i { width: 56px; height: 56px; border-radius: 50%; background: var(--theme); color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; }
.tes-ccard h3 { font-size: 20px; color: var(--header); margin-bottom: 10px; }
.tes-ccard p, .tes-ccard a { color: var(--black); font-size: 15px; line-height: 1.7; display: block; }
.tes-ccard a:hover { color: var(--theme); }
.tes-map { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); height: 100%; min-height: 420px; }
.tes-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* resource tiles */
.tes-rtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tes-rtile { display: block; padding: 36px 30px; border-radius: 20px; background: var(--header); color: #fff; position: relative; overflow: hidden; transition: transform .35s; }
.tes-rtile:nth-child(2) { background: var(--theme); }
.tes-rtile:nth-child(3) { background: var(--tes-blue); }
.tes-rtile:hover { transform: translateY(-8px); color: #fff; }
.tes-rtile i.ic { font-size: 34px; margin-bottom: 22px; display: block; }
.tes-rtile h3 { color: #fff; font-size: 23px; margin-bottom: 8px; }
.tes-rtile p { color: rgba(255, 255, 255, .8); margin-bottom: 18px; font-size: 15px; }
.tes-rtile span { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.tes-rtile::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; border: 24px solid rgba(255, 255, 255, .08); }
.tes-empty { text-align: center; padding: 60px 30px; border-radius: 22px; border: 2px dashed var(--border); }
.tes-empty i { font-size: 44px; color: var(--theme); margin-bottom: 16px; }
.tes-empty h3 { color: var(--header); font-size: 26px; margin-bottom: 10px; }
.tes-empty p { max-width: 560px; margin: 0 auto 22px; color: var(--text); }

@media (max-width: 1199px) {
  .tes-pgrid, .tes-steps, .tes-rtiles, .tes-ccards { grid-template-columns: 1fr 1fr; }
  .tes-ind-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .tes-side { position: static; margin-top: 30px; }
}
@media (max-width: 767px) {
  .tes-pgrid, .tes-steps, .tes-rtiles, .tes-ccards, .tes-checks, .tes-media-pills { grid-template-columns: 1fr; }
  .tes-ind-grid { grid-template-columns: 1fr 1fr; }
  .tes-form { padding: 28px 20px; }
  .tes-box { padding: 26px 20px; }
}


/* ==========================================================
   About page refresh — stat cards + compact Vision & Mission
   ========================================================== */
/* stat cards (9 / 12 / 17) */
.tes-facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tes-facts li { position: relative; padding: 22px 20px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(7, 29, 68, .06); overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s; }
.tes-facts li::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--tes-blue), var(--theme)); }
.tes-facts li::after { content: ""; position: absolute; right: -28px; bottom: -28px; width: 90px; height: 90px; border-radius: 50%; background: rgba(20, 80, 200, .06); transition: transform .5s; }
.tes-facts li:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(7, 29, 68, .14); border-color: transparent; }
.tes-facts li:hover::after { transform: scale(1.6); }
.tes-facts .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: #fff; background: var(--header); margin-bottom: 14px; position: relative; z-index: 1; }
.tes-facts li:nth-child(2) .ic { background: var(--tes-blue); }
.tes-facts li:nth-child(3) .ic { background: var(--theme); }
.tes-facts li b { display: block; font-family: "Hanken Grotesk", sans-serif; font-size: 44px; line-height: 1; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 1; background: linear-gradient(90deg, var(--header), var(--tes-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tes-facts li b .count { font: inherit; }
.tes-facts li > span { display: block; position: relative; z-index: 1; font-size: 14.5px; line-height: 1.4; font-weight: 600; color: var(--header); }

/* Vision & Mission — compact split layout */
.tes-vm2 { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 28px; align-items: stretch; }
.tes-vm2__intro { position: relative; border-radius: 22px; overflow: hidden; min-height: 100%; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px 30px; isolation: isolate; }
.tes-vm2__intro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s; }
.tes-vm2__intro:hover img { transform: scale(1.06); }
.tes-vm2__intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 29, 68, .25) 0%, rgba(7, 29, 68, .92) 70%); }
.tes-vm2__intro .tes-eyebrow { color: #ff6b70; }
.tes-vm2__intro h2 { color: #fff; font-size: 34px; line-height: 1.15; font-weight: 800; margin: 0 0 12px; }
.tes-vm2__intro p { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.6; margin: 0; }
.tes-vm2__list { display: flex; flex-direction: column; gap: 20px; }
.tes-vm2__card { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; padding: 26px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--border); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.tes-vm2__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tes-blue); transition: width .35s; }
.tes-vm2__card--mission::before { background: var(--theme); }
.tes-vm2__card:hover { transform: translateX(6px); box-shadow: 0 20px 40px rgba(7, 29, 68, .1); }
.tes-vm2__icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--tes-blue); box-shadow: 0 10px 22px rgba(20, 80, 200, .3); }
.tes-vm2__card--mission .tes-vm2__icon { background: var(--theme); box-shadow: 0 10px 22px rgba(227, 30, 36, .3); }
.tes-vm2__card h3 { font-size: 22px; font-weight: 800; color: var(--header); margin: 2px 0 8px; display: flex; align-items: center; gap: 10px; }
.tes-vm2__card h3 small { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--theme); }
.tes-vm2__card p { font-size: 15.5px; line-height: 1.7; color: var(--black); margin: 0; text-align: justify; }
.tes-vm2__pillars { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tes-vm2__pillars li { font-size: 12.5px; font-weight: 600; color: var(--header); padding: 5px 12px; border-radius: 30px; background: var(--bg); }

@media (max-width: 991px) {
  .tes-vm2 { grid-template-columns: 1fr; }
  .tes-vm2__intro { min-height: 260px; }
}
@media (max-width: 767px) {
  .tes-facts { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .tes-facts li { padding: 16px 12px 14px; }
  .tes-facts .ic { width: 36px; height: 36px; font-size: 15px; margin-bottom: 10px; }
  .tes-facts li b { font-size: 32px; }
  .tes-facts li > span { font-size: 12.5px; }
  .tes-vm2__card { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .tes-vm2__icon { width: 54px; height: 54px; font-size: 22px; }
  .tes-vm2__intro h2 { font-size: 28px; }
}
