/* ==========================================================
   Health Treat Expert — main stylesheet
   ========================================================== */
:root {
  --sky: #0284C7;
  --sky-d: #0369A1;
  --sky-l: #E0F2FE;
  --ice: #F0F9FF;
  --navy: #0B1B2B;
  --navy-2: #132A40;
  --amber: #FBBF24;
  --amber-d: #F59E0B;
  --text: #1E293B;
  --muted: #5B6B7F;
  --line: #DCE7F0;
  --white: #ffffff;
  --r: 18px;
  --shadow: 0 24px 50px -28px rgba(11,27,43,.35);
  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Albert Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.72; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
a { color: var(--sky); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
.te-sec { padding: 110px 0; position: relative; }
.te-sec-sm { padding: 70px 0; }
.bg-ice { background: var(--ice); }
.bg-navy { background: var(--navy); color: #A9BACB; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }

/* ---------- Headings ---------- */
.sub-t { display: inline-flex; align-items: center; gap: .55rem; color: var(--sky); font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9rem; }
.sub-t i { width: 30px; height: 30px; border-radius: 8px; background: var(--sky-l); display: grid; place-items: center; font-size: .9rem; }
.bg-navy .sub-t { color: var(--amber); }
.bg-navy .sub-t i { background: rgba(251,191,36,.12); }
.t-h { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 1rem; }
.t-h span { color: var(--sky); }
.bg-navy .t-h span { color: var(--amber); }
.t-p { color: var(--muted); font-size: 1.07rem; max-width: 620px; }
.bg-navy .t-p { color: #A9BACB; }
.bar { width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sky) 60%, var(--amber) 60%); margin-bottom: 1.4rem; }
.text-center .bar { margin-left: auto; margin-right: auto; }

/* ---------- Logo ---------- */
.te-logo { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: 1.42rem; letter-spacing: -.02em; color: var(--navy) !important; line-height: 1; }
.te-logo img { width: 42px; height: 42px; flex-shrink: 0; }
.te-logo.lt { color: var(--white) !important; }

/* ---------- Topbar + nav ---------- */
.te-bar { background: var(--navy); color: #A9BACB; font-size: .88rem; padding: .55rem 0; }
.te-bar a { color: var(--white); }
.te-bar a:hover { color: var(--amber); }
.te-bar .so a { margin-left: .9rem; }
.te-nav { background: var(--white); padding: .95rem 0; box-shadow: 0 1px 0 var(--line); transition: all .3s; }
.te-nav.sh { box-shadow: 0 14px 30px -22px rgba(11,27,43,.45); padding: .65rem 0; }
.te-nav .nav-link { color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: .98rem; padding: .5rem 1rem !important; }
.te-nav .nav-link:hover, .te-nav .nav-link.active { color: var(--sky); }
.te-nav .nav-link.active { position: relative; }
.te-nav .nav-link.active::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: -.95rem; height: 3px; background: var(--sky); border-radius: 0 0 4px 4px; }
.navbar-toggler { border: 1px solid var(--line); border-radius: 10px; box-shadow: none !important; padding: .25rem .6rem; color: var(--navy); }

/* ---------- Buttons ---------- */
.b-te { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: .96rem; padding: .9rem 1.6rem; border-radius: 10px; border: 2px solid transparent; transition: all .3s; cursor: pointer; }
.b-sky { background: var(--sky); color: var(--white); box-shadow: 0 14px 28px -14px rgba(2,132,199,.8); }
.b-sky:hover { background: var(--navy); color: var(--white); }
.b-amber { background: var(--amber); color: var(--navy); }
.b-amber:hover { background: var(--white); color: var(--navy); }
.b-navy { background: var(--navy); color: var(--white); }
.b-navy:hover { background: var(--sky); color: var(--white); }
.b-out { border-color: var(--navy); color: var(--navy); }
.b-out:hover { background: var(--navy); color: var(--white); }
.b-wout { border-color: rgba(255,255,255,.5); color: var(--white); }
.b-wout:hover { background: var(--white); color: var(--navy); }

/* ---------- Hero (diagonal split) ---------- */
.hero-te { position: relative; background: var(--navy); overflow: hidden; }
.hero-te .img { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); background: var(--navy-2); }
.hero-te .img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-te .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,27,43,.35), transparent 40%); }
.hero-te .stripe { position: absolute; top: 0; bottom: 0; left: 43%; width: 70px; background: var(--sky); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); opacity: .9; }
.hero-te .container { position: relative; z-index: 2; }
.hero-te .txt { padding: 110px 0 170px; max-width: 560px; color: #C7D4E2; }
.hero-te h1 { color: var(--white); font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.04; margin-bottom: 1.4rem; }
.hero-te h1 span { color: var(--amber); }
.hero-te .lead { font-size: 1.16rem; margin-bottom: 2.2rem; }
.hero-te .chk { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.2rem; }
.hero-te .chk span { display: inline-flex; align-items: center; gap: .45rem; color: var(--white); font-weight: 600; }
.hero-te .chk i { color: var(--amber); }

/* overlapping feature boxes */
.boxes-te { margin-top: -90px; position: relative; z-index: 3; }
.box-te { background: var(--white); border-radius: var(--r); padding: 2rem 1.8rem; height: 100%; box-shadow: var(--shadow); border-bottom: 4px solid var(--sky); transition: transform .3s; }
.box-te:hover { transform: translateY(-6px); }
.box-te i { font-size: 2.2rem; color: var(--sky); display: block; margin-bottom: .9rem; }
.box-te h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.box-te p { margin: 0; color: var(--muted); }
.box-te.hl { background: var(--sky); border-color: var(--amber); }
.box-te.hl i { color: var(--amber); }
.box-te.hl h3 { color: var(--white); }
.box-te.hl p { color: #E0F2FE; }

/* ---------- About ---------- */
.ab-te { position: relative; padding: 0 0 40px 40px; }
.ab-te::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 80%; border-radius: var(--r); background: repeating-linear-gradient(45deg, var(--sky-l) 0 10px, transparent 10px 20px); }
.ab-te .m { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 5/5.4; background: var(--sky-l); box-shadow: var(--shadow); }
.ab-te .m img { width: 100%; height: 100%; object-fit: cover; }
.ab-te .s { position: absolute; right: -20px; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow); background: var(--sky-l); }
.ab-te .s img { width: 100%; height: 100%; object-fit: cover; }
.ab-te .seal { position: absolute; left: 10px; top: 30px; width: 120px; height: 120px; border-radius: 50%; background: var(--amber); color: var(--navy); display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: .92rem; line-height: 1.15; border: 6px solid var(--white); box-shadow: var(--shadow); }
.ab-te .seal i { display: block; font-size: 1.6rem; }
.tabs-te .nav { gap: .5rem; margin-bottom: 1.2rem; }
.tabs-te .nav-link { border: 1.5px solid var(--line); border-radius: 10px; color: var(--navy); font-family: var(--font-head); font-weight: 700; padding: .55rem 1.1rem; background: var(--white); }
.tabs-te .nav-link.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tabs-te .tab-pane p { color: var(--muted); }
.tabs-te ul.ticks { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tabs-te .ticks li { display: flex; gap: .55rem; align-items: center; font-weight: 600; color: var(--navy); }
.tabs-te .ticks li i { color: var(--sky); }

/* ---------- Why (icons around centre image) ---------- */
.why-col .it { display: flex; gap: 1rem; margin-bottom: 2.4rem; }
.why-col .it:last-child { margin-bottom: 0; }
.why-col .it i { width: 60px; height: 60px; min-width: 60px; border-radius: 14px; background: var(--white); color: var(--sky); display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 16px 30px -20px rgba(11,27,43,.5); transition: all .3s; }
.why-col .it:hover i { background: var(--sky); color: var(--white); }
.why-col h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.why-col p { margin: 0; color: var(--muted); font-size: .97rem; }
.why-col.rt .it { flex-direction: row-reverse; text-align: right; }
.why-mid { position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 1; }
.why-mid .c { position: absolute; inset: 22px; border-radius: 50%; overflow: hidden; background: var(--sky-l); border: 8px solid var(--white); box-shadow: var(--shadow); }
.why-mid .c img { width: 100%; height: 100%; object-fit: cover; }
.why-mid::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--sky); animation: spin 40s linear infinite; }
.why-mid .dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); border: 3px solid var(--white); top: 14px; right: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Service cards ---------- */
.sv-te { background: var(--white); border-radius: var(--r); overflow: hidden; height: 100%; box-shadow: 0 16px 40px -30px rgba(11,27,43,.5); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; transition: all .35s; }
.sv-te .im { position: relative; aspect-ratio: 16/10; background: var(--sky-l); }
.sv-te .im img { width: 100%; height: 100%; object-fit: cover; }
.sv-te .ic { position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; background: var(--sky); color: var(--white); display: grid; place-items: center; font-size: 1.5rem; border: 5px solid var(--white); transition: all .35s; }
.sv-te .bd { padding: 2.8rem 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; align-items: center; transition: background .35s; }
.sv-te h3 { font-size: 1.32rem; margin-bottom: .5rem; transition: color .35s; }
.sv-te p { color: var(--muted); flex: 1; transition: color .35s; }
.sv-te:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sv-te:hover .bd { background: var(--navy); }
.sv-te:hover h3 { color: var(--white); }
.sv-te:hover p { color: #A9BACB; }
.sv-te:hover .ic { background: var(--amber); color: var(--navy); border-color: var(--navy); }
.sv-te .b-te { padding: .65rem 1.3rem; font-size: .9rem; }
.sv-te:hover .b-out { border-color: var(--amber); background: var(--amber); color: var(--navy); }

/* ---------- Testimonials ---------- */
.tm-te { height: 100%; display: flex; flex-direction: column; }
.tm-te .bub { background: var(--white); border-radius: var(--r); padding: 2rem; position: relative; flex: 1; box-shadow: 0 16px 40px -30px rgba(11,27,43,.5); }
.tm-te .bub::after { content: ""; position: absolute; left: 44px; bottom: -14px; width: 28px; height: 28px; background: var(--white); transform: rotate(45deg); border-radius: 4px; }
.tm-te .bub i.q { font-size: 2.2rem; color: var(--sky-l); position: absolute; right: 1.4rem; top: 1rem; }
.tm-te .st { color: var(--amber-d); margin-bottom: .7rem; }
.tm-te .bub p { margin: 0; color: var(--text); font-size: 1.04rem; }
.tm-te .who { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; padding-left: 26px; }
.tm-te .who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 10px 20px -12px rgba(11,27,43,.6); }
.tm-te .who strong { display: block; font-family: var(--font-head); color: var(--navy); }
.tm-te .who small { color: var(--muted); }
.tm-te.dk .bub { background: var(--sky); }
.tm-te.dk .bub::after { background: var(--sky); }
.tm-te.dk .bub p { color: var(--white); }
.tm-te.dk .bub i.q { color: rgba(255,255,255,.25); }
.tm-te.dk .st { color: var(--amber); }

