/*
Theme Name:        PakStudyHub
Theme URI:         https://pakstudyhub.online
Author:            PakStudyHub
Description:       Fast, hand-coded PHP theme for PakStudyHub.online: clean mega-menu header, mobile drawer, search, account menu, footer with links and socials, blog / news / search / 404 pages, WooCommerce support. Works with all PakStudyHub plugins (they show edge to edge automatically) and with Elementor pages. No page builder needed.
Version:           1.1.2
Requires at least: 6.0
Tested up to:      6.8
Requires PHP:      7.4
License:           GPL-2.0-or-later
Text Domain:       pakstudyhub
Tags:              education, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks
*/

/* ================================================================ tokens */
:root {
	--psht-accent: var(--psh-site-accent, #0e7a4b);
	--psht-accent-dark: color-mix(in srgb, var(--psht-accent) 78%, #000);
	--psht-accent-soft: color-mix(in srgb, var(--psht-accent) 10%, #fff);
	--psht-gold: #f5b301;
	--psht-ink: #0f1d17;
	--psht-ink-2: #334155;
	--psht-muted: #64748b;
	--psht-line: #e3e9ee;
	--psht-band: #f5f8f7;
	--psht-bg: #ffffff;
	--psht-dark: #0b1720;
	--psht-r: 14px;
	--psht-wrap: 1200px;
	--psht-head-h: 68px;
	--psht-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--psht-head-h) + 12px); }
html.psht-lock, html.psht-lock body { overflow: hidden; }
body { margin: 0; background: var(--psht-bg); color: var(--psht-ink); font: 16px/1.65 var(--psht-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--psht-accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--psht-accent); }
h1, h2, h3, h4, h5, h6 { color: var(--psht-ink); line-height: 1.22; margin: 1.4em 0 .5em; font-weight: 800; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--psht-accent) 50%, transparent); outline-offset: 2px; }
.psht-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.psht-skip { position: absolute; left: 12px; top: -60px; z-index: 100000; padding: 10px 16px; border-radius: 10px; background: var(--psht-ink); color: #fff; font-weight: 700; text-decoration: none; }
.psht-skip:focus { top: 12px; color: #fff; }
.psht-main { display: block; min-height: 50vh; outline: none; }
.psht-wrap { width: min(var(--psht-wrap), 100% - 32px); margin-inline: auto; }
.psht-wrap--text { width: min(780px, 100% - 32px); }
.psht-section { padding-block: clamp(28px, 4vw, 56px); }
.psht-h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 18px; }
.psht-icon, .psht-ic { flex: none; display: inline-block; vertical-align: middle; }

/* buttons */
.psht-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--psht-accent); border-radius: 12px; background: var(--psht-accent); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.15; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.psht-btn:hover { background: var(--psht-accent-dark); border-color: var(--psht-accent-dark); color: #fff; transform: translateY(-1px); }
.psht-btn--soft { background: var(--psht-accent-soft); border-color: transparent; color: var(--psht-accent-dark); }
.psht-btn--soft:hover { background: color-mix(in srgb, var(--psht-accent) 18%, #fff); border-color: transparent; color: var(--psht-accent-dark); }
.psht-btn--ghost { background: transparent; border-color: var(--psht-line); color: var(--psht-ink-2); }
.psht-btn--ghost:hover { background: var(--psht-band); border-color: var(--psht-line); color: var(--psht-ink); }
.psht-btn--cta { background: linear-gradient(135deg, var(--psht-gold), #ff9f1c); border-color: transparent; color: #2b1a00; box-shadow: 0 6px 16px rgba(245, 179, 1, .35); }
.psht-btn--cta:hover { background: linear-gradient(135deg, #ffc21a, #ff8f00); border-color: transparent; color: #2b1a00; }
.psht-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--psht-ink); cursor: pointer; transition: background .15s; }
.psht-iconbtn:hover { background: var(--psht-band); }
.psht-chip { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 99px; background: var(--psht-accent-soft); color: var(--psht-accent-dark); font-size: .78rem; font-weight: 700; text-decoration: none; }

/* ================================================================ announcement */
.psht-announce { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 48px; background: var(--psht-dark); color: #fff; font-size: .9rem; font-weight: 600; text-align: center; }
.psht-announce a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.psht-announce a:hover { color: var(--psht-gold); }
.psht-announce__x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #cbd5e1; cursor: pointer; }
.psht-announce__x:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ================================================================ header */
.psht-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .psht-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .psht-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .psht-header { top: 0; } }
.psht-header.is-scrolled { border-color: var(--psht-line); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.psht-header__in { display: flex; align-items: center; gap: 18px; width: min(var(--psht-wrap), 100% - 32px); height: var(--psht-head-h); margin-inline: auto; }
.psht-header__brand { flex: none; display: flex; align-items: center; }
.psht-brand, .custom-logo-link { display: inline-flex; align-items: center; gap: 9px; color: var(--psht-ink); text-decoration: none; }
.psht-brand:hover { color: var(--psht-ink); }
.psht-brand__mark { display: inline-flex; color: var(--psht-accent); }
.psht-brand__name { font-size: 1.28rem; font-weight: 850; letter-spacing: -.02em; line-height: 1; }
.psht-brand__name b { color: var(--psht-accent); font-weight: 850; }
.custom-logo { display: block; width: auto; max-height: 46px; }

.psht-nav { flex: 1; min-width: 0; }
.psht-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.psht-nav__item { position: relative; }
.psht-nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--psht-ink-2); font-size: .95rem; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.psht-nav__link:hover, .psht-nav__item.is-open > .psht-nav__link { background: var(--psht-band); color: var(--psht-ink); }
.psht-nav__item.is-current > .psht-nav__link { color: var(--psht-accent-dark); }
.psht-caret { width: 12px; height: 12px; transition: transform .2s; }
.psht-nav__item.is-open .psht-caret { transform: rotate(180deg); }
.psht-dd { position: absolute; left: 50%; top: calc(100% + 10px); z-index: 20; min-width: 300px; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .16s, transform .16s, visibility .16s; }
.psht-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.psht-nav__item.is-open > .psht-dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.psht-dd__in { display: grid; gap: 6px 22px; padding: 18px; border: 1px solid var(--psht-line); border-radius: 18px; background: #fff; box-shadow: 0 24px 50px rgba(15, 23, 42, .14); }
.psht-dd--cols-2 .psht-dd__in { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
.psht-dd--cols-3 .psht-dd__in { grid-template-columns: repeat(3, minmax(230px, 1fr)); }
.psht-dd--cols-4 .psht-dd__in { grid-template-columns: repeat(4, minmax(210px, 1fr)); }
.psht-nav__item:first-child .psht-dd { left: 0; transform: translate(0, 6px); }
.psht-nav__item:first-child.is-open .psht-dd { transform: none; }
.psht-nav__item:last-child .psht-dd { left: auto; right: 0; transform: translate(0, 6px); }
.psht-nav__item:last-child.is-open .psht-dd { transform: none; }
.psht-dd__title { margin: 0 0 6px; padding: 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--psht-muted); }
.psht-dd ul, .psht-mnav ul { margin: 0; padding: 0; list-style: none; }
.psht-mi { display: flex; align-items: flex-start; gap: 11px; padding: 9px 10px; border-radius: 12px; color: var(--psht-ink); text-decoration: none; transition: background .14s; }
.psht-mi:hover { background: var(--psht-band); color: var(--psht-ink); }
.psht-mi.is-current { background: var(--psht-accent-soft); }
.psht-mi__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--psht-band); font-size: 1.15rem; line-height: 1; }
.psht-mi:hover .psht-mi__ic { background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.psht-mi__t { display: grid; min-width: 0; }
.psht-mi__t b { font-size: .93rem; font-weight: 700; line-height: 1.3; }
.psht-mi__t small { font-size: .8rem; color: var(--psht-muted); line-height: 1.35; }

.psht-header__acts { flex: none; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.psht-login { padding: 8px 12px; border-radius: 10px; color: var(--psht-ink-2); font-weight: 650; text-decoration: none; white-space: nowrap; }
.psht-login:hover { background: var(--psht-band); color: var(--psht-ink); }
.psht-acc { position: relative; }
.psht-acc__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 4px; border: 1px solid var(--psht-line); border-radius: 99px; background: #fff; cursor: pointer; font-weight: 650; }
.psht-acc__btn:hover { background: var(--psht-band); }
.psht-acc__av { width: 32px; height: 32px; border-radius: 50%; }
.psht-acc__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.psht-acc__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 250px; padding: 8px; border: 1px solid var(--psht-line); border-radius: 16px; background: #fff; box-shadow: 0 20px 44px rgba(15, 23, 42, .14); }
.psht-acc__hi { display: grid; margin: 0 0 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--psht-line); }
.psht-acc__hi small { color: var(--psht-muted); overflow: hidden; text-overflow: ellipsis; }
.psht-acc__menu ul { margin: 0; padding: 0; list-style: none; }
.psht-acc__menu a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--psht-ink); font-weight: 600; font-size: .93rem; text-decoration: none; }
.psht-acc__menu a:hover { background: var(--psht-band); }
.psht-acc__out { color: #b91c1c !important; }
.psht-burger { display: none; }

/* compact header between laptop and tablet */
@media (max-width: 1280px) {
	.psht-nav__link { padding: 0 9px; font-size: .92rem; }
	.psht-acc__name { display: none; }
}
@media (max-width: 1100px) {
	.psht-nav, .psht-login, .psht-header__acts .psht-btn--cta { display: none; }
	.psht-burger { display: inline-grid; }
}
@media (max-width: 480px) {
	:root { --psht-head-h: 60px; }
	.psht-brand__name { font-size: 1.12rem; }
	.psht-brand__mark svg { width: 30px; height: 30px; }
	.psht-acc__btn { padding: 0 4px; }
}

/* ================================================================ drawer (mobile menu) */
.psht-drawer, .psht-search { position: fixed; inset: 0; z-index: 100001; }
.psht-drawer[hidden], .psht-search[hidden] { display: none; }
.psht-drawer__overlay, .psht-search__overlay { position: absolute; inset: 0; background: rgba(11, 23, 32, .55); opacity: 0; transition: opacity .2s; }
.is-open > .psht-drawer__overlay, .is-open > .psht-search__overlay { opacity: 1; }
.psht-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(380px, 92vw); background: #fff; transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; overscroll-behavior: contain; }
.psht-drawer.is-open .psht-drawer__panel { transform: none; }
.psht-drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; background: #fff; border-bottom: 1px solid var(--psht-line); }
.psht-drawer__search { display: flex; align-items: center; gap: 8px; margin: 14px 16px 6px; padding: 0 12px; border: 1.5px solid var(--psht-line); border-radius: 12px; background: var(--psht-band); color: var(--psht-muted); }
.psht-drawer__search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--psht-ink); }
.psht-drawer__search:focus-within { border-color: var(--psht-accent); background: #fff; }
.psht-mnav { margin: 4px 0; padding: 0 8px; list-style: none; }
.psht-mnav > li { border-bottom: 1px solid var(--psht-line); }
.psht-mnav__top { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 10px; border: 0; background: transparent; color: var(--psht-ink); font-size: 1.02rem; font-weight: 750; text-align: left; text-decoration: none; cursor: pointer; }
.psht-mnav__top[aria-expanded=true] .psht-caret { transform: rotate(180deg); }
.psht-mnav__sub { padding: 0 0 10px; }
.psht-mnav__title { margin: 8px 10px 2px; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--psht-muted); }
.psht-mnav .psht-mi { align-items: center; padding: 8px 10px; }
.psht-mnav .psht-mi__ic { width: 32px; height: 32px; font-size: 1rem; }
.psht-drawer__foot { display: grid; gap: 10px; margin-top: auto; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--psht-line); background: var(--psht-band); }
.psht-drawer__foot .psht-socials { justify-content: center; margin-top: 4px; }

/* ================================================================ search overlay */
.psht-search__box { position: relative; width: min(720px, 100% - 32px); margin: 12vh auto 0; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s; }
.psht-search.is-open .psht-search__box { opacity: 1; transform: none; }
.psht-search__box form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 2px solid var(--psht-line); border-radius: 14px; color: var(--psht-muted); }
.psht-search__box form:focus-within { border-color: var(--psht-accent); }
.psht-search__box input { flex: 1; min-width: 0; height: 46px; border: 0; outline: none; background: transparent; font-size: 1.05rem; color: var(--psht-ink); }
.psht-search__tips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; padding-right: 40px; font-size: .88rem; color: var(--psht-muted); }
.psht-search__tips a { padding: 4px 11px; border-radius: 99px; background: var(--psht-band); color: var(--psht-ink-2); text-decoration: none; }
.psht-search__tips a:hover { background: var(--psht-accent-soft); color: var(--psht-accent-dark); }
.psht-search__x { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 560px) { .psht-search__box { margin-top: 70px; padding: 16px; } .psht-search__box .psht-btn { padding: 10px 12px; } }

