/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* =========================================================
   TradeSchoolUSA — Custom, framework-free styles
   ========================================================= */

/* Font (optional) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/* ---------- Design tokens ---------- */
.ts-wrap{
  --brand:#3B5BFF; --brand-600:#2F49E3; --brand-700:#2438C4;
  --success:#16a34a; --danger:#E5255A;
  --ink:#0F172A; --muted:#64748B; --line:#E6EAF2;
  --bg:#F7F8FC; --card:#FFFFFF; --soft:#F1F5F9;
  --radius:14px; --shadow:0 10px 30px rgba(31,41,55,.08);
  --space:1.25rem;
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
}

/* ---------- Base container ---------- */
.ts-wrap{ max-width:1160px; margin-inline:auto; padding:clamp(12px,2vw,20px); }

/* ---------- Header / meta ---------- */
.ts-header{ margin-block-end:1rem; }
.ts-meta{ color:var(--muted); font-size:.9rem; }

/* ---------- Typography ---------- */
.ts-title{ font-size:clamp(1.15rem,2.2vw,1.35rem); font-weight:700; margin:0 0 .2rem; }
.ts-h{ font-size:clamp(1.05rem,2vw,1.1rem); font-weight:700; margin:0 0 .6rem; }
.muted{ color:var(--muted); }

/* ---------- Actions ---------- */
.ts-actions{ display:flex; flex-wrap:wrap; gap:.6rem; margin-block:.5rem 1.25rem; }

