/*
Theme Name: The Print Wagon
Theme URI: https://galaxiwebsolutions.com/
Author: Galaxi Web Solutions
Author URI: https://galaxiwebsolutions.com/
Description: A responsive publishing and printing-industry magazine theme with advertising placements, featured news and company/event sections.
Version: 1.3.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: the-print-wagon
*/

:root {
  --tpw-ink: #18202d;
  --tpw-ink-2: #253044;
  --tpw-gold: #c4a185;
  --tpw-gold-dark: #9e795e;
  --tpw-paper: #f7f5f2;
  --tpw-white: #fff;
  --tpw-muted: #647084;
  --tpw-line: #e6e1db;
  --tpw-radius: 16px;
  --tpw-shadow: 0 16px 40px rgba(24,32,45,.10);
  --tpw-max: 1240px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; color: var(--tpw-ink); background: var(--tpw-white); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tpw-container { width: min(var(--tpw-max), calc(100% - 40px)); margin-inline: auto; }
.tpw-section { padding: 48px 0; }
.tpw-section-soft { background: var(--tpw-paper); }
.tpw-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.tpw-section-description { max-width: 680px; margin: 9px 0 0; color: var(--tpw-muted); font-size: 14px; }
.tpw-kicker { margin: 0 0 7px; color: var(--tpw-gold-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tpw-title { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.tpw-view-all { color: var(--tpw-gold-dark); font-weight: 800; font-size: 14px; }

.tpw-topbar { color: #e8ecf3; background: var(--tpw-ink); font-size: 12px; }
.tpw-topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tpw-breaking { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpw-breaking b { color: var(--tpw-gold); margin-right: 8px; }
.tpw-top-links { display: flex; gap: 16px; white-space: nowrap; }
.tpw-brand-row { min-height: 112px; display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 34px; }
.tpw-brand-crop { width: 270px; height: 92px; overflow: hidden; position: relative; background: #fff; }
.tpw-brand-crop img { position: absolute; width: 430px; max-width: none; left: -80px; top: -86px; }
.custom-logo { max-height: 86px; width: auto; }
.tpw-header-ad { min-height: 76px; display: grid; place-items: center; border: 1px solid var(--tpw-line); border-radius: 14px; background: linear-gradient(110deg, var(--tpw-ink), #344158); color: white; overflow: hidden; }
.tpw-ad-placeholder { padding: 16px 24px; text-align: center; }
.tpw-ad-placeholder strong { display: block; color: var(--tpw-gold); font-size: 20px; }
.tpw-ad-placeholder span { font-size: 12px; opacity: .78; }
.tpw-ad-slot img { width: 100%; height: auto; }
.tpw-nav-wrap { color: #fff; background: var(--tpw-ink); box-shadow: 0 6px 24px rgba(24,32,45,.15); }
.tpw-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tpw-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tpw-menu a { display: block; padding: 16px 15px; font-size: 14px; font-weight: 750; }
.tpw-menu a:hover, .tpw-menu .current-menu-item > a { color: var(--tpw-ink); background: var(--tpw-gold); }
.tpw-menu-toggle { display: none; margin: 8px 0; padding: 9px 12px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; }
.tpw-search { padding: 10px; color: var(--tpw-gold); font-weight: 800; }

.tpw-hero { padding: 22px 0 34px; background: var(--tpw-paper); }
.tpw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 14px; }
.tpw-feature { min-height: 470px; position: relative; overflow: hidden; border-radius: var(--tpw-radius); background: var(--tpw-ink); box-shadow: var(--tpw-shadow); }
.tpw-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tpw-feature:after, .tpw-mini-story:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(10,15,24,.9) 100%); }
.tpw-feature-content { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 30px; color: #fff; }
.tpw-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: var(--tpw-ink); background: var(--tpw-gold); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tpw-feature h1 { max-width: 780px; margin: 13px 0 10px; font-size: clamp(30px, 4vw, 52px); line-height: 1.03; letter-spacing: -.045em; }
.tpw-feature p { max-width: 680px; margin: 0; color: rgba(255,255,255,.82); }
.tpw-feature-link { display: inline-flex; margin-top: 18px; padding: 10px 15px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; font-size: 13px; font-weight: 800; }
.tpw-slider { min-width: 0; min-height: 470px; position: relative; overflow: hidden; border-radius: var(--tpw-radius); background: var(--tpw-ink); box-shadow: var(--tpw-shadow); }
.tpw-slider-track { min-height: 470px; position: relative; }
.tpw-slider .tpw-feature { position: absolute; inset: 0; min-height: 470px; border-radius: 0; opacity: 0; visibility: hidden; transform: scale(1.015); transition: opacity .55s ease, transform .7s ease, visibility .55s; box-shadow: none; }
.tpw-slider .tpw-feature.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.tpw-slider-arrow { width: 42px; height: 42px; position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; color: #fff; background: rgba(24,32,45,.68); border: 1px solid rgba(255,255,255,.42); border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.tpw-slider-prev { left: 16px; }
.tpw-slider-next { right: 16px; }
.tpw-slider-dots { position: absolute; z-index: 4; left: 50%; bottom: 18px; display: flex; gap: 7px; transform: translateX(-50%); }
.tpw-slider-dots button { width: 8px; height: 8px; padding: 0; background: rgba(255,255,255,.55); border: 0; border-radius: 50%; cursor: pointer; }
.tpw-slider-dots button.is-active { width: 24px; background: var(--tpw-gold); border-radius: 8px; }
.tpw-hero-side { display: grid; gap: 14px; }
.tpw-mini-story { min-height: 147px; position: relative; overflow: hidden; border-radius: 14px; background: var(--tpw-ink); }
.tpw-mini-story img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tpw-mini-content { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 15px; color: #fff; }
.tpw-mini-content h3 { margin: 7px 0 0; font-size: 17px; line-height: 1.2; }

.tpw-content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .75fr); gap: 28px; }
.tpw-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.tpw-latest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tpw-latest-grid .tpw-card { border-radius: 12px; }
.tpw-latest-grid .tpw-card-image { display: block; width: 100%; height: 190px; aspect-ratio: auto; overflow: hidden; }
.tpw-latest-grid .tpw-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tpw-latest-grid .tpw-card-body { padding: 14px 15px 16px; }
.tpw-latest-grid .tpw-card-body h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.3; }
.tpw-latest-grid .tpw-card-body h3 a:hover { color: var(--tpw-gold-dark); }
.tpw-latest-grid .tpw-card-body p { margin: 0; color: var(--tpw-muted); font-size: 13px; line-height: 1.55; }
.tpw-card { overflow: hidden; border: 1px solid var(--tpw-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(24,32,45,.06); transition: transform .2s ease, box-shadow .2s ease; }
.tpw-card:hover { transform: translateY(-4px); box-shadow: var(--tpw-shadow); }
.tpw-card-image { aspect-ratio: 16/9; overflow: hidden; background: #ebe6df; }
.tpw-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tpw-card:hover .tpw-card-image img { transform: scale(1.04); }
.tpw-card-body { padding: 18px; }
.tpw-card-body h3 { margin: 9px 0 8px; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.tpw-card-body p { margin: 0; color: var(--tpw-muted); font-size: 14px; }
.tpw-meta { color: var(--tpw-muted); font-size: 12px; }
.tpw-sidebar { min-width: 0; max-width: 100%; display: grid; align-content: start; gap: 20px; }
.tpw-sidebar-box { min-width: 0; max-width: 100%; padding: 22px; overflow: hidden; border: 1px solid var(--tpw-line); border-radius: 14px; background: var(--tpw-paper); }
.tpw-sidebar-box h3 { margin-top: 0; }
.tpw-newsletter { color: white; background: var(--tpw-ink); }
.tpw-newsletter p { color: rgba(255,255,255,.74); font-size: 14px; }
.tpw-inline-form { display: flex; gap: 8px; }
.tpw-inline-form input { min-width: 0; width: 100%; border: 0; border-radius: 8px; padding: 11px; }
.tpw-inline-form button, .tpw-button { display: inline-flex; justify-content: center; align-items: center; padding: 11px 17px; color: var(--tpw-ink); background: var(--tpw-gold); border: 0; border-radius: 8px; font-weight: 850; cursor: pointer; }
.tpw-button-dark { color: #fff; background: var(--tpw-ink); }

.tpw-promo { padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: linear-gradient(110deg, var(--tpw-ink), #38465d); border-radius: 16px; }
.tpw-promo h2 { margin: 0; font-size: clamp(23px,3vw,34px); }
.tpw-promo p { margin: 5px 0 0; color: rgba(255,255,255,.72); }
.tpw-category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.tpw-category-card { min-height: 190px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: end; border: 1px solid var(--tpw-line); border-radius: 14px; background-color: var(--tpw-paper); background-position: center; background-size: cover; }
.tpw-category-card:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(24,32,45,.88)); opacity: 0; transition: opacity .25s ease; }
.tpw-category-card.has-image:before { opacity: 1; }
.tpw-category-content { position: relative; z-index: 1; padding: 22px; }
.tpw-category-card span { color: var(--tpw-gold-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.tpw-category-card h3 { margin: 4px 0 0; font-size: 20px; }
.tpw-category-card small { display: block; margin-top: 5px; color: var(--tpw-muted); }
.tpw-category-card.has-image, .tpw-category-card.has-image span, .tpw-category-card.has-image small { color: #fff; }
.tpw-category-card:hover { color: #fff; background-color: var(--tpw-ink); border-color: var(--tpw-ink); }
.tpw-category-card:hover:before { opacity: 1; }
.tpw-cpt-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tpw-profile { padding: 20px; border: 1px solid var(--tpw-line); border-radius: 14px; background: #fff; }
.tpw-profile h3 { margin: 12px 0 3px; }
.tpw-profile p { margin: 0; color: var(--tpw-muted); font-size: 14px; }
.tpw-cover-card { min-height: 275px; position: relative; overflow: hidden; border-radius: 15px; background: var(--tpw-ink); box-shadow: 0 8px 22px rgba(24,32,45,.08); }
.tpw-cover-card > a { position: absolute; inset: 0; display: block; }
.tpw-cover-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .4s ease; }
.tpw-cover-card:after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,transparent 30%,rgba(10,15,24,.92) 100%); }
.tpw-cover-card-content { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.tpw-cover-card-content h2, .tpw-cover-card-content h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.2; }
.tpw-cover-card-content p { margin: 0; color: rgba(255,255,255,.76); font-size: 13px; }
.tpw-cover-card:hover img { transform: scale(1.05); }

.tpw-main { padding: 50px 0 70px; }
.tpw-page-header { padding: 55px 0; color: #fff; background: linear-gradient(120deg,var(--tpw-ink),#3d4b63); }
.tpw-page-header h1 { margin: 0; font-size: clamp(34px,5vw,58px); line-height: 1; }
.tpw-page-header p { max-width: 670px; margin: 15px 0 0; color: rgba(255,255,255,.74); }
.tpw-prose { max-width: 840px; margin: 0 auto; font-size: 17px; }
.tpw-prose h2 { margin-top: 36px; line-height: 1.2; }
.tpw-form-card { padding: 28px; border: 1px solid var(--tpw-line); border-radius: 16px; background: #fff; box-shadow: var(--tpw-shadow); }
.tpw-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tpw-field-full { grid-column: 1/-1; }
.tpw-field label { display: block; margin-bottom: 6px; font-weight: 750; font-size: 13px; }
.tpw-field input, .tpw-field textarea, .tpw-field select { width: 100%; padding: 12px 13px; border: 1px solid #d9d5cf; border-radius: 9px; background: #fff; }
.tpw-field textarea { min-height: 135px; resize: vertical; }
.tpw-alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 9px; background: #edf8ef; color: #225c2b; }
.tpw-alert-error { background: #fff0f0; color: #9a2525; }
.tpw-packages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 30px 0; }
.tpw-package { padding: 25px; border: 1px solid var(--tpw-line); border-radius: 16px; background: #fff; }
.tpw-package-featured { border: 2px solid var(--tpw-gold); box-shadow: var(--tpw-shadow); }
.tpw-package-price { margin: 8px 0 14px; font-size: 32px; font-weight: 900; }
.tpw-package ul { padding-left: 20px; color: var(--tpw-muted); }
.tpw-post-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px,.7fr); gap: 38px; }
.tpw-post-layout > article, .tpw-post-layout > aside { min-width: 0; max-width: 100%; }
.tpw-post-title { margin: 10px 0 15px; font-size: clamp(34px,5vw,60px); line-height: 1.03; letter-spacing: -.04em; }
.tpw-post-featured { max-width: 100%; margin: 28px 0; overflow: hidden; border-radius: 16px; }
.tpw-post-featured img { width: 100%; height: auto; }
.tpw-post-content { max-width: 100%; overflow-wrap: anywhere; font-size: 18px; }
.tpw-post-content img, .tpw-post-content iframe, .tpw-post-content video, .tpw-post-content table { max-width: 100%; }
.tpw-post-content pre { max-width: 100%; overflow-x: auto; }
.tpw-post-content h2 { margin-top: 40px; line-height: 1.2; }
.tpw-recent-list { display: grid; gap: 14px; }
.tpw-sidebar-intro { margin: -4px 0 18px; color: var(--tpw-muted); font-size: 13px; }
.tpw-recent-item, .tpw-recent-item a { min-width: 0; max-width: 100%; }
.tpw-recent-item a { display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 12px; }
.tpw-recent-thumb { height: 68px; overflow: hidden; border-radius: 9px; background: #ece8e2; }
.tpw-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tpw-recent-item h4 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
.tpw-recent-item a:hover h4 { color: var(--tpw-gold-dark); }
.tpw-related { margin-top: 58px; padding-top: 36px; border-top: 1px solid var(--tpw-line); }
.tpw-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.tpw-related-card { overflow: hidden; border: 1px solid var(--tpw-line); border-radius: 13px; background: #fff; }
.tpw-related-image { aspect-ratio: 16/10; overflow: hidden; background: #ece8e2; }
.tpw-related-image img { width: 100%; height: 100%; object-fit: cover; }
.tpw-related-content { padding: 14px; }
.tpw-related-content h3 { margin: 5px 0 0; font-size: 16px; line-height: 1.25; }
.tpw-pagination { margin-top: 30px; }
.tpw-archive-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,300px); align-items: start; gap: 30px; }
.tpw-archive-layout > * { min-width: 0; max-width: 100%; }
.tpw-archive-content { min-width: 0; }
.tpw-category-posts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.tpw-category-post-card .tpw-card-image { display: block; width: 100%; aspect-ratio: 16/10; }
.tpw-category-post-card .tpw-card-body { padding: 14px; }
.tpw-category-post-card .tpw-card-body h2 { margin: 0 0 7px; font-size: 17px; line-height: 1.3; letter-spacing: -.015em; }
.tpw-category-post-card .tpw-card-body h2 a:hover { color: var(--tpw-gold-dark); }
.tpw-category-post-card .tpw-card-body p { margin: 0; color: var(--tpw-muted); font-size: 13px; line-height: 1.5; }
.tpw-archive-description p { margin-bottom: 0; }
.tpw-archive-sidebar { position: sticky; top: 20px; }
.tpw-sidebar-categories { list-style: none; margin: 0; padding: 0; }
.tpw-sidebar-categories li + li { border-top: 1px solid var(--tpw-line); }
.tpw-sidebar-categories a { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 750; }
.tpw-sidebar-categories a:hover span { color: var(--tpw-gold-dark); }
.tpw-sidebar-categories small { min-width: 27px; padding: 2px 7px; color: var(--tpw-muted); background: #fff; border: 1px solid var(--tpw-line); border-radius: 999px; text-align: center; }
.tpw-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.tpw-directory-empty { padding: 28px; border: 1px solid var(--tpw-line); border-radius: 14px; background: var(--tpw-paper); }

.tpw-footer { padding-top: 46px; color: rgba(255,255,255,.78); background: var(--tpw-ink); }
.tpw-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.tpw-footer h3 { color: #fff; }
.tpw-footer-logo { color: #fff; font-size: 25px; font-weight: 900; }
.tpw-footer-logo span { color: var(--tpw-gold); }
.tpw-footer-links { list-style: none; padding: 0; }
.tpw-footer-links li { margin: 8px 0; }
.tpw-copyright { margin-top: 36px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

@media (max-width: 980px) {
  .tpw-brand-row { grid-template-columns: 230px 1fr; }
  .tpw-brand-crop { width: 220px; }
  .tpw-hero-grid, .tpw-content-grid, .tpw-post-layout, .tpw-archive-layout { grid-template-columns: 1fr; }
  .tpw-hero-side { grid-template-columns: repeat(3,1fr); }
  .tpw-category-grid { grid-template-columns: repeat(2,1fr); }
  .tpw-cpt-grid { grid-template-columns: repeat(2,1fr); }
  .tpw-latest-grid, .tpw-directory-grid { grid-template-columns: repeat(2,1fr); }
  .tpw-category-posts { grid-template-columns: repeat(2,1fr); }
  .tpw-archive-sidebar { position: static; }
  .tpw-menu-toggle { display: block; }
  .tpw-primary-nav { display: none; position: absolute; z-index: 20; top: 100%; left: 20px; right: 20px; background: var(--tpw-ink); box-shadow: var(--tpw-shadow); }
  .tpw-primary-nav.is-open { display: block; }
  .tpw-nav-wrap { position: relative; }
  .tpw-menu { display: block; }
}

@media (max-width: 700px) {
  .tpw-container { width: min(100% - 28px,var(--tpw-max)); }
  .tpw-top-links { display: none; }
  .tpw-brand-row { min-height: 92px; display: block; padding: 8px 0; }
  .tpw-brand-crop { width: 240px; height: 76px; margin: auto; }
  .tpw-brand-crop img { width: 390px; left: -74px; top: -83px; }
  .tpw-header-ad { display: none; }
  .tpw-feature { min-height: 430px; }
  .tpw-slider, .tpw-slider-track, .tpw-slider .tpw-feature { min-height: 430px; }
  .tpw-feature-content { left: 20px; right: 20px; bottom: 22px; }
  .tpw-feature h1 { font-size: 31px; }
  .tpw-feature p { display: none; }
  .tpw-hero-side { grid-template-columns: 1fr; }
  .tpw-news-grid, .tpw-latest-grid, .tpw-category-grid, .tpw-category-posts, .tpw-cpt-grid, .tpw-directory-grid, .tpw-form-grid, .tpw-packages, .tpw-footer-grid, .tpw-related-grid { grid-template-columns: 1fr; }
  .tpw-promo { align-items: flex-start; flex-direction: column; }
  .tpw-section-head { align-items: flex-start; flex-direction: column; }
  .tpw-field-full { grid-column: auto; }
  .tpw-sidebar-box { padding: 18px; }
  .tpw-recent-item a { grid-template-columns: 76px minmax(0,1fr); gap: 10px; }
  .tpw-recent-thumb { height: 60px; }
}