/* ================================================================ page heads + text pages */
.psht-pagehead { padding: clamp(26px, 4vw, 46px) 0 clamp(20px, 3vw, 30px); background: linear-gradient(180deg, var(--psht-band), #fff); border-bottom: 1px solid var(--psht-line); }
.psht-pagehead__title { margin: 6px 0 4px; font-size: clamp(1.75rem, 4.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
.psht-pagehead__desc { margin: 8px 0 0; color: var(--psht-muted); max-width: 720px; }
.psht-pagehead .psht-searchform { margin-top: 14px; }
.psht-crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0 0 6px; padding: 0; list-style: none; font-size: .84rem; color: var(--psht-muted); }
.psht-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.psht-crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.psht-crumbs a { color: var(--psht-muted); text-decoration: none; }
.psht-crumbs a:hover { color: var(--psht-accent-dark); text-decoration: underline; }
.psht-crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; color: var(--psht-ink-2); }
.psht-meta { margin: 6px 0 0; color: var(--psht-muted); font-size: .9rem; }
.psht-hero-img { margin: 0 0 26px; }
.psht-hero-img img { display: block; width: 100%; border-radius: var(--psht-r); }

.psht-prose { font-size: 1.05rem; line-height: 1.75; color: var(--psht-ink-2); overflow-wrap: break-word; }
.psht-prose > :first-child { margin-top: 0; }
.psht-prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.psht-prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.psht-prose h4 { font-size: 1.08rem; }
.psht-prose ul, .psht-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.psht-prose li { margin: .3em 0; }
.psht-prose li::marker { color: var(--psht-accent); }
.psht-prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--psht-accent); border-radius: 0 12px 12px 0; background: var(--psht-accent-soft); color: var(--psht-ink); }
.psht-prose blockquote p:last-child { margin: 0; }
.psht-prose img, .psht-prose figure img { border-radius: 12px; }
.psht-prose figure { margin: 1.5em 0; }
.psht-prose figcaption { margin-top: 6px; font-size: .85rem; color: var(--psht-muted); text-align: center; }
.psht-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.psht-prose th, .psht-prose td { padding: 10px 12px; border: 1px solid var(--psht-line); text-align: left; }
.psht-prose th { background: var(--psht-band); color: var(--psht-ink); }
.psht-prose code { padding: 2px 6px; border-radius: 6px; background: var(--psht-band); font-size: .9em; }
.psht-prose pre { padding: 16px; border-radius: 12px; background: var(--psht-dark); color: #e2e8f0; overflow-x: auto; }
.psht-prose pre code { background: none; padding: 0; }
.psht-prose hr { border: 0; border-top: 1px solid var(--psht-line); margin: 2em 0; }
.psht-prose a { font-weight: 600; }
.psht-prose .wp-block-button__link, .psht-prose .wp-element-button { border-radius: 12px; background: var(--psht-accent); color: #fff; font-weight: 700; text-decoration: none; }
.alignwide { width: min(1100px, 100vw - 32px); margin-inline: calc(50% - min(550px, 50vw - 16px)); max-width: none; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption, .wp-caption-text { font-size: inherit; }

/* full width plugin / Elementor pages */
.psht-fullpage__content > :first-child { margin-top: 0; }
.psht-fullpage__content > p:empty { display: none; }
.psht-full .psht-main { overflow-x: clip; }

/* tags, share, post nav */
.psht-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; }
.psht-tags a { padding: 4px 11px; border-radius: 99px; background: var(--psht-band); color: var(--psht-ink-2); font-size: .85rem; text-decoration: none; }
.psht-share { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--psht-line); font-weight: 700; }
.psht-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 0; }
.psht-postnav a { display: grid; height: 100%; padding: 14px 16px; border: 1px solid var(--psht-line); border-radius: var(--psht-r); color: var(--psht-ink); text-decoration: none; }
.psht-postnav a:hover { border-color: var(--psht-accent); }
.psht-postnav small { color: var(--psht-muted); }
.psht-postnav__next { text-align: right; grid-column: 2; }
.psht-withside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.psht-withside__side { position: sticky; top: calc(var(--psht-head-h) + 20px); }
.psht-widget { margin-bottom: 22px; padding: 18px; border: 1px solid var(--psht-line); border-radius: var(--psht-r); }
.psht-widget__title, .psht-widget h2 { margin: 0 0 10px; font-size: 1rem; }
.psht-widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.psht-widget .wp-block-search__input { flex: 1; min-width: 0; padding: 8px 10px; border: 1.5px solid var(--psht-line); border-radius: 10px; }
.psht-widget .wp-block-search__button { border: 0; border-radius: 10px; background: var(--psht-accent); color: #fff; font-weight: 700; padding: 8px 14px; }
.psht-widget ul { list-style: none; padding: 0; }
.psht-widget li { margin: 6px 0; }
@media (max-width: 960px) { .psht-withside { grid-template-columns: 1fr; } .psht-withside__side { position: static; } }

/* ================================================================ cards / archives */
.psht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.psht-card { display: flex; flex-direction: column; border: 1px solid var(--psht-line); border-radius: 18px; background: #fff; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.psht-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 23, 42, .08); border-color: color-mix(in srgb, var(--psht-accent) 30%, var(--psht-line)); }
.psht-card__img { display: block; text-decoration: none; aspect-ratio: 16 / 9; background: var(--psht-band); overflow: hidden; }
.psht-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.psht-card:hover .psht-card__img img { transform: scale(1.03); }
.psht-card__ph { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--psht-accent-soft), #fff7e0); color: var(--psht-accent); font-size: 3rem; font-weight: 900; }
.psht-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.psht-card__title { margin: 0 0 6px; font-size: 1.08rem; line-height: 1.35; }
.psht-card__title a { color: var(--psht-ink); text-decoration: none; }
.psht-card__title a:hover { color: var(--psht-accent-dark); }
.psht-card__title a::after { content: ""; position: absolute; inset: 0; }
.psht-card { position: relative; }
.psht-card__ex { margin: 0 0 10px; color: var(--psht-muted); font-size: .92rem; }
.psht-card__date { margin: auto 0 0; color: var(--psht-muted); font-size: .8rem; }
.psht-pages, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 34px; }
.psht-pages .page-numbers, .nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--psht-line); border-radius: 12px; color: var(--psht-ink-2); font-weight: 650; text-decoration: none; }
.psht-pages .page-numbers.current, .nav-links .page-numbers.current { background: var(--psht-accent); border-color: var(--psht-accent); color: #fff; }
.psht-pages a.page-numbers:hover { border-color: var(--psht-accent); color: var(--psht-accent-dark); }
.psht-empty, .psht-404 { text-align: center; }
.psht-empty__ic { font-size: 3rem; margin: 0; }
.psht-404__num { margin: 0; font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--psht-accent), var(--psht-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.psht-404 .psht-searchform { margin: 20px auto; }
.psht-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 26px; padding: 0; list-style: none; }
.psht-404__links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--psht-line); border-radius: 99px; color: var(--psht-ink); font-weight: 650; text-decoration: none; }
.psht-404__links a:hover { border-color: var(--psht-accent); background: var(--psht-accent-soft); }

