/* =================================================================
   PTEClasses — Components & layout
   ================================================================= */

/* ---------- Announcement / sticky top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--c-primary-700), var(--c-primary));
  color: #fff; font-size: .85rem; text-align: center; padding: 8px 16px;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: var(--c-primary);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(15,27,61,.18); }
.nav-wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-brand img { max-height: 38px; width: auto; }
.site-brand .brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff; }
.site-brand .brand-text b { color: #fff; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: inline-flex; align-items: center; gap: 5px; color: #eaf0ff; font-family: var(--font-head);
  font-weight: 500; font-size: .94rem; padding: 10px 13px; border-radius: 8px;
}
.primary-nav > ul > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: #fff; background: rgba(255,255,255,.12); }
.primary-nav .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-left: 2px; margin-top: -3px; transition: transform .2s var(--ease);
}
.primary-nav .menu-item-has-children:hover > a::after { transform: rotate(225deg); margin-top: 2px; }

/* Dropdowns */
.primary-nav .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s var(--ease); z-index: 50;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { color: var(--c-body); width: 100%; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--c-primary-050); color: var(--c-primary); }
.primary-nav .sub-menu .sub-menu { top: -8px; left: calc(100% + 6px); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-search-toggle { background: transparent; border: 0; color: #fff; padding: 6px; display: inline-flex; }
.nav-search-toggle svg { width: 20px; height: 20px; }

/* Header expandable search */
.header-search { max-height: 0; overflow: hidden; background: #fff; border-top: 0; transition: max-height .3s var(--ease); box-shadow: var(--shadow-sm); }
.header-search.open { max-height: 96px; }
.header-search .container { padding-block: 16px; }
.header-search form { display: flex; gap: 10px; }
.header-search input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); font-size: .95rem; }
.header-search button { background: var(--c-primary); color: #fff; border: 0; border-radius: var(--r-sm); padding: 0 20px; font-family: var(--font-head); font-weight: 600; }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--c-blue-bleed); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%); border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 84px); position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 .hl { color: var(--c-yellow); }
.hero p.lead { color: #dce7ff; font-size: 1.1rem; max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.hero-stats .lbl { font-size: .82rem; color: #c9d8ff; }
.hero-visual { position: relative; }
.hero-visual img, .hero-visual svg { width: 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.18)); }

/* ---------- Discover/accordion ---------- */
.accordion { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 22px; background: #fff; border: 0; font-family: var(--font-head);
  font-weight: 600; color: var(--c-ink); font-size: 1.02rem;
}
.acc-head .icon { width: 24px; height: 24px; flex-shrink: 0; position: relative; }
.acc-head .icon::before, .acc-head .icon::after {
  content: ""; position: absolute; background: var(--c-primary); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.acc-head .icon::before { width: 14px; height: 2px; }
.acc-head .icon::after { width: 2px; height: 14px; transition: transform .25s var(--ease); }
.acc-item.open .acc-head .icon::after { transform: translate(-50%, -50%) scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-body-inner { padding: 0 22px 20px; color: var(--c-body); }

/* ---------- Choose / 3-up feature cards ---------- */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card { padding: 30px 26px; text-align: center; }
.feature-card .ico {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center;
  background: var(--c-primary-050); color: var(--c-primary);
}
.feature-card .ico svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { font-size: .95rem; color: var(--c-muted); }

/* ---------- Split / AI evaluation ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img, .split-media svg { width: 100%; }
.split h2 { margin-bottom: 14px; }
.check-list { display: grid; gap: 14px; margin: 22px 0 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-body); }
.check-list .ck {
  width: 24px; height: 24px; border-radius: 50%; background: var(--c-success); color: #fff; flex-shrink: 0;
  display: grid; place-items: center; margin-top: 2px;
}
.check-list .ck svg { width: 14px; height: 14px; }

/* ---------- Advanced features grid ---------- */
.features-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-pill {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.feat-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary-100); }
.feat-pill .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--c-primary-050); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; }
.feat-pill .ico svg { width: 22px; height: 22px; }
.feat-pill span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--c-ink); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--c-bg-soft2); }
.stats-grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--c-primary); }
.stat .lbl { color: var(--c-muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: center; }
.about-grid h3 { margin: 18px 0 6px; }
.about-badge { display:inline-block; background: var(--c-yellow); color:#3a2c00; font-weight:700; font-family:var(--font-head); font-size:.72rem; letter-spacing:.1em; padding:6px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }

/* ---------- Pricing ---------- */
.pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.price-card.is-featured { border-color: var(--c-primary); box-shadow: var(--shadow-blue); transform: translateY(-6px); }
.price-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff;
  font-size: .72rem; font-weight: 700; font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--r-pill);
}
.price-card .plan-name { font-family: var(--font-head); font-weight: 600; color: var(--c-primary); letter-spacing: .02em; }
.price-card .price { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--c-ink); line-height: 1.1; margin: 6px 0 4px; }
.price-card .price small { font-size: .9rem; color: var(--c-muted); font-weight: 500; }
.price-card .price-note { color: var(--c-muted); font-size: .85rem; margin-bottom: 18px; }
.price-card ul.plan-feats { display: grid; gap: 11px; margin: 6px 0 24px; }
.price-card ul.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--c-body); }
.price-card ul.plan-feats li svg { width: 17px; height: 17px; color: var(--c-success); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- App download ---------- */
.app-cta { background: var(--c-blue-bleed); color: #fff; text-align: center; overflow: hidden; position: relative; }
.app-cta h2 { color: #fff; }
.app-cta p { color: #d7e3ff; max-width: 620px; margin: 0 auto 26px; }
.app-cta .store-badges { justify-content: center; margin-bottom: 40px; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone-mock {
  width: 190px; aspect-ratio: 9/18; background: #fff; border-radius: 26px; border: 6px solid #0d1530;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.phone-mock:nth-child(2) { transform: translateY(-22px); }
.phone-mock img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- FAQ (AEO) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item.open { border-color: var(--c-primary-100); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 20px 24px; background: #fff; border: 0; font-family: var(--font-head); font-weight: 600; color: var(--c-ink); font-size: 1.02rem;
}
.faq-q .pm { width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary-050); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .pm::before { width: 11px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 11px; transition: transform .25s var(--ease); }
.faq-item.open .faq-q .pm { background: var(--c-primary); color: #fff; }
.faq-item.open .faq-q .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--c-body); }

/* ---------- Testimonials ---------- */
.testi-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { padding: 30px 26px; position: relative; }
.testi-card .quote-mark { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--c-primary); opacity: .25; }
.testi-card p { color: var(--c-body); font-size: .96rem; margin: 6px 0 18px; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.testi-card .who .nm { font-family: var(--font-head); font-weight: 600; color: var(--c-ink); font-size: .92rem; }
.testi-card .who .meta { font-size: .8rem; color: var(--c-muted); }
.stars { display: inline-flex; gap: 2px; color: var(--c-yellow); margin-bottom: 6px; }
.stars svg { width: 16px; height: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.contact-info .ci-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .ci-item .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--c-primary-050); color: var(--c-primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci-item h4 { font-size: 1rem; margin-bottom: 2px; }
.contact-info .ci-item p, .contact-info .ci-item a { color: var(--c-muted); font-size: .92rem; }
.contact-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-family: var(--font-head); font-size: .85rem; color: var(--c-ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--c-ink); background: var(--c-bg-soft);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-100); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary-700); color: #c7d4f5; }
.footer-cta { background: var(--c-blue-bleed); text-align: center; padding: 44px 16px; }
.footer-cta h3 { color: #fff; margin-bottom: 6px; }
.footer-cta p { color: #d7e3ff; margin-bottom: 18px; }
.footer-cta .store-badges { justify-content: center; }
.footer-main { padding: 56px 0 36px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.footer-brand img { max-height: 40px; margin-bottom: 16px; }
.footer-brand p { color: #aebde6; font-size: .9rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #c7d4f5; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-col .coming { color: var(--c-yellow); font-size: .9rem; font-weight: 600; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.footer-social a:hover { background: #fff; color: var(--c-primary); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .82rem; color: #9fb1de; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #c7d4f5; }

/* =================================================================
   Module pages
   ================================================================= */
.module-hero { padding-block: clamp(36px, 5vw, 64px); }
.module-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center; }
.module-hero h1 { margin-bottom: 14px; }
.module-hero p { color: var(--c-body); margin-bottom: 20px; }
.module-badge {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 26px; text-align: center;
}
.module-badge .badge-ico { width: 90px; height: 90px; margin: 0 auto 14px; border-radius: 24px; background: var(--c-primary-050); display: grid; place-items: center; color: var(--c-primary); }
.module-badge .badge-ico svg { width: 48px; height: 48px; }
.module-badge h3 { color: var(--c-primary); }
.module-badge .badge-tag { color: var(--c-muted); font-size: .85rem; letter-spacing: .08em; }

/* Session overview table */
.overview-table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background:#fff; }
table.overview-table { width: 100%; border-collapse: collapse; min-width: 720px; }
table.overview-table th, table.overview-table td { text-align: left; padding: 16px 18px; font-size: .9rem; vertical-align: top; }
table.overview-table thead th { font-family: var(--font-head); color: var(--c-ink); border-bottom: 2px solid var(--c-line); font-size: .82rem; letter-spacing: .03em; }
table.overview-table tbody tr + tr { border-top: 1px solid var(--c-line-soft); }
table.overview-table td:first-child { font-weight: 600; color: var(--c-ink); font-family: var(--font-head); }
table.overview-table tbody tr:hover { background: var(--c-bg-soft); }

/* Intro 3-up */
.intro-3 { grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.intro-3 .ic-circle { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-primary-050); display: grid; place-items: center; color: var(--c-primary); }
.intro-3 .ic-circle svg { width: 38px; height: 38px; }
.intro-3 h4 { margin-bottom: 8px; }
.intro-3 p { font-size: .92rem; color: var(--c-muted); }

/* Task cards */
.task-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 30px; margin-bottom: 22px; }
.task-card:nth-child(even) .task-media { order: -1; }
.task-card h3 { margin-bottom: 14px; }
.task-card .tc-block { margin-bottom: 12px; }
.task-card .tc-block strong { display: block; font-family: var(--font-head); color: var(--c-ink); font-size: .92rem; }
.task-card .tc-block p, .task-card .tc-block { color: var(--c-body); font-size: .93rem; }
.task-media {
  background: var(--c-primary); border-radius: var(--r-lg); aspect-ratio: 16/10; position: relative;
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.task-media .play { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.task-media .play svg { width: 26px; height: 26px; color: var(--c-primary); margin-left: 3px; }
.task-media .vlabel { position: absolute; left: 0; right: 0; top: 24px; text-align: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; padding: 0 16px; }
.task-media .vtime { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 6px; }
.task-media a.cover { position: absolute; inset: 0; }

/* =================================================================
   Blog
   ================================================================= */
.page-hero { background: var(--c-bg-soft2); padding-block: clamp(34px, 5vw, 60px); text-align: center; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero .crumbs { color: var(--c-muted); font-size: .88rem; }
.page-hero .crumbs a { color: var(--c-primary); }

.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--c-primary-050); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat { display: inline-block; align-self: flex-start; background: var(--c-primary-050); color: var(--c-primary); font-size: .72rem; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; padding: 4px 11px; border-radius: var(--r-pill); margin-bottom: 12px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--c-ink); }
.post-card h3 a:hover { color: var(--c-primary); }
.post-card .excerpt { font-size: .92rem; color: var(--c-muted); margin-bottom: 16px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--c-muted); }
.post-meta .author { display: flex; align-items: center; gap: 8px; }
.post-meta .author img { width: 26px; height: 26px; border-radius: 50%; }
.read-more { font-family: var(--font-head); font-weight: 600; color: var(--c-primary); display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.read-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.read-more:hover svg { transform: translateX(3px); }

/* Sidebar */
.sidebar .widget { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.sidebar .widget-title { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--c-primary-050); }
.sidebar ul li { padding: 8px 0; border-bottom: 1px solid var(--c-line-soft); }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar ul li a { color: var(--c-body); font-size: .92rem; }
.sidebar ul li a:hover { color: var(--c-primary); }
.sidebar-cta { background: var(--c-blue-bleed); color: #fff; text-align: center; }
.sidebar-cta .widget-title, .sidebar-cta h4 { color: #fff; border: 0; }
.sidebar-cta p { color: #d7e3ff; font-size: .9rem; margin-bottom: 14px; }

/* Single post */
.single-wrap { max-width: 820px; margin: 0 auto; }
.entry-header h1 { margin-bottom: 14px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--c-muted); font-size: .88rem; margin-bottom: 24px; }
.entry-meta .author { display: flex; align-items: center; gap: 8px; }
.entry-meta .author img { width: 32px; height: 32px; border-radius: 50%; }
.entry-thumb { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow); }
.entry-content { font-size: 1.05rem; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; margin-bottom: .2em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul li { list-style: disc; margin-bottom: .4em; }
.entry-content ol li { list-style: decimal; margin-bottom: .4em; }
.entry-content img { border-radius: var(--r); margin-block: 1.2em; }
.entry-content blockquote { border-left: 4px solid var(--c-primary); background: var(--c-bg-soft); padding: 16px 22px; border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--c-ink); }
.entry-content a { text-decoration: underline; }

/* In-content app CTA */
.inline-cta { background: linear-gradient(120deg, var(--c-primary), var(--c-primary-600)); color: #fff; border-radius: var(--r-lg); padding: 28px 30px; margin: 30px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; box-shadow: var(--shadow-blue); }
.inline-cta h4 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.inline-cta p { color: #dde7ff; font-size: .92rem; }

.share-row { display: flex; align-items: center; gap: 10px; margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.share-row span { font-family: var(--font-head); font-weight: 600; color: var(--c-ink); }
.share-row a { width: 38px; height: 38px; border-radius: 50%; background: var(--c-primary-050); color: var(--c-primary); display: grid; place-items: center; }
.share-row a:hover { background: var(--c-primary); color: #fff; }
.share-row svg { width: 18px; height: 18px; }

.related-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--c-line); color: var(--c-body); font-family: var(--font-head); font-weight: 600; background: #fff; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* =================================================================
   Conversion elements
   ================================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180; background: var(--c-ink); color: #fff;
  transform: translateY(110%); transition: transform .35s var(--ease); box-shadow: 0 -8px 30px rgba(0,0,0,.2);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.sticky-cta .msg { display: flex; flex-direction: column; }
.sticky-cta .msg b { font-family: var(--font-head); font-size: .98rem; }
.sticky-cta .msg span { font-size: .8rem; color: #c2cbe6; }
.sticky-cta .sc-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.sticky-cta .close-sc { background: transparent; border: 0; color: #9fb1de; font-size: 1.4rem; line-height: 1; padding: 4px 8px; }

/* Exit-intent / modal */
.pte-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.pte-modal.open { display: flex; }
.pte-modal .overlay { position: absolute; inset: 0; background: rgba(8,14,34,.62); backdrop-filter: blur(3px); }
.pte-modal .modal-box { position: relative; z-index: 2; background: #fff; border-radius: var(--r-xl); max-width: 460px; width: 100%; padding: 40px 34px; text-align: center; box-shadow: var(--shadow-lg); animation: popIn .35s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.pte-modal .modal-box .close-modal { position: absolute; top: 14px; right: 16px; background: transparent; border: 0; font-size: 1.6rem; color: var(--c-muted); line-height: 1; }
.pte-modal .modal-box .badge-ico { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 20px; background: var(--c-primary-050); color: var(--c-primary); display: grid; place-items: center; }
.pte-modal .modal-box h3 { margin-bottom: 8px; }
.pte-modal .modal-box p { color: var(--c-muted); margin-bottom: 22px; }
.pte-modal .store-badges { justify-content: center; }

/* Trust badges */
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; align-items: center; opacity: .9; }
.trust-row .trust-item { display: flex; align-items: center; gap: 9px; color: var(--c-muted); font-size: .88rem; font-family: var(--font-head); font-weight: 600; }
.trust-row .trust-item svg { width: 22px; height: 22px; color: var(--c-primary); }

/* Floating app smart-banner (mobile) */
.smart-banner { display: none; }

/* back-to-top */
.to-top { position: fixed; right: 20px; bottom: 84px; width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-blue); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); z-index: 170; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* WP alignment + caption helpers */
.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: .82rem; color: var(--c-muted); text-align: center; margin-top: 6px; }
.sticky-post-badge { background: var(--c-yellow); color: #3a2c00; }

/* Search form */
.search-form { display: flex; gap: 10px; }
.search-form .search-field { flex: 1; padding: 12px 15px; border: 1px solid var(--c-line); border-radius: var(--r-sm); font-size: .95rem; background: var(--c-bg-soft); }
.search-form .search-field:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-100); background: #fff; }
.search-form .search-submit { background: var(--c-primary); color: #fff; border: 0; border-radius: var(--r-sm); padding: 0 20px; font-family: var(--font-head); font-weight: 600; cursor: pointer; white-space: nowrap; }
.search-form .search-submit:hover { background: var(--c-primary-600); }

/* Comments */
.comments-area { border-top: 1px solid var(--c-line); padding-top: 30px; }
.comments-title, .comment-reply-title { font-family: var(--font-head); }
.comment-list { display: grid; gap: 22px; }
.comment-list .comment-body { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); padding: 20px; }
.comment-list .children { margin-top: 20px; padding-left: 28px; border-left: 2px solid var(--c-primary-050); display: grid; gap: 20px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--c-ink); }
.comment-author img { border-radius: 50%; }
.comment-metadata, .comment-meta { font-size: .8rem; color: var(--c-muted); margin: 4px 0 10px; }
.comment-content { color: var(--c-body); font-size: .95rem; }
.comment-respond { margin-top: 30px; background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 26px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--c-line); border-radius: var(--r-sm); font-family: var(--font-body); margin-top: 4px; background: #fff;
}
.comment-form p { margin-bottom: 14px; }
.comment-form label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--c-ink); }
.comment-form .form-submit input, .comment-form .submit { background: var(--c-primary); color: #fff; border: 0; padding: 13px 26px; border-radius: var(--r-pill); font-family: var(--font-head); font-weight: 600; cursor: pointer; }
.page-links { margin-top: 24px; font-family: var(--font-head); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.page-links a, .page-links > span { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--c-line); border-radius: var(--r-sm); }
.page-links a:hover { background: var(--c-primary); color: #fff; }