/* Buttons (framework-free) */
.btn{
  --btn-pad:.56rem .9rem;
  display:inline-flex; align-items:center; justify-content:center;
  gap:.4rem; padding:var(--btn-pad);
  border-radius:999px; border:1px solid var(--line);
  background:#fff; color:var(--ink); text-decoration:none; font-weight:600;
  transition:.15s ease; cursor:pointer; line-height:1;
}
.btn-sm{ --btn-pad:.45rem .75rem; font-size:.9rem; }                /* fixed: no 'composes' */
.btn--primary{ background:var(--brand); border-color:var(--brand); color:#fff; }
.btn--primary:hover{ background:var(--brand-600); border-color:var(--brand-600); }
.btn--outline{ border-color:var(--brand); color:var(--brand); background:#fff; }
.btn--outline:hover{ background:var(--brand); color:#fff; }
.btn--ghost{ background:#fff; border-color:var(--line); color:var(--ink); }
.btn--ghost:hover{ background:#f2f4f8; }

/* Map helper classes from PHP outputs (Bootstrap-like) */
.btn-outline-secondary{ border-color:var(--line); }                 /* removed invalid 'composes' */
.btn-outline-secondary:hover{ background:#f2f4f8; }
.btn-outline-primary{ border-color:var(--brand); color:var(--brand); } /* make it actually outline */
.btn-primary{ background:var(--brand); border-color:var(--brand); color:#fff; } /* ensure base theme parity */

/* ---------- Cards ---------- */
.card.ts-card, .card{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;
}
.card + .card{ margin-top:1rem; }
.card-head, .card-header{
  padding:.9rem 1rem; font-weight:700;
  background:linear-gradient(180deg,#fff,var(--bg));
  border-bottom:1px solid var(--line);
}
.card-body{ padding:1rem; }
.card-body.no-pad{ padding:0; }
.card-img-top{ width:100%; height:auto; display:block; }

/* Rows inside cards */
.row-line{ display:flex; gap:.5rem; margin:.35rem 0; }
.row-line strong{ min-width:92px; color:var(--muted); font-weight:600; }

/* Chips / badges (emails) */
.chips{ display:flex; flex-wrap:wrap; gap:.4rem; }
.badge{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .6rem; border-radius:999px;
  background:var(--soft); border:1px solid #e2e8f0; color:var(--ink);
  font-size:.85rem; text-decoration:none;
}
.badge--success{ background:#e9f9ee; color:var(--success); border-color:#d8f3e2; }
.text-bg-light, .badge.text-bg-light{ background:var(--soft); color:var(--ink); }
.rounded-pill{ border-radius:999px; }
.link-dark{ color:var(--ink); text-decoration:none; }
.link-dark:hover{ text-decoration:underline; }

/* ---------- Alerts ---------- */
.alert{ border-radius:calc(var(--radius) - 6px); padding:.8rem 1rem; }
.alert-info{ background:#eef7ff; border:1px solid #daecff; color:#0b5ed7; }

/* ---------- Grids ---------- */
.ts-grid{ display:grid; gap:var(--space); }
.ts-grid--main{ grid-template-columns:1fr; }
@media (min-width:992px){ .ts-grid--main{ grid-template-columns:360px 1fr; } }

/* Photos */
.ts-grid--photos{ grid-template-columns:1fr; }
@media (min-width:576px){ .ts-grid--photos{ grid-template-columns:1fr 1fr; } }
.ts-photo img{ width:100%; height:auto; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.06); }

/* Bottom cards grid */
.ts-grid--cards{ grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); margin-top:1rem; }

/* Sections */
.ts-section{ margin:1rem 0; }
.ts-bullets-wrap ul{ margin:0; padding-left:1.1rem; }
.ts-bullets-wrap li{ margin:.25rem 0; }

/* ---------- Tables ---------- */
.table{ width:100%; border-collapse:collapse; }
.table tr + tr td, .table tr + tr th{ border-top:1px solid var(--line); }
.table th, .table td{ padding:.7rem .9rem; text-align:left; }
.table th{ color:var(--muted); font-weight:600; width:42%; }
.table-sm th, .table-sm td{ padding:.55rem .75rem; }

/* ---------- Progress bars (reviews) ---------- */
.progress{ width:100%; height:8px; background:#edf1f6; border-radius:999px; overflow:hidden; }
.progress-bar{ height:100%; background:var(--brand); border-radius:999px; }

/* Review block head */
.review-head{ display:flex; gap:.6rem; align-items:center; margin-bottom:.6rem; }

/* ---------- Utility ---------- */
.ts-header .small{ font-size:.9rem; }
.btn-row{ display:flex; flex-wrap:wrap; gap:.5rem; }
.vstack{ display:flex; flex-direction:column; gap:.5rem; }
.gap-2{ gap:.5rem; } .gap-3{ gap:.75rem; }
.mb-0{ margin-bottom:0; }

/* ---------- Images ---------- */
img{ max-width:100%; height:auto; }

/* ---------- Mobile niceties ---------- */
@media (max-width:600px){
  .ts-actions{ position:sticky; top:0; z-index:10; background:#fff; padding:.5rem .25rem; border-bottom:1px solid var(--line); }
}

/* ---------- Optional light page background ---------- */
body{ background:#fff; }

/* Kill empty paragraphs WP may inject inside article/content */
.inside-article > p:empty,
.inside-article .d-grid > p:empty,
.inside-article .row > p:empty,
.card > p:empty,
.card-body > p:empty,
.container > p:empty { display:none !important; }
.inside-article .d-grid > p{ margin:0 !important; }

/* ---------- V2 wrapper ---------- */
.ts-v2{
  --ink:#0f172a; --muted:#6b7280; --line:#e6eaf2; --bg:#f7f8fc; --card:#fff;
  --brand:#3557ff; --brand-600:#2a46d9; --success:#16a34a; --amber:#f59e0b; --danger:#e5255a;
  --radius:16px; color:var(--ink);
}
.ts-v2 .ts-h{ font-size:1.1rem; font-weight:700; margin:0 0 .6rem; }

/* Meta row */
.ts-v2 .ts-meta-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1rem; margin-bottom:1rem; border:1px solid var(--line);
  border-radius:12px; background:linear-gradient(180deg,#fff,#f9fbff);
}
.ts-v2 .ts-meta{ color:var(--muted); font-size:.95rem; }

/* Rating pill */
.ts-v2 .ts-rating{ display:inline-flex; align-items:center; gap:.45rem; padding:.35rem .7rem; border-radius:999px; font-weight:700; background:#eef7ff; color:#0b5ed7; }
.ts-v2 .ts-rating .star{ width:16px; height:16px; fill:currentColor; }
.ts-v2 .ts-rating .count{ font-weight:600; opacity:.75; margin-left:.2rem; }
.ts-v2 .ts-rating--gold{ background:#fff7e6; color:#b45309; }
.ts-v2 .ts-rating--green{ background:#e9f9ee; color:#15803d; }
.ts-v2 .ts-rating--amber{ background:#fff3da; color:#b45309; }
.ts-v2 .ts-rating--red{ background:#ffe8ee; color:#b91c1c; }

/* Actions (V2) */
.ts-v2 .ts-actions{ display:flex; flex-wrap:wrap; gap:.6rem; margin:.25rem 0 1.25rem; }
.ts-v2 .btn{ --btn-pad:.56rem .9rem; display:inline-flex; align-items:center; gap:.4rem; padding:var(--btn-pad); border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--ink); text-decoration:none; font-weight:600; }
.ts-v2 .btn-sm{ padding:.45rem .75rem; font-size:.9rem; }
.ts-v2 .btn-primary{ background:var(--brand); border-color:var(--brand); color:#fff; }
.ts-v2 .btn-primary:hover{ background:var(--brand-600); }
.ts-v2 .btn-outline-primary{ border-color:var(--brand); color:var(--brand); }
.ts-v2 .btn-outline-primary:hover{ background:var(--brand); color:#fff; }

/* Photos */
.ts-v2 .ts-photos{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1rem; margin-bottom:1.25rem; }
.ts-v2 .ts-photo img{ width:100%; height:360px; object-fit:cover; border-radius:14px; box-shadow:0 10px 30px rgba(31,41,55,.08); }

/* Cards / grids */
.ts-v2 .ts-card{ background:var(--card); border:1px solid var(--line); border-radius:16px; padding:1rem; box-shadow:0 10px 30px rgba(31,41,55,.05); }
.ts-v2 .ts-grid{ display:grid; gap:1rem; }
.ts-v2 .ts-grid--two{ grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); margin-bottom:1rem; }
.ts-v2 .ts-grid--three{ grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }

/* Row lines + chips */
.ts-v2 .row-line{ display:flex; gap:.6rem; margin:.35rem 0; }
.ts-v2 .row-line strong{ min-width:90px; color:var(--muted); font-weight:600; }
.ts-v2 .chips{ display:flex; flex-wrap:wrap; gap:.4rem; }

/* Badges for types */
.ts-v2 .ts-badges{ display:flex; flex-wrap:wrap; gap:.4rem; }
.ts-v2 .ts-badge{ padding:.38rem .6rem; border-radius:999px; background:#f1f5f9; border:1px solid #e2e8f0; font-size:.9rem; }

/* Socials (icon only) */
.ts-v2 .ts-socials{ display:flex; flex-wrap:wrap; gap:.5rem; }
.ts-v2 .ts-social{ width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; border:1px solid var(--line); background:#fff; transition:.15s; }
.ts-v2 .ts-social:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(31,41,55,.08); }
.ts-v2 .ts-social svg{ width:20px; height:20px; fill:#1f2937; }
.ts-v2 .ts-social--facebook svg{ fill:#1877f2; }
.ts-v2 .ts-social--youtube svg{ fill:#ff0033; }
.ts-v2 .ts-social--instagram svg{ fill:#dd2a7b; }
.ts-v2 .ts-social--x svg{ fill:#111827; }

/* Tables in V2 (only what differs from global) */
.ts-v2 .table tr:first-child th, .ts-v2 .table tr:first-child td{ border-top:none; }

/* Alert refinement */
.ts-v2 .alert{ border-radius:14px; padding:.9rem 1rem; background:#eef7ff; border:1px solid #daecff; color:#0b5ed7; }

/* Mobile nicety (V2) */
@media (max-width:600px){
  .ts-v2 .ts-actions{ position:sticky; top:0; z-index:5; background:#fff; padding:.5rem .25rem; border-bottom:1px solid var(--line); }
}

/* Social buttons (icon + label) */
.ts-v2 .ts-follow{ display:flex; flex-wrap:wrap; gap:.5rem; margin:.25rem 0 1rem; }
.ts-v2 .ts-socialbtn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.55rem .8rem; border:1px solid var(--line); border-radius:12px;
  background:#fff; box-shadow:0 6px 14px rgba(31,41,55,.06); font-weight:600;
  transition:.15s ease; text-decoration:none; color:var(--ink);
}
.ts-v2 .ts-socialbtn:hover{ transform:translateY(-1px); box-shadow:0 10px 24px rgba(31,41,55,.12); }
.ts-v2 .ts-socialbtn svg{ width:18px; height:18px; fill:#1f2937; }
.ts-v2 .ts-socialbtn--facebook svg{ fill:#1877f2; }
.ts-v2 .ts-socialbtn--youtube svg{ fill:#ff0033; }
.ts-v2 .ts-socialbtn--instagram svg{ fill:#dd2a7b; }
.ts-v2 .ts-socialbtn--x svg{ fill:#111827; }

/* Fancy hours card */
.ts-v2 .ts-hours-card{ padding:1rem; }
.ts-v2 .ts-hours-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem; }
.ts-v2 .ts-today-pill{ padding:.35rem .6rem; border-radius:999px; font-weight:700; font-size:.9rem; border:1px solid var(--line); background:#f1f5ff; color:#2438C4; }
.ts-v2 .ts-today-pill.is-open{ background:#e9f9ee; color:#15803d; border-color:#d8f3e2; }
.ts-v2 .ts-today-pill.is-closed{ background:#ffe8ee; color:#b91c1c; border-color:#ffd5e0; }
.ts-v2 .ts-hours{ width:100%; border-collapse:collapse; }
.ts-v2 .ts-hours th, .ts-v2 .ts-hours td{ padding:.7rem .9rem; border-top:1px solid var(--line); text-align:left; }
.ts-v2 .ts-hours tr:first-child th, .ts-v2 .ts-hours tr:first-child td{ border-top:none; }
.ts-v2 .ts-hours tr.is-today th, .ts-v2 .ts-hours tr.is-today td{ background:#eef2ff; color:#2438C4; font-weight:700; }

/* Small polish */
.ts-v2 .ts-photo img.ts-fallback{ object-fit:contain; background:#f7f8fc; border:1px dashed #e2e8f0; }

/* Stack lists for Social Profiles & Useful infos */
.ts-v2 .ts-follow--sc{
  display:grid !important; grid-template-columns:1fr;
  gap:.6rem; align-items:stretch;
}

.ts-v2 .ts-follow--sc .ts-socialbtn,
.ts-v2 .ts-follow--sc .btn{
  display:flex; width:100%; justify-content:flex-start; border-radius:12px;max-width:200px;
}
/* CTA — Suggest updates */
.ts-v2 .ts-cta{
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg,#f7faff,#ffffff);
  box-shadow: 0 10px 30px rgba(31,41,55,.05);
  padding: 1rem;
}
.ts-v2 .ts-cta__inner{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ts-v2 .ts-cta__icon{
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #dbe4ff;
  flex: 0 0 44px;
}
.ts-v2 .ts-cta__icon svg{ width: 22px; height: 22px; fill: #2438C4; }

.ts-v2 .ts-cta__title{ margin: 0 0 .2rem; font-size: 1.05rem; }
.ts-v2 .ts-cta__desc{ margin: 0; color: var(--muted); font-size: .95rem; }

.ts-v2 .ts-cta__actions{ margin-left: auto; }
.ts-v2 .ts-cta__btn{ padding: .6rem 1rem; border-radius: 999px; }

@media (max-width: 640px){
  .ts-v2 .ts-cta__inner{ flex-direction: column; align-items: flex-start; }
  .ts-v2 .ts-cta__actions{ margin-left: 0; width: 100%; }
  .ts-v2 .ts-cta__btn{ width: 100%; text-align: center; }
}

.ts-v2 .ts-pager{ margin:1rem 0 0; }
.ts-v2 .ts-pager ul{ display:flex; gap:.4rem; list-style:none; padding:0; margin:0; }
.ts-v2 .ts-pager a{ display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 .6rem; border:1px solid var(--line); border-radius:10px; background:#fff; text-decoration:none; }
.ts-v2 .ts-pager li.is-active a{ background:var(--brand); border-color:var(--brand); color:#fff; }