/* search form */
.psht-searchform { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 5px 5px 5px 14px; border: 2px solid var(--psht-line); border-radius: 14px; background: #fff; color: var(--psht-muted); }
.psht-searchform:focus-within { border-color: var(--psht-accent); }
.psht-searchform input { flex: 1; min-width: 0; height: 42px; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--psht-ink); }

/* comments */
.psht-comments { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--psht-line); }
.psht-comments__list { margin: 0 0 30px; padding: 0; list-style: none; }
.psht-comments__list .comment { margin: 0 0 16px; }
.psht-comments__list .children { margin-left: 24px; padding: 0; list-style: none; }
.comment-body { padding: 16px; border: 1px solid var(--psht-line); border-radius: var(--psht-r); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--psht-muted); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 650; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea, .psht-woo input.input-text, .psht-woo select, .psht-woo textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--psht-line); border-radius: 12px; background: #fff; font-size: 16px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--psht-accent); }

/* WooCommerce basics */
.psht-woo .button, .psht-woo button.button, .psht-woo .checkout-button, .psht-woo #place_order { border-radius: 12px !important; background: var(--psht-accent) !important; color: #fff !important; font-weight: 700 !important; padding: 12px 18px !important; }
.psht-woo .woocommerce-message, .psht-woo .woocommerce-info { border-top-color: var(--psht-accent); }
.psht-woo ul.products li.product { border: 1px solid var(--psht-line); border-radius: 16px; padding: 12px; text-align: center; }