/* ---------- Blog (overlay cards) ---------- */
.bl-te { position: relative; display: block; border-radius: var(--r); overflow: hidden; height: 100%; min-height: 440px; background: var(--navy-2); color: var(--white); }
.bl-te img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.bl-te::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,43,0) 25%, rgba(11,27,43,.92) 100%); }
.bl-te:hover img { transform: scale(1.06); }
.bl-te .in { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem; z-index: 2; }
.bl-te .cat { display: inline-block; background: var(--amber); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .78rem; padding: .25rem .75rem; border-radius: 6px; margin-bottom: .8rem; }
.bl-te h3 { color: var(--white); font-size: 1.45rem; }
.bl-te p { color: #C7D4E2; font-size: .95rem; margin-bottom: .9rem; }
.bl-te .go { font-family: var(--font-head); font-weight: 700; color: var(--amber); display: inline-flex; gap: .45rem; align-items: center; }
.bl-te:hover { color: var(--white); }

/* ---------- FAQ ---------- */
.faq-img { position: relative; border-radius: var(--r); overflow: hidden; height: 100%; min-height: 460px; background: var(--sky-l); }
.faq-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faq-img .bx { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; background: var(--navy); color: #C7D4E2; border-radius: 14px; padding: 1.4rem; display: flex; gap: 1rem; align-items: center; }
.faq-img .bx > i { width: 52px; height: 52px; min-width: 52px; border-radius: 12px; background: var(--amber); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; }
.faq-img .bx strong { color: var(--white); font-family: var(--font-head); display: block; font-size: 1.1rem; }
.faq-img .bx a { color: var(--amber); font-weight: 600; }
.faq-te .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: .8rem; overflow: hidden; background: var(--white); }
.faq-te .accordion-button { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--navy); background: var(--white); padding: 1.15rem 1.3rem; box-shadow: none !important; }
.faq-te .accordion-button:not(.collapsed) { background: var(--sky); color: var(--white); }
.faq-te .accordion-button::after { background-image: none; content: "+"; font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; width: 32px; height: 32px; min-width: 32px; border-radius: 8px; background: var(--sky-l); color: var(--sky); display: grid; place-items: center; transform: none; }
.faq-te .accordion-button:not(.collapsed)::after { content: "\2212"; background: var(--amber); color: var(--navy); background-image: none; transform: none; }
.faq-te .accordion-body { color: var(--muted); padding: 1.1rem 1.3rem 1.3rem; }

