/*
Theme Name: SoSanhESIM
Theme URI: https://sosanhesim.com/
Author: SoSanhESIM
Description: Theme riêng cho sosanhesim.com. Homepage được render trực tiếp bằng front-page.php để tránh lặp Gutenberg/FSE, tích hợp eSIM Compare, Data Usage Calculator và FAQ Manager.
Version: 1.1.2
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: sosanhesim
*/

:root{
  --esgt3-primary:#4f46e5;
  --esgt3-primary-dark:#3326d6;
  --esgt3-ink:#11172a;
  --esgt3-muted:#63677a;
  --esgt3-soft:#f7f7ff;
  --esgt3-soft-2:#f1f2ff;
  --esgt3-line:#e3e5f1;
}
html{scroll-behavior:smooth}
body{margin:0;overflow-x:hidden;background:#fff;color:var(--esgt3-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.admin-bar .esgt3-header{top:32px}
@media(max-width:782px){body.admin-bar .esgt3-header{top:46px}}
a{color:inherit}.esgt3-module-wrap,.esgt3-faq-module-wrap{width:100%;max-width:none;margin:0;padding:0}

.esgt3-home{
  position:relative;width:100%;max-width:100%;margin:0;padding:0;color:var(--esgt3-ink);background:#fff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;line-height:1.5;text-align:left;isolation:isolate;
}
/* Header */
.esgt3-header{
  position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:60;height:70px;
  display:flex;align-items:center;background:rgba(255,255,255,.96);border-bottom:1px solid #ececf4;
  backdrop-filter:saturate(150%) blur(14px);box-shadow:0 4px 20px rgba(32,33,62,.035)
}
.esgt3-header__row{display:flex;align-items:center;justify-content:space-between;gap:26px}
.esgt3-brand{display:inline-flex;align-items:center;flex:0 0 auto;white-space:nowrap}
.esgt3-brand__logo{display:block!important;width:auto!important;height:40px!important;max-width:190px!important;object-fit:contain!important;margin:0!important}
.esgt3-nav{display:flex;align-items:center;justify-content:center;gap:30px;min-width:0}
.esgt3-nav a{position:relative;padding:24px 0 20px;color:#666879!important;font-size:14px;font-weight:540;white-space:nowrap}
.esgt3-nav a:hover,.esgt3-nav a[aria-current="page"]{color:var(--esgt3-primary)!important}
.esgt3-nav a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:15px;height:2px;border-radius:2px;background:var(--esgt3-primary)}
.esgt3-start{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 20px;border-radius:9px;background:linear-gradient(135deg,#7567ed,#5744df);color:#fff!important;font-size:14px;font-weight:780;box-shadow:0 10px 22px rgba(79,70,229,.2);white-space:nowrap}
.esgt3-start:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(79,70,229,.27)}

/* Hero */
.esgt3-hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#fbfbff 0%,#f7f7ff 70%,#f5f5fe 100%);padding:82px 0 88px}
.esgt3-hero::before{content:"";position:absolute;width:580px;height:580px;right:-180px;top:-160px;border-radius:50%;background:radial-gradient(circle,rgba(97,211,239,.24),rgba(97,211,239,0) 68%)}
.esgt3-hero::after{content:"";position:absolute;width:520px;height:520px;left:-230px;bottom:-270px;border-radius:50%;background:radial-gradient(circle,rgba(107,87,239,.12),rgba(107,87,239,0) 70%)}
.esgt3-hero__grid{position:relative;z-index:1;display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr)!important;align-items:center;gap:74px}
.esgt3-hero__copy{min-width:0}
.esgt3-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:20px;color:var(--esgt3-primary);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.esgt3-eyebrow::before{content:"";width:24px;height:2px;background:currentColor;border-radius:2px}
.esgt3-hero h1{max-width:680px;margin:0!important;color:var(--esgt3-ink)!important;font-size:clamp(46px,5.1vw,68px)!important;line-height:1.04!important;letter-spacing:-.05em!important;font-weight:860!important}
.esgt3-hero__lead{max-width:650px;margin:24px 0 0!important;color:#505466!important;font-size:18px;line-height:1.7}

.esgt3-quick-search{max-width:610px;margin-top:34px;padding:18px 20px 20px;border:1px solid #e1e3f0;border-radius:16px;background:#fff;box-shadow:0 16px 38px rgba(39,45,83,.12)}
.esgt3-quick-search label{display:block;margin:0 0 10px!important;color:#262b3d!important;font-size:14px;font-weight:750}
.esgt3-quick-search__row{display:grid!important;grid-template-columns:minmax(0,1fr) 160px!important;gap:14px;align-items:stretch}
.esgt3-quick-search__input{position:relative;display:flex;align-items:center}
.esgt3-quick-search__icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:24px;height:24px;color:#686a7d;pointer-events:none}
.esgt3-quick-search input{width:100%!important;min-height:52px!important;margin:0!important;padding:0 16px 0 46px!important;border:1px solid #d9dceb!important;border-radius:10px!important;background:#fbfbff!important;color:#282c3d!important;font-size:16px!important;line-height:1!important;box-shadow:none!important;outline:none!important}
.esgt3-quick-search input:focus{border-color:var(--esgt3-primary)!important;box-shadow:0 0 0 4px rgba(79,70,229,.12)!important}
.esgt3-quick-search button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:52px!important;margin:0!important;padding:0 20px!important;border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#4f46e5,#3426d7)!important;color:#fff!important;font-size:15px!important;font-weight:780!important;cursor:pointer!important;box-shadow:0 10px 24px rgba(57,46,220,.22)!important}
.esgt3-quick-search button:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(57,46,220,.28)!important}
.esgt3-quick-search__status{min-height:20px;margin:9px 0 0!important;color:#666b7e!important;font-size:13px;line-height:1.45}
.esgt3-quick-search__status:empty{display:none}
.esgt3-quick-search__status[data-state="success"]{color:#137333!important}
.esgt3-quick-search__status[data-state="error"]{color:#b42318!important}

.esgt3-trust{display:flex;align-items:center;gap:14px;margin-top:30px;color:#4f5264;font-size:13px}
.esgt3-trust img{display:block;width:126px!important;height:auto!important;margin:0!important;object-fit:contain}
.esgt3-trust strong{color:#24283a;font-weight:800}

.esgt3-visual{position:relative;min-width:0;padding:16px}
.esgt3-visual::before{content:"";position:absolute;inset:10% 3% 2% 10%;border-radius:42%;background:radial-gradient(circle at 48% 52%,rgba(42,201,234,.22),rgba(67,74,233,.08) 54%,rgba(67,74,233,0) 74%);filter:blur(18px)}
.esgt3-visual__frame{position:relative;z-index:1;padding:14px;border:1px solid #dfe4f4;border-radius:24px;background:rgba(255,255,255,.88);box-shadow:0 28px 60px rgba(36,47,94,.18);transform:rotate(1.4deg)}
.esgt3-visual__frame::after{content:"";position:absolute;inset:10px;border:1px solid rgba(255,255,255,.8);border-radius:18px;pointer-events:none}
.esgt3-visual img{display:block;width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover;border-radius:16px!important;margin:0!important;background:#edf7ff}
.esgt3-float-pill{position:absolute;z-index:2;display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid #e6e8f4;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 12px 26px rgba(32,38,72,.12);color:#34384d;font-size:13px;font-weight:720;backdrop-filter:blur(10px)}
.esgt3-float-pill--top{right:-12px;top:6%}.esgt3-float-pill--bottom{left:-22px;bottom:7%}
.esgt3-float-dot{width:10px;height:10px;border-radius:50%;background:#3fd1a5;box-shadow:0 0 0 5px rgba(63,209,165,.14)}

/* Intro before plugin */
.esgt3-intro{position:relative;background:linear-gradient(180deg,#f1f2ff,#f7f7ff);padding:58px 0 34px;border-radius:34px 34px 0 0}
.esgt3-intro__inner{text-align:center}
.esgt3-intro h2{margin:0!important;color:var(--esgt3-ink)!important;font-size:31px!important;line-height:1.25!important;letter-spacing:-.03em!important;font-weight:830!important}
.esgt3-intro p{max-width:720px;margin:14px auto 0!important;color:#606477!important;font-size:17px;line-height:1.65}

/* Lower content: How it works */
.esgt3-content{background:var(--esgt3-soft);padding:0}
.esgt3-content--before-posts{padding-bottom:24px}
.esgt3-section-heading{margin-bottom:24px}.esgt3-section-heading h2{margin:0!important;color:var(--esgt3-ink)!important;font-size:27px!important;line-height:1.25!important;letter-spacing:-.025em!important;font-weight:780!important}.esgt3-section-heading p{margin:7px 0 0!important;color:var(--esgt3-muted)!important}

/* How it works */
.esgt3-how{background:#faf9ff;scroll-margin-top:92px}
.esgt3-how__hero{position:relative;overflow:hidden;padding:78px 0 72px;background:linear-gradient(180deg,#faf9ff 0%,#f9f8ff 100%)}
.esgt3-how__hero::after{content:"";position:absolute;width:420px;height:420px;right:-155px;top:-190px;border-radius:50%;background:radial-gradient(circle,rgba(195,192,255,.36),rgba(195,192,255,0) 70%);pointer-events:none}
.esgt3-how__hero-grid{position:relative;z-index:1;display:grid!important;grid-template-columns:minmax(0,.98fr) minmax(420px,1.02fr)!important;align-items:center;gap:68px}
.esgt3-how__copy{min-width:0}
.esgt3-how__title{max-width:610px;margin:0!important;color:#3525cd!important;font-size:clamp(36px,4.2vw,48px)!important;line-height:1.1!important;letter-spacing:-.035em!important;font-weight:850!important}
.esgt3-how__lead{max-width:590px;margin:24px 0 0!important;color:#474b5d!important;font-size:17px;line-height:1.72}
.esgt3-how__visual{min-width:0}
.esgt3-how__image-frame{position:relative;overflow:hidden;aspect-ratio:4/3;margin:0!important;border:1px solid #ececf5;border-radius:15px;background:#eef7fc;box-shadow:0 18px 42px rgba(39,45,83,.12)}
.esgt3-how__image-frame img{display:block!important;width:100%!important;height:100%!important;margin:0!important;object-fit:cover!important}

/* Three step cards */
.esgt3-how__steps-wrap{padding:6px 0 64px;background:#faf9ff}
.esgt3-how__steps-shell{position:relative;overflow:hidden;padding:50px 20px;border-radius:28px;background:linear-gradient(135deg,rgba(226,223,255,.48),rgba(250,249,255,.96) 48%,rgba(201,230,255,.45));box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.esgt3-how__steps{position:relative;z-index:1;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:26px}
.esgt3-how-card{--step-accent:#4f46e5;--step-accent-dark:#3525cd;position:relative;min-width:0;overflow:hidden;padding:28px 27px 30px;border:1px solid rgba(255,255,255,.78);border-radius:22px;background:rgba(255,255,255,.63);box-shadow:0 18px 36px rgba(32,38,72,.06);backdrop-filter:blur(12px);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.esgt3-how-card:hover{transform:translateY(-5px);border-color:rgba(255,255,255,.96);box-shadow:0 24px 46px color-mix(in srgb,var(--step-accent) 14%,transparent)}
.esgt3-how-card--blue{--step-accent:#20a7df;--step-accent-dark:#0077a8}
.esgt3-how-card--red{--step-accent:#c9103c;--step-accent-dark:#95002b}
.esgt3-how-card::after{content:"";position:absolute;width:140px;height:140px;right:-72px;top:-78px;border-radius:50%;background:var(--step-accent);opacity:.1;filter:blur(20px);pointer-events:none}
.esgt3-how-card__number{position:absolute;z-index:0;right:6px;top:-25px;color:var(--step-accent);opacity:.09;font-size:96px;line-height:1;font-weight:900;letter-spacing:-.08em;user-select:none}
.esgt3-how-card__content{position:relative;z-index:1}
.esgt3-how-card__icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:26px;border-radius:13px;background:linear-gradient(135deg,var(--step-accent-dark),var(--step-accent));color:#fff;box-shadow:0 9px 18px color-mix(in srgb,var(--step-accent) 28%,transparent)}
.esgt3-how-card__icon svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.esgt3-how-card h3{margin:0 0 12px!important;color:#151824!important;font-size:24px!important;line-height:1.24!important;letter-spacing:-.025em!important;font-weight:790!important}
.esgt3-how-card p{margin:0!important;color:#505466!important;font-size:15.5px;line-height:1.65}


/* Heading before dynamic posts */
.esgt3-posts-heading{padding:8px 0 0;scroll-margin-top:92px}

/* Dynamic posts */
.esgt3-posts-wrap{width:100%!important;max-width:none!important;margin:0!important;padding:0 0 72px!important;background:var(--esgt3-soft)}
.esgt3-post-query{width:min(1180px,calc(100% - 40px))!important;max-width:none!important;margin-inline:auto!important;padding:0!important}
.esgt3-post-query .wp-block-post-template,.esgt3-post-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;margin:0!important;padding:0!important;list-style:none!important}
.esgt3-post-query .wp-block-post{min-width:0;margin:0!important;padding:0!important}.esgt3-post{height:100%;overflow:hidden;border:1px solid var(--esgt3-line);border-radius:13px;background:#fff}.esgt3-post__image{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#6986bc,#d7a96b);overflow:hidden;margin:0!important}.esgt3-post__image img{display:block;width:100%!important;height:100%!important;object-fit:cover!important}.esgt3-post__body{padding:18px!important}.esgt3-post__body>.wp-block-post-terms{margin:0!important}.esgt3-post__body>.wp-block-post-title{margin:8px 0 9px!important;font-size:20px!important;line-height:1.32!important;font-weight:730!important}.esgt3-post__body>.wp-block-post-title a{color:var(--esgt3-ink)!important}.esgt3-post__body>.wp-block-post-excerpt{margin:0!important}.esgt3-post__body>.wp-block-post-excerpt p{margin:0!important;color:var(--esgt3-muted)!important;font-size:14px;line-height:1.6}.esgt3-post__category,.esgt3-post__category a{color:var(--esgt3-primary)!important;font-size:11px;font-weight:800;text-transform:uppercase!important;letter-spacing:.06em!important}.esgt3-post__footer{display:flex!important;align-items:center;justify-content:space-between!important;gap:12px;margin-top:16px!important;padding-top:14px;border-top:1px solid #eceef4;color:#6a6c7a;font-size:12px}.esgt3-post__footer .wp-block-post-date,.esgt3-post__footer .wp-block-read-more{margin:0!important}.esgt3-post__footer a{color:var(--esgt3-primary)!important;font-weight:700}

/* Footer */
.esgt3-footer{background:#fff;border-top:1px solid #ececf3;padding:42px 0}.esgt3-footer__grid{display:grid!important;grid-template-columns:1.5fr repeat(3,minmax(0,1fr))!important;gap:36px}.esgt3-footer h3{margin:0 0 14px!important;color:var(--esgt3-ink)!important;font-size:15px!important;font-weight:730!important}.esgt3-footer p,.esgt3-footer a{color:#626474!important;font-size:14px;line-height:1.7}.esgt3-footer__links{display:grid;gap:7px}.esgt3-copyright{margin-top:16px!important}.esgt3-beta-note{max-width:360px;margin:6px 0 0!important;color:#8a8d9d!important;font-size:12.5px!important;line-height:1.55!important}

@media(max-width:1040px){
  .esgt3-hero__grid{grid-template-columns:minmax(0,1fr) minmax(360px,.85fr)!important;gap:40px}
  .esgt3-nav{gap:18px}
  .esgt3-post-grid,.esgt3-post-query .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .esgt3-footer__grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:820px){
  .esgt3-nav{display:none}.esgt3-hero{padding:58px 0 72px}.esgt3-hero__grid{grid-template-columns:1fr!important;gap:44px}.esgt3-hero__copy{max-width:720px}.esgt3-visual{width:min(620px,100%);margin-inline:auto}.esgt3-float-pill--top{right:0}.esgt3-float-pill--bottom{left:0}
  .esgt3-how__hero{padding:62px 0 54px}.esgt3-how__hero-grid{grid-template-columns:1fr!important;gap:38px}.esgt3-how__copy{text-align:center}.esgt3-how__title,.esgt3-how__lead{margin-inline:auto!important}.esgt3-how__visual{width:min(620px,100%);margin-inline:auto}.esgt3-how__steps-shell{padding:34px 18px}.esgt3-how__steps{grid-template-columns:1fr!important;gap:18px}.esgt3-how-card{padding:25px}
}
@media(max-width:600px){
  .esgt3-home{left:auto!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}.esgt3-container{width:min(100% - 26px,560px)!important}.esgt3-header{height:64px}.esgt3-brand__logo{height:34px!important;max-width:160px!important}.esgt3-start{min-height:38px;padding:0 13px;font-size:13px}.esgt3-hero{padding:46px 0 58px}.esgt3-hero h1{font-size:41px!important}.esgt3-hero__lead{font-size:16px;line-height:1.65}.esgt3-quick-search{padding:16px}.esgt3-quick-search__row{grid-template-columns:1fr!important}.esgt3-trust{align-items:flex-start;flex-direction:column;gap:8px}.esgt3-visual{padding:0}.esgt3-float-pill{display:none}.esgt3-intro{padding:44px 0 26px;border-radius:24px 24px 0 0}.esgt3-intro h2{font-size:27px!important}.esgt3-intro p{font-size:15px}.esgt3-how__hero{padding:50px 0 42px}.esgt3-how__title{font-size:34px!important}.esgt3-how__lead{font-size:15.5px;line-height:1.65}.esgt3-how__image-frame{aspect-ratio:16/10;border-radius:12px}.esgt3-how__steps-wrap{padding-bottom:48px}.esgt3-how__steps-shell{margin-inline:-2px;padding:22px 12px;border-radius:20px}.esgt3-how-card{padding:23px 21px 25px;border-radius:18px}.esgt3-how-card__number{font-size:80px;top:-20px}.esgt3-how-card__icon{width:48px;height:48px;margin-bottom:21px}.esgt3-how-card h3{font-size:21px!important}.esgt3-how-card p{font-size:14.5px}.esgt3-post-grid,.esgt3-post-query .wp-block-post-template,.esgt3-footer__grid{grid-template-columns:1fr!important}.esgt3-post-query{width:min(100% - 24px,520px)!important}
}

/* Theme-specific additions */
.esgt3-home,.esgt3-home *,.esgt3-home *::before,.esgt3-home *::after{box-sizing:border-box}
.esgt3-home :where(h1,h2,h3,h4,p,figure,ul,ol){margin-block-start:0}
.esgt3-home :where(a,button,input,select,textarea){font-family:inherit!important;text-transform:none!important;letter-spacing:normal!important}
.esgt3-home :where(a){text-decoration:none}
.esgt3-container{width:min(1180px,calc(100% - 40px))!important;max-width:none!important;margin-inline:auto!important;padding:0!important}
.esgt3-anchor{height:0;scroll-margin-top:110px}
.esgt3-module-wrap{background:var(--esgt3-soft)}
.esgt3-faq-module-wrap{background:#fff;padding:56px 0 40px}
.esgt3-legal-note{margin:14px 0 28px;padding:14px 16px;border:1px solid #e6e7eb;border-radius:10px;background:#fafafa;line-height:1.6;font-size:14px}.esgt3-legal-note a{text-decoration:underline;color:var(--esgt3-primary)!important}
.esgt3-missing-plugin{margin:28px 0;padding:18px;border:1px solid #f0c36d;border-radius:12px;background:#fff8e6;color:#704c00}

.esgt3-post__body h3{margin:8px 0 9px!important;font-size:20px!important;line-height:1.32!important;font-weight:730!important}
.esgt3-post__body h3 a{color:var(--esgt3-ink)!important;text-decoration:none}
.esgt3-post__body>p{margin:0!important;color:var(--esgt3-muted)!important;font-size:14px;line-height:1.6}
.esgt3-post__image:empty{display:block}

/* Standard pages/posts */
.esgt3-page-main{min-height:60vh;padding:64px 0;background:linear-gradient(180deg,#f8f8ff,#fff)}
.esgt3-page-container{width:min(960px,calc(100% - 40px));margin:0 auto}
.esgt3-page-card{padding:48px 54px;border:1px solid var(--esgt3-line);border-radius:20px;background:#fff;box-shadow:0 18px 48px rgba(39,45,83,.08)}
.esgt3-page-header{margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid #eceef4}
.esgt3-page-header h1{margin:0;color:var(--esgt3-ink);font-size:clamp(34px,5vw,52px);line-height:1.12;letter-spacing:-.035em}
.esgt3-page-content{color:#34384d;font-size:16px;line-height:1.78}
.esgt3-page-content h2,.esgt3-page-content h3{margin-top:1.8em;color:var(--esgt3-ink);line-height:1.3}
.esgt3-page-content a{color:var(--esgt3-primary);text-decoration:underline}
.esgt3-page-content img{max-width:100%;height:auto;border-radius:12px}
.esgt3-page-content table{width:100%;border-collapse:collapse}.esgt3-page-content th,.esgt3-page-content td{padding:12px;border:1px solid var(--esgt3-line);text-align:left}
.esgt3-article-meta{margin:0 0 9px;color:var(--esgt3-muted);font-size:14px}.esgt3-article-cover{margin:0 0 30px}.esgt3-article-cover img{display:block;width:100%;height:auto;border-radius:16px}
.esgt3-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.esgt3-archive-card{overflow:hidden;border:1px solid var(--esgt3-line);border-radius:14px;padding:18px}.esgt3-archive-thumb{display:block;margin:-18px -18px 16px}.esgt3-archive-thumb img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.esgt3-archive-card h2{font-size:21px;line-height:1.3}.esgt3-archive-card h2 a{text-decoration:none;color:var(--esgt3-ink)}.esgt3-archive-card p{color:var(--esgt3-muted)}
.esgt3-not-found{text-align:center}.esgt3-not-found .esgt3-start{margin-top:14px}

@media(max-width:600px){
  .esgt3-container{width:min(100% - 26px,560px)!important}
  .esgt3-page-container{width:min(100% - 24px,560px)}
  .esgt3-page-card{padding:30px 22px;border-radius:16px}
  .esgt3-archive-grid{grid-template-columns:1fr}
}

/* =========================================================
   Single article layout v1.1.2
   ========================================================= */
.esgt3-article-main,
.esgt3-article-main *{box-sizing:border-box}
.esgt3-article-main{min-height:70vh;padding:38px 0 80px;background:linear-gradient(180deg,#f7f7ff 0,#fbfbff 280px,#fff 100%)}
.esgt3-article-shell{width:min(1280px,calc(100% - 48px));margin:0 auto}
.esgt3-breadcrumb{display:flex;align-items:center;gap:9px;min-width:0;margin:0 0 24px;color:#74788b;font-size:13px;line-height:1.4}
.esgt3-breadcrumb a{color:#666b7f;text-decoration:none}.esgt3-breadcrumb a:hover{color:var(--esgt3-primary)}
.esgt3-breadcrumb>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.esgt3-article-layout{display:grid;grid-template-columns:minmax(0,860px) minmax(270px,320px);align-items:start;justify-content:center;gap:36px}
.esgt3-article-panel{min-width:0;padding:46px 52px 56px;border:1px solid #e4e6f0;border-radius:22px;background:#fff;box-shadow:0 20px 50px rgba(38,43,82,.07)}
.esgt3-article-header{margin:0 0 30px;padding-bottom:27px;border-bottom:1px solid #eceef4}
.esgt3-article-category{display:inline-flex;align-items:center;margin-bottom:15px;padding:7px 10px;border-radius:999px;background:#efefff;color:#4f46e5!important;font-size:12px;font-weight:800;text-decoration:none!important;text-transform:uppercase;letter-spacing:.055em}
.esgt3-article-header h1{max-width:790px;margin:0!important;color:#101628!important;font-size:clamp(38px,4.3vw,58px)!important;line-height:1.08!important;letter-spacing:-.045em!important;font-weight:850!important;text-wrap:balance}
.esgt3-article-byline{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px;color:#73778b;font-size:14px;line-height:1.4}
.esgt3-article-cover{overflow:hidden;width:100%;max-width:100%;margin:0 0 36px!important;border:1px solid #e6e8f1;border-radius:18px;background:#f1f4fa;box-shadow:0 10px 28px rgba(39,45,83,.07)}
.esgt3-article-cover img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;object-fit:contain!important;border-radius:0!important}

.esgt3-article-content{min-width:0;max-width:100%;overflow-wrap:anywhere;color:#34394c;font-size:17.5px;line-height:1.82}
.esgt3-article-content>*:first-child{margin-top:0!important}.esgt3-article-content>*:last-child{margin-bottom:0!important}
.esgt3-article-content p{margin:0 0 1.35em}
.esgt3-article-content h2{margin:2.1em 0 .68em!important;color:#12182b!important;font-size:31px!important;line-height:1.24!important;letter-spacing:-.025em!important;font-weight:810!important}
.esgt3-article-content h3{margin:1.75em 0 .58em!important;color:#171d30!important;font-size:24px!important;line-height:1.32!important;letter-spacing:-.018em!important;font-weight:770!important}
.esgt3-article-content h4{margin:1.5em 0 .5em!important;color:#20263a!important;font-size:19px!important;line-height:1.35!important;font-weight:760!important}
.esgt3-article-content a{color:#4f46e5;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.esgt3-article-content a:hover{color:#3326d6}
.esgt3-article-content ul,.esgt3-article-content ol{margin:0 0 1.45em;padding-left:1.45em}
.esgt3-article-content li{margin:.4em 0;padding-left:.15em}
.esgt3-article-content blockquote{margin:1.8em 0;padding:20px 24px;border:0;border-left:4px solid #5a4ce6;border-radius:0 14px 14px 0;background:#f6f6ff;color:#3d4256;font-size:17px;line-height:1.75}
.esgt3-article-content blockquote p:last-child{margin-bottom:0}
.esgt3-article-content figcaption{margin:9px auto 0;color:#7b7f90;font-size:13px;line-height:1.5;text-align:center}

/* Keep every media block inside the readable article column. */
.esgt3-article-content img,
.esgt3-article-content picture,
.esgt3-article-content video,
.esgt3-article-content canvas,
.esgt3-article-content svg,
.esgt3-article-content iframe,
.esgt3-article-content embed,
.esgt3-article-content object{max-width:100%!important}
.esgt3-article-content img,.esgt3-article-content video{height:auto!important}
.esgt3-article-content figure,
.esgt3-article-content .wp-block-image,
.esgt3-article-content .wp-block-gallery,
.esgt3-article-content .wp-block-cover,
.esgt3-article-content .wp-block-media-text,
.esgt3-article-content .alignwide,
.esgt3-article-content .alignfull{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
.esgt3-article-content .wp-block-image{margin-top:1.7em!important;margin-bottom:1.7em!important}
.esgt3-article-content .wp-block-image img{display:block;width:auto!important;max-width:100%!important;height:auto!important;margin-inline:auto;border-radius:14px}
.esgt3-article-content .wp-block-image.size-full img{width:100%!important}
.esgt3-article-content iframe{display:block;width:100%!important;aspect-ratio:16/9;height:auto;border:0;border-radius:14px}
.esgt3-article-content .wp-block-table{display:block;width:100%;max-width:100%;overflow-x:auto;margin:1.6em 0;-webkit-overflow-scrolling:touch}
.esgt3-article-content table{width:100%;min-width:560px;border-collapse:collapse;font-size:15px}
.esgt3-article-content th,.esgt3-article-content td{padding:12px 14px;border:1px solid #e0e3ee;text-align:left;vertical-align:top}
.esgt3-article-content th{background:#f6f7fb;color:#22283b;font-weight:750}
.esgt3-article-content pre{max-width:100%;overflow:auto;padding:18px;border-radius:12px;background:#171a27;color:#f5f6ff;font-size:14px;line-height:1.6}
.esgt3-article-content code{word-break:break-word}
.esgt3-article-anchor{scroll-margin-top:102px}

.esgt3-article-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:42px;padding-top:24px;border-top:1px solid #eceef4;color:#73778b;font-size:13px}
.esgt3-article-tags>span{font-weight:750;color:#4c5164}.esgt3-article-tags a{padding:6px 9px;border-radius:999px;background:#f4f4fb;color:#565b70;text-decoration:none}.esgt3-article-tags a:hover{background:#ececff;color:#4338ca}

/* Sidebar */
.esgt3-article-sidebar{min-width:0}
.esgt3-article-sidebar__sticky{position:sticky;top:96px;display:grid;gap:18px}
.esgt3-sidebar-card{overflow:hidden;padding:22px;border:1px solid #e4e6f0;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(39,45,83,.055)}
.esgt3-sidebar-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.esgt3-sidebar-kicker{display:block;margin-bottom:5px;color:#6558e8;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.09em}
.esgt3-sidebar-card h2{margin:0!important;color:#171d30!important;font-size:19px!important;line-height:1.3!important;letter-spacing:-.015em!important;font-weight:800!important}
.esgt3-toc-list{display:none;gap:2px;max-height:320px;margin-top:15px;padding-right:4px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5d6e5 transparent}
.esgt3-toc.is-open .esgt3-toc-list{display:grid}
.esgt3-toc-list::-webkit-scrollbar{width:6px}.esgt3-toc-list::-webkit-scrollbar-thumb{border-radius:999px;background:#d5d6e5}.esgt3-toc-list::-webkit-scrollbar-track{background:transparent}
.esgt3-toc-link{position:relative;display:block;padding:8px 9px 8px 14px;border-radius:9px;color:#5f6477!important;font-size:13.5px;line-height:1.42;text-decoration:none!important;transition:background .18s ease,color .18s ease}
.esgt3-toc-link::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;border-radius:2px;background:#e2e4ee}
.esgt3-toc-link--h3{padding-left:24px;font-size:13px}.esgt3-toc-link--h3::before{left:10px}
.esgt3-toc-link:hover{background:#f6f6ff;color:#3429c7!important}.esgt3-toc-link.is-active{background:#f0efff;color:#372cd1!important;font-weight:740}.esgt3-toc-link.is-active::before{background:#594ce3}
.esgt3-toc-empty{margin:14px 0 0;color:#868a9a;font-size:13px;line-height:1.55}
.esgt3-toc-toggle{display:inline-flex;min-width:72px;height:34px;flex:0 0 auto;align-items:center;justify-content:center;gap:5px;padding:0 9px;border:1px solid #e2e4ef;border-radius:9px;background:#fff;color:#4d5266;font:inherit;font-size:11px;font-weight:760;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease}
.esgt3-toc-toggle:hover{border-color:#cfd1e4;background:#f7f7fc;color:#3730c5}
.esgt3-toc-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}.esgt3-toc.is-open .esgt3-toc-toggle svg{transform:rotate(180deg)}
.esgt3-toc-toggle__close{display:none}.esgt3-toc.is-open .esgt3-toc-toggle__open{display:none}.esgt3-toc.is-open .esgt3-toc-toggle__close{display:inline}
.esgt3-sidebar-tools__links{display:grid;gap:7px;margin-top:14px}.esgt3-sidebar-tools__links a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border-radius:10px;background:#f7f7fc;color:#484d61!important;font-size:13.5px;font-weight:680;text-decoration:none!important}.esgt3-sidebar-tools__links a:hover{background:#efefff;color:#3f35d3!important}
.esgt3-sidebar-recent__list{display:grid;gap:14px;margin-top:15px}.esgt3-sidebar-recent__item{display:grid;grid-template-columns:68px minmax(0,1fr);gap:11px;align-items:center;color:inherit!important;text-decoration:none!important}.esgt3-sidebar-recent__thumb{display:block;overflow:hidden;width:68px;height:55px;border-radius:9px;background:#edf0f7}.esgt3-sidebar-recent__thumb img{display:block;width:100%!important;height:100%!important;object-fit:cover!important}.esgt3-sidebar-recent__copy{min-width:0}.esgt3-sidebar-recent__copy strong{display:-webkit-box;overflow:hidden;color:#34394c;font-size:12.8px;line-height:1.4;font-weight:720;-webkit-box-orient:vertical;-webkit-line-clamp:2}.esgt3-sidebar-recent__copy small{display:block;margin-top:4px;color:#9699a7;font-size:11px}.esgt3-sidebar-recent__item:hover strong{color:#4338ca}

@media(max-width:1080px){
  .esgt3-article-layout{grid-template-columns:minmax(0,790px) minmax(240px,290px);gap:26px}
  .esgt3-article-panel{padding:40px 42px 50px}
}
@media(max-width:980px){
  .esgt3-article-main{padding-top:28px}
  .esgt3-article-shell{width:min(860px,calc(100% - 36px))}
  .esgt3-article-layout{grid-template-columns:1fr;gap:22px}
  .esgt3-article-sidebar{grid-row:1}.esgt3-article-panel{grid-row:2}
  .esgt3-article-sidebar__sticky{position:static;display:grid;grid-template-columns:1fr 1fr;align-items:start}
  .esgt3-toc{grid-column:1/-1}
}
@media(max-width:680px){
  .esgt3-article-main{padding:20px 0 54px}
  .esgt3-article-shell{width:min(100% - 24px,620px)}
  .esgt3-breadcrumb{margin-bottom:16px;font-size:12px}
  .esgt3-article-panel{padding:27px 20px 34px;border-radius:16px}
  .esgt3-article-header{margin-bottom:22px;padding-bottom:20px}
  .esgt3-article-header h1{font-size:36px!important;line-height:1.1!important}
  .esgt3-article-cover{margin-bottom:27px!important;border-radius:13px}
  .esgt3-article-content{font-size:16.5px;line-height:1.76}
  .esgt3-article-content h2{font-size:27px!important}.esgt3-article-content h3{font-size:22px!important}
  .esgt3-article-sidebar__sticky{grid-template-columns:1fr}
  .esgt3-toc{grid-column:auto}
  .esgt3-sidebar-card{padding:18px;border-radius:14px}
  .esgt3-article-content table{min-width:520px}
}