/* ================================================================ footer */
.psht-footer { margin-top: 0; background: var(--psht-dark); color: #b8c4cc; font-size: .94rem; }
.psht-footer a { color: #d7e0e6; text-decoration: none; }
.psht-footer a:hover { color: #fff; text-decoration: underline; }
.psht-footer__in { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 34px; width: min(var(--psht-wrap), 100% - 32px); margin-inline: auto; padding: clamp(40px, 6vw, 64px) 0 34px; }
.psht-footer .psht-brand, .psht-footer .psht-brand:hover { color: #fff; text-decoration: none; }
.psht-footer .psht-brand__mark { color: var(--psht-accent); }
.psht-footer .psht-brand__name b { color: color-mix(in srgb, var(--psht-accent) 55%, #fff); }
.psht-footer .custom-logo { filter: brightness(0) invert(1); }
.psht-footer__about { margin: 14px 0 16px; max-width: 360px; line-height: 1.6; }
.psht-footer__contact { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.psht-footer__contact a { display: inline-flex; align-items: center; gap: 8px; word-break: break-all; }
.psht-footer__h { margin: 4px 0 14px; color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.psht-footer__col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.psht-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; width: min(var(--psht-wrap), 100% - 32px); margin-inline: auto; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.psht-footer__bar p { margin: 0; }
.psht-footer__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.psht-footer__trust a { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; font-weight: 650; font-size: .8rem; }
.psht-footer__trust a:hover { border-color: #fff; text-decoration: none; }
.psht-footer__legal { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.psht-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.psht-soc { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--psht-band); color: var(--psht-ink-2) !important; transition: transform .15s, background .15s, color .15s; }
.psht-soc:hover { transform: translateY(-2px); text-decoration: none !important; color: #fff !important; }
.psht-footer .psht-soc { background: rgba(255, 255, 255, .08); color: #e2e8f0 !important; }
.psht-soc--whatsapp:hover, .psht-soc--channel:hover { background: #16a34a; }
.psht-soc--facebook:hover { background: #1877f2; }
.psht-soc--youtube:hover { background: #ff0000; }
.psht-soc--instagram:hover { background: #d62976; }
.psht-soc--linkedin:hover { background: #0a66c2; }
.psht-soc--tiktok:hover { background: #111; }
@media (max-width: 1000px) { .psht-footer__in { grid-template-columns: repeat(2, 1fr); } .psht-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .psht-footer__in { gap: 26px 18px; } .psht-footer__bar { justify-content: center; text-align: center; } .psht-footer__trust { justify-content: center; } }

/* back to top */
.psht-top { position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 900; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--psht-line); border-radius: 50%; background: #fff; color: var(--psht-ink); box-shadow: 0 8px 22px rgba(15, 23, 42, .15); cursor: pointer; transition: transform .15s; }
.psht-top[hidden] { display: none; }
.psht-top:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.psht-header, .psht-footer, .psht-announce, .psht-drawer, .psht-search, .psht-top { display: none !important; }
}