/* ---------- CTA ---------- */
.cta-te { position: relative; border-radius: 24px; overflow: hidden; background: var(--sky); color: #E0F2FE; }
.cta-te::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px); }
.cta-te .tx { position: relative; padding: 3.6rem; }
.cta-te h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.cta-te h2 span { color: var(--amber); }
.cta-te .pic { position: relative; height: 100%; min-height: 320px; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); background: var(--sky-d); }
.cta-te .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inner header ---------- */
.ih-te { position: relative; padding: 110px 0 130px; background: var(--navy); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
.ih-te > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.ih-te::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,27,43,.95) 30%, rgba(11,27,43,.4)); }
.ih-te .container { position: relative; z-index: 2; }
.ih-te h1 { color: var(--white); font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin-bottom: .9rem; }
.ih-te h1 span { color: var(--amber); }
.ih-te p { color: #C7D4E2; font-size: 1.12rem; max-width: 600px; margin: 0; }
.bc-te { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: rgba(255,255,255,.08); border-left: 3px solid var(--amber); padding: .4rem 1rem; font-weight: 600; font-size: .9rem; color: var(--amber); margin-bottom: 1.2rem; }
.bc-te a { color: var(--white); }
.bc-te a:hover { color: var(--amber); }

/* ---------- About page ---------- */
.mv-te { background: var(--white); border-radius: var(--r); padding: 2.2rem; height: 100%; box-shadow: 0 16px 40px -30px rgba(11,27,43,.5); border-top: 4px solid var(--sky); }
.mv-te i { width: 60px; height: 60px; border-radius: 14px; background: var(--sky-l); color: var(--sky); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem; }
.mv-te h3 { font-size: 1.45rem; }
.mv-te p { margin: 0; color: var(--muted); }
.mv-te.am { border-color: var(--amber); }
.mv-te.am i { background: #FEF3C7; color: var(--amber-d); }
.flow-te { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.flow-te > div { background: var(--navy-2); border-radius: var(--r); padding: 2rem 1.6rem; position: relative; overflow: hidden; }
.flow-te > div::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(2,132,199,.25); }
.flow-te i { font-size: 2rem; color: var(--amber); display: block; margin-bottom: .9rem; }
.flow-te h4 { font-size: 1.25rem; }
.flow-te p { margin: 0; color: #A9BACB; position: relative; z-index: 1; }
.vl-te { display: flex; gap: 1rem; padding: 1.6rem; border-radius: var(--r); border: 1px solid var(--line); height: 100%; background: var(--white); transition: all .3s; }
.vl-te:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.vl-te i { font-size: 1.8rem; color: var(--sky); }
.vl-te h4 { font-size: 1.2rem; margin-bottom: .2rem; }
.vl-te p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.ci-te { text-align: center; padding: 2rem 1.4rem; border-radius: var(--r); background: var(--white); box-shadow: 0 16px 40px -30px rgba(11,27,43,.5); border: 1px solid var(--line); height: 100%; }
.ci-te i { width: 62px; height: 62px; border-radius: 50%; background: var(--sky); color: var(--white); display: grid; place-items: center; font-size: 1.4rem; margin: 0 auto 1rem; box-shadow: 0 0 0 8px var(--sky-l); }
.ci-te h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.ci-te p, .ci-te a { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.ci-te a:hover { color: var(--sky); }
.form-te { background: var(--ice); border-radius: 22px; padding: 2.8rem; border: 1px solid var(--line); }
.form-control, .form-select { border: 1.5px solid var(--line); border-radius: 10px; padding: .85rem 1rem; background: var(--white); }
.form-control:focus, .form-select:focus { border-color: var(--sky); box-shadow: 0 0 0 .22rem rgba(2,132,199,.15); }
.form-label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); }
.form-check-input:checked { background-color: var(--sky); border-color: var(--sky); }
.map-te { border-radius: 22px; overflow: hidden; height: 100%; min-height: 460px; background: var(--sky-l); box-shadow: var(--shadow); }
.map-te iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.te-ok { display: none; background: var(--sky-l); border-left: 4px solid var(--sky); border-radius: 10px; padding: 1rem 1.2rem; margin-top: 1.2rem; font-weight: 600; color: var(--navy); }
.te-ok.show { display: flex; gap: .6rem; align-items: center; animation: upTe .4s; }
.te-ok i { color: var(--sky); font-size: 1.2rem; }
@keyframes upTe { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Newsletter ---------- */
.nl-te { padding: 80px 0 110px; background: var(--ice); }
.nl-split { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.nl-split .l { background: var(--navy); color: #C7D4E2; padding: 3rem; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.nl-split .l h2 { color: var(--white); font-size: 2rem; }
.nl-split .l ul { list-style: none; padding: 0; margin: 1rem 0 1.8rem; }
.nl-split .l li { display: flex; gap: .6rem; margin-bottom: .55rem; }
.nl-split .l li i { color: var(--amber); }
.nl-split .l .pic { margin-top: auto; border-radius: 16px; overflow: hidden; height: 220px; background: var(--navy-2); }
.nl-split .l .pic img { width: 100%; height: 100%; object-fit: cover; }
.nl-split .r { padding: 3rem; }
.tg-te { display: flex; flex-wrap: wrap; gap: .5rem; }
.tg-te label { cursor: pointer; }
.tg-te input { position: absolute; opacity: 0; pointer-events: none; }
.tg-te span { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .5rem 1rem; font-weight: 600; font-size: .92rem; background: var(--white); transition: all .2s; }
.tg-te span i { color: var(--sky); }
.tg-te input:checked + span { background: var(--sky); border-color: var(--sky); color: var(--white); }
.tg-te input:checked + span i { color: var(--amber); }
.tg-te input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.out-te { max-width: 700px; margin: 0 auto; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.out-te .hd { background: var(--navy); padding: 2.6rem; text-align: center; color: #C7D4E2; }
.out-te .hd h1 { color: var(--white); }
.out-te .hd .ic { width: 80px; height: 80px; border-radius: 50%; background: var(--amber); color: var(--navy); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }
.out-te .bd { padding: 2.6rem; }

/* ---------- Legal ---------- */
.lg-te .toc { position: sticky; top: 110px; background: var(--navy); border-radius: var(--r); padding: 1.6rem; }
.lg-te .toc h4 { color: var(--white); font-size: 1.15rem; margin-bottom: .8rem; }
.lg-te .toc a { display: block; color: #A9BACB; padding: .4rem 0 .4rem .9rem; border-left: 2px solid rgba(255,255,255,.12); font-weight: 500; }
.lg-te .toc a:hover { color: var(--amber); border-color: var(--amber); }
.lg-te .pt { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 2rem; margin-bottom: 1rem; scroll-margin-top: 110px; border-left: 4px solid var(--sky); }
.lg-te .pt h2 { font-size: 1.4rem; display: flex; gap: .7rem; align-items: center; }
.lg-te .pt h2 i { color: var(--sky); }
.lg-te .pt p, .lg-te .pt li { color: var(--muted); }
.lg-te .pt p:last-child, .lg-te .pt ul:last-child { margin-bottom: 0; }

/* ---------- Single post ---------- */
.post-te { position: relative; padding: 90px 0 150px; background: var(--navy); overflow: hidden; }
.post-te > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.post-te::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,43,.6), rgba(11,27,43,.95)); }
.post-te .container { position: relative; z-index: 2; }
.post-te h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 900px; margin-bottom: 1.2rem; }
.post-te .meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: #C7D4E2; font-weight: 500; }
.post-te .meta i { color: var(--amber); margin-right: .4rem; }
.cover-te { margin-top: -110px; position: relative; z-index: 3; border-radius: 22px; overflow: hidden; aspect-ratio: 16/7; box-shadow: var(--shadow); background: var(--sky-l); border: 6px solid var(--white); }
.cover-te img { width: 100%; height: 100%; object-fit: cover; }
.art-te { font-size: 1.1rem; line-height: 1.88; }
.art-te p { color: #334155; margin-bottom: 1.3rem; }
.art-te h2 { font-size: 1.8rem; margin: 2.4rem 0 1rem; padding-left: 1rem; border-left: 4px solid var(--sky); }
.art-te .pq { background: var(--navy); color: var(--white); border-radius: var(--r); padding: 2rem 2.2rem; margin: 2.2rem 0; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.35; position: relative; }
.art-te .pq::before { content: "\201C"; position: absolute; right: 1.4rem; top: -.4rem; font-size: 5rem; color: var(--amber); line-height: 1; }
.art-te .ti { background: #FEF3C7; border-radius: 14px; padding: 1.2rem 1.4rem; margin: 2rem 0; display: flex; gap: .9rem; font-size: 1rem; border-left: 4px solid var(--amber); }
.art-te .ti i { font-size: 1.4rem; color: var(--amber-d); }
.aside-te { position: sticky; top: 110px; }
.aside-te .bx { background: var(--ice); border-radius: var(--r); padding: 1.6rem; margin-bottom: 1.3rem; border: 1px solid var(--line); }
.aside-te h4 { font-size: 1.2rem; margin-bottom: 1rem; }
.aside-te .rel { display: flex; gap: .85rem; align-items: center; margin-bottom: 1rem; }
.aside-te .rel:last-child { margin-bottom: 0; }
.aside-te .rel img { width: 72px; height: 72px; min-width: 72px; border-radius: 12px; object-fit: cover; }
.aside-te .rel a { font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.3; font-size: .97rem; }
.aside-te .rel a:hover { color: var(--sky); }
.aside-te .svl a { display: flex; justify-content: space-between; padding: .55rem .8rem; margin-bottom: .4rem; background: var(--white); border-radius: 8px; color: var(--navy); font-weight: 600; font-size: .95rem; }
.aside-te .svl a:hover { background: var(--sky); color: var(--white); }
.aside-te .bx.dk { background: var(--navy); border-color: var(--navy); color: #A9BACB; }
.aside-te .bx.dk h4 { color: var(--white); }
.share-te a { width: 42px; height: 42px; border-radius: 10px; background: var(--sky-l); color: var(--sky); display: inline-grid; place-items: center; margin-right: .35rem; transition: all .25s; }
.share-te a:hover { background: var(--sky); color: var(--white); }
.np-te { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.np-te a { background: var(--ice); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; color: var(--navy); font-family: var(--font-head); font-weight: 700; line-height: 1.35; transition: all .25s; }
.np-te a small { display: block; color: var(--sky); font-size: .8rem; margin-bottom: .2rem; }
.np-te a:hover { border-color: var(--sky); }

/* ---------- Footer ---------- */
.ft-te { background: var(--navy); color: #A9BACB; padding: 0 0 28px; margin-top: 60px; }
.ft-te .nlbar { background: var(--amber); border-radius: 18px; padding: 2rem 2.4rem; transform: translateY(-50%); display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; color: var(--navy); }
.ft-te .nlbar h3 { margin: 0; font-size: 1.6rem; }
.ft-te .nlbar form { display: flex; gap: .5rem; flex: 1; max-width: 480px; min-width: 240px; }
.ft-te .nlbar input { flex: 1; min-width: 0; border: none; border-radius: 10px; padding: .85rem 1rem; outline: none; }
.ft-te .nlbar button { border: none; border-radius: 10px; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; padding: .8rem 1.3rem; }
.ft-te .nlbar button:hover { background: var(--sky); }
.ft-te h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.ft-te h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--sky); border-radius: 3px; }
.ft-te ul { list-style: none; padding: 0; margin: 0; }
.ft-te ul li { margin-bottom: .6rem; overflow-wrap: anywhere; }
.ft-te ul a { color: #A9BACB; }
.ft-te ul a:hover { color: var(--amber); }
.ft-te .so a { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--white); display: inline-grid; place-items: center; margin-right: .35rem; transition: all .25s; }
.ft-te .so a:hover { background: var(--sky); }
.ft-te .bot { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 1.4rem; font-size: .92rem; }
.ft-te .bot a { color: #A9BACB; }
.ft-te .bot a:hover { color: var(--amber); }

.te-top { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 12px; border: none; background: var(--sky); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .3s; z-index: 99; font-size: 1.2rem; }
.te-top.show { opacity: 1; pointer-events: auto; }
.te-top:hover { background: var(--navy); }

/* ---------- Reveal ---------- */
.ani { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.ani.shown { opacity: 1; transform: none; }
img.fb-te { background: var(--sky-l); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .te-sec { padding: 80px 0; }
  .te-nav .navbar-collapse { padding: .8rem 0 .3rem; }
  .te-nav .nav-link.active::before { display: none; }
  .hero-te .img { position: relative; width: 100%; height: 340px; clip-path: none; }
  .hero-te .stripe { display: none; }
  .hero-te .txt { padding: 70px 0 130px; }
  .boxes-te { margin-top: -70px; }
  .why-col.rt .it { flex-direction: row; text-align: left; }
  .why-mid { margin: 1rem auto 2.4rem; }
  .flow-te { grid-template-columns: 1fr 1fr; }
  .lg-te .toc, .aside-te { position: static; }
  .lg-te .toc { margin-bottom: 1.5rem; }
  .nl-split { grid-template-columns: 1fr; }
  .cta-te .pic { clip-path: none; min-height: 260px; }
  .faq-img { min-height: 360px; margin-bottom: 1rem; }
}
@media (max-width: 575.98px) {
  .g-5 { --bs-gutter-x: 1.5rem; }
  .te-logo { font-size: 1.15rem; gap: .45rem; }
  .te-logo img { width: 36px; height: 36px; }
  .hero-te .img { height: 260px; }
  .ab-te { padding: 0 0 30px 20px; }
  .ab-te .s { right: 0; }
  .ab-te .seal { width: 96px; height: 96px; font-size: .78rem; }
  .tabs-te ul.ticks, .flow-te, .np-te { grid-template-columns: 1fr; }
  .form-te, .nl-split .l, .nl-split .r, .out-te .bd, .out-te .hd, .cta-te .tx { padding: 1.9rem 1.4rem; }
  .ft-te .nlbar { padding: 1.6rem 1.3rem; }
  .ft-te .nlbar form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ani { opacity: 1; transform: none; }
}
.ci-te a.em { font-size: .84rem; }
@media (min-width: 1200px) { .ci-te a.em { white-space: nowrap; overflow-wrap: normal; } .ci-te { padding: 2rem 1rem; } }
