/* =========================================================================
   EGlobeStore — Blog (listing + single) and legal-page polish
   ========================================================================= */

/* ---- blog listing ---- */
.egs-bloghero { text-align: center; padding: 64px 24px 44px; background:
	radial-gradient(800px 380px at 50% -10%, rgba(34,211,238,.10), transparent 60%),
	linear-gradient(180deg, #f4f7fc, #fff); border-bottom: 1px solid var(--border); }
.egs-bloghero__title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; letter-spacing: -.02em; margin: 10px 0 12px; }
.egs-bloghero__sub { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 560px; margin: 0 auto; }

.egs-bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.egs-bcard { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.egs-bcard:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--brand); }
.egs-bcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.egs-bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.egs-bcard:hover .egs-bcard__media img { transform: scale(1.05); }
.egs-bcard__ph { display: block; width: 100%; height: 100%; background: linear-gradient(120deg, #1e40af, #22d3ee); }
.egs-bcard__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.egs-bcard__cat { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); background: rgba(37,99,235,.08); padding: 5px 12px; border-radius: 999px; }
.egs-bcard__title { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0; }
.egs-bcard__title a { color: var(--text); }
.egs-bcard__title a:hover { color: var(--brand); }
.egs-bcard__excerpt { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; flex: 1; }
.egs-bcard__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.egs-post__dot { opacity: .5; }
.egs-blog-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* pagination reuse */
.egs-main .navigation.pagination { margin-top: 44px; }

/* ---- single post ---- */
.egs-post__hero { padding: 50px 24px 30px; text-align: center; }
.egs-post__hero .container { max-width: 800px; }
.egs-post__back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.egs-post__back .egs-icon { transform: rotate(180deg); }
.egs-post__back:hover { color: var(--brand); }
.egs-post__cat { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-600); background: rgba(37,99,235,.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.egs-post__title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 16px; color: var(--text); }
.egs-post__excerpt { font-size: 18px; color: var(--muted); line-height: 1.6; margin: 0 auto 22px; max-width: 640px; }
.egs-post__meta { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.egs-post__author { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); }
.egs-post__author img { width: 30px; height: 30px; border-radius: 50%; }

.egs-post__media { margin: 16px 0 40px; }
.egs-post__media .container { max-width: 980px; }
.egs-post__media img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--sh); display: block; }

.egs-post__body { max-width: 760px; margin: 0 auto; padding: 0 24px; font-size: 17px; line-height: 1.8; color: var(--text-2); }
.egs-post__body > .elementor { max-width: none; }
.egs-post__body p { margin: 0 0 22px; }
.egs-post__body h2 { font-size: 27px; font-weight: 800; color: var(--text); margin: 40px 0 14px; letter-spacing: -.01em; }
.egs-post__body h3 { font-size: 21px; font-weight: 800; color: var(--text); margin: 30px 0 10px; }
.egs-post__body ul, .egs-post__body ol { margin: 0 0 22px; padding-left: 22px; }
.egs-post__body li { margin: 0 0 8px; }
.egs-post__body a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.egs-post__body img { max-width: 100%; height: auto; border-radius: var(--r); margin: 8px 0 24px; }
.egs-post__body blockquote { margin: 28px 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--brand); font-size: 20px; font-weight: 600; color: var(--text); font-style: italic; }

.egs-post__foot { max-width: 760px; margin: 44px auto 0; padding: 26px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.egs-post__tags a { font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; margin-right: 6px; }
.egs-post__share { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.egs-post__share span { color: var(--muted); font-weight: 700; }
.egs-post__share a { font-weight: 700; color: var(--brand-600); }

.egs-related-posts { padding: 64px 0 30px; }
.egs-related-posts__title { font-size: 24px; font-weight: 900; letter-spacing: -.01em; margin: 0 0 26px; }

/* =========================================================================
   Legal / About (Elementor) — premium text polish
   ========================================================================= */
.egs-legalpage .elementor-widget-text-editor h2 { font-size: 22px; font-weight: 800; color: #0b1020; margin: 34px 0 12px; letter-spacing: -.01em; }
.egs-legalpage .elementor-widget-text-editor h2:first-child { margin-top: 0; }
.egs-legalpage .elementor-widget-text-editor h3 { font-size: 18px; font-weight: 800; color: #0b1020; margin: 24px 0 8px; }
.egs-legalpage .elementor-widget-text-editor p { margin: 0 0 15px; line-height: 1.8; }
.egs-legalpage .elementor-widget-text-editor ul { margin: 0 0 18px; padding-left: 22px; line-height: 1.75; }
.egs-legalpage .elementor-widget-text-editor li { margin: 0 0 7px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
	.egs-bloggrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.egs-bloggrid { grid-template-columns: 1fr; }
	.egs-post__body { font-size: 16px; }
	.egs-bloghero, .egs-post__hero { padding-left: 20px; padding-right: 20px; }
}
