/* TC Blog: styles for the Elementor blog templates (archive, single post, post card). */

/* ---------- Shared ---------- */
.tcblog-eyebrow .elementor-heading-title {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font: 600 15px/1.2 "Barlow Condensed", sans-serif !important; letter-spacing: .18em; text-transform: uppercase; color: #FFFFFF;
}
.tcblog-eyebrow .elementor-heading-title::before { content: ""; width: 34px; height: 3px; background: #FF7900; flex: none; }
.tcblog-eyebrow--dark .elementor-heading-title { color: #262B2F; }
.tcblog-h2 .elementor-heading-title span, .tcblog-cta-title .elementor-heading-title span { color: #FF7900; }

/* ---------- Hero (archive + single) ---------- */
.e-con.tcblog-hero { border-bottom: 4px solid #FF7900; }
.tcblog-hero-text, .tcblog-hero-text p { max-width: 640px; margin: 0; color: rgba(255, 255, 255, .84); font-size: 18px; line-height: 1.6; }
.tcblog-post-title .elementor-heading-title { max-width: 980px; }
.tcblog-post-info .elementor-icon-list-items { gap: 10px 22px; }
.tcblog-post-info .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.tcblog-post-info .elementor-icon-list-item::after { display: none !important; }
.tcblog-post-info .elementor-icon-list-text, .tcblog-post-info .elementor-icon-list-text a {
  color: #FFFFFF !important; font: 600 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase;
}
.tcblog-post-info .elementor-icon-list-item:first-child .elementor-icon-list-text a,
.tcblog-post-info .elementor-icon-list-item:first-child .elementor-icon-list-text {
  display: inline-block; padding: 7px 12px; background: #FF7900; color: #FFFFFF !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.tcblog-post-info .elementor-icon-list-item:first-child .elementor-icon-list-icon { display: none; }
.tcblog-post-info .elementor-icon-list-icon i, .tcblog-post-info .elementor-icon-list-icon svg { color: #FF7900; fill: #FF7900; }

/* ---------- Category filter (archive) ---------- */
.tcblog-filter .e-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tcblog-filter .e-filter-item {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 10px 20px; cursor: pointer;
  background: #FFFFFF !important; color: #171A1C !important; border: 1px solid #D5D9DC !important; border-radius: 0 !important;
  font: 600 16px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tcblog-filter .e-filter-item:hover { border-color: #FF7900 !important; color: #FF7900 !important; }
.tcblog-filter .e-filter-item[aria-pressed="true"] {
  background: #FF7900 !important; border-color: #FF7900 !important; color: #FFFFFF !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
@media (max-width: 767px) {
  .tcblog-filter .e-filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .tcblog-filter .e-filter-item { flex: none; }
}

/* ---------- Post card (loop item) ---------- */
.tcblog-grid .e-loop-item, .tcblog-card { height: 100%; }
.tcblog-card-img img { aspect-ratio: 16 / 10; object-fit: cover; height: auto !important; }
.tcblog-card-meta { row-gap: 6px !important; }
.tcblog-card-cat .elementor-heading-title {
  display: inline-block; padding: 6px 10px; background: #FF7900; color: #FFFFFF !important;
  font: 600 13px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.tcblog-card-date .elementor-heading-title { color: #6B7278 !important; font: 600 14px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .1em; text-transform: uppercase; }
.tcblog-card-title .elementor-heading-title a { color: inherit; }
.tcblog-card-title .elementor-heading-title a:hover { color: #FF7900; }
.tcblog-card-excerpt, .tcblog-card-excerpt p { font-size: 15px; line-height: 1.6; color: #4A5157; }

/* ---------- Pagination (archive grid) ---------- */
.tcblog-grid .elementor-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.tcblog-grid .elementor-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; margin: 0 !important; padding: 0 14px;
  background: #FFFFFF; border: 1px solid #D5D9DC; color: #171A1C; text-decoration: none;
  font: 600 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s;
}
.tcblog-grid .elementor-pagination a.page-numbers:hover { border-color: #FF7900; color: #FF7900; }
.tcblog-grid .elementor-pagination .page-numbers.current { background: #FF7900; border-color: #FF7900; color: #FFFFFF; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.tcblog-grid .elementor-pagination .page-numbers.prev, .tcblog-grid .elementor-pagination .page-numbers.next { background: #171A1C; border-color: #171A1C; color: #FFFFFF; padding: 0 22px; }
.tcblog-grid .elementor-pagination a.page-numbers.prev:hover, .tcblog-grid .elementor-pagination a.page-numbers.next:hover { background: #FF7900; border-color: #FF7900; }
.tcblog-grid .elementor-pagination span.page-numbers.prev, .tcblog-grid .elementor-pagination span.page-numbers.next { opacity: .35; }
.tcblog-grid .e-loop-nothing-found-message { padding: 40px 20px; text-align: center; background: #FFFFFF; font-size: 17px; color: #262B2F; }

/* ---------- Article body ---------- */
.e-con.tcblog-main { min-width: 0; }
/* Desktop: readable article column + fixed-width sidebar, centered together */
@media (min-width: 1025px) {
  .e-con.tcblog-post-body > .e-con-inner { justify-content: center; }
  .e-con.tcblog-post-body .e-con.tcblog-main { --width: auto; width: auto !important; flex: 1 1 0% !important; max-width: 860px; }
  .e-con.tcblog-post-body .e-con.tcblog-aside { --width: 360px; width: 360px !important; flex: 0 0 360px !important; }
}
/* Tablet and phone: stacked, full width */
@media (max-width: 1024px) {
  .e-con.tcblog-post-body .e-con.tcblog-main, .e-con.tcblog-post-body .e-con.tcblog-aside { --width: 100%; width: 100% !important; max-width: 100%; flex: 0 0 auto !important; }
}
.tcblog-content { color: #262B2F; font-size: 18px; line-height: 1.75; }
.tcblog-content p { margin: 0 0 1.25em; }
.tcblog-content > .elementor-widget-container > p:first-child { font-size: 20px; color: #171A1C; }
.tcblog-content h2 {
  position: relative; margin: 1.6em 0 .6em; padding-left: 18px;
  font: 400 34px/1.1 Anton, sans-serif; text-transform: uppercase; color: #171A1C;
}
.tcblog-content h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; background: #FF7900; }
.tcblog-content h3 { margin: 1.4em 0 .5em; font: 400 26px/1.15 Anton, sans-serif; text-transform: uppercase; color: #171A1C; }
.tcblog-content ul, .tcblog-content ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.tcblog-content li { position: relative; margin: 0 0 .7em; padding-left: 32px; }
.tcblog-content ul li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; background: #FF7900; }
.tcblog-content ul li::after {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px;
  background: no-repeat center / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='white' stroke-width='2.4'/%3E%3C/svg%3E");
}
.tcblog-content ol { counter-reset: tcb; }
.tcblog-content ol li { counter-increment: tcb; }
.tcblog-content ol li::before { content: counter(tcb); position: absolute; left: 0; top: .2em; width: 22px; height: 22px; display: grid; place-items: center; background: #171A1C; color: #FFFFFF; font: 700 12px/1 Inter, sans-serif; }
.tcblog-content strong { color: #171A1C; }
.tcblog-content a { color: #FF7900; text-decoration: underline; text-underline-offset: 3px; }
.tcblog-content blockquote {
  margin: 1.8em 0; padding: 26px 30px 26px 34px; border: 0; border-left: 5px solid #FF7900; background: #171A1C; color: #FFFFFF;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.tcblog-content blockquote p { margin: 0; font: 500 21px/1.45 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #FFFFFF; }
.tcblog-content img { max-width: 100%; height: auto; }

/* ---------- Share + post navigation ---------- */
.e-con.tcblog-share { border-top: 1px solid #E1E4E6; }
.tcblog-share-label .elementor-heading-title { font: 600 15px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .14em; text-transform: uppercase; color: #262B2F; }
.tcblog-share .elementor-share-btn { background: #171A1C !important; border-radius: 0 !important; transition: background-color .2s; }
.tcblog-share .elementor-share-btn:hover { background: #FF7900 !important; }
.tcblog-nav .elementor-post-navigation { padding: 22px 0; border-top: 1px solid #E1E4E6; border-bottom: 1px solid #E1E4E6; }
.tcblog-nav .post-navigation__prev--label, .tcblog-nav .post-navigation__next--label { font: 600 13px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #FF7900; }
.tcblog-nav .post-navigation__prev--title, .tcblog-nav .post-navigation__next--title { font: 400 20px/1.2 Anton, sans-serif; text-transform: uppercase; color: #171A1C; }
.tcblog-nav .post-navigation__arrow-wrapper { color: #FF7900; }

/* ---------- Sidebar call to action ---------- */
@media (min-width: 1025px) { .e-con.tcblog-aside { position: sticky; top: 130px; } }
.e-con.tcblog-cta { border-top: 4px solid #FF7900; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.tcblog-cta-text, .tcblog-cta-text p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.6; }
.tcblog-btn .elementor-button {
  width: 100%; min-height: 50px; border-radius: 0 !important; background: #FF7900 !important; color: #FFFFFF !important; border: 0 !important;
  font: 600 16px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); transition: background-color .2s, color .2s;
}
.tcblog-btn .elementor-button:hover { background: #FFFFFF !important; color: #171A1C !important; }
.tcblog-btn--ghost .elementor-button { background: transparent !important; box-shadow: inset 0 0 0 2px #FFFFFF; clip-path: none; }
.tcblog-btn--ghost .elementor-button:hover { background: #FFFFFF !important; color: #171A1C !important; }
.tcblog-btn .elementor-button-icon svg { fill: currentColor; }

@media (max-width: 767px) {
  .tcblog-content { font-size: 17px; }
  .tcblog-content > .elementor-widget-container > p:first-child { font-size: 18px; }
  .tcblog-content h2 { font-size: 28px; }
  .tcblog-content blockquote { padding: 20px 20px 20px 24px; }
  .tcblog-content blockquote p { font-size: 19px; }
  .tcblog-grid .elementor-pagination .page-numbers { min-width: 42px; height: 42px; font-size: 16px; padding: 0 10px; }
}

/* ---------- Legal pages (Privacy, Terms, Refunds) ---------- */
.tclegal-updated .elementor-heading-title { margin: 0; color: rgba(255, 255, 255, .78); font: 600 15px/1.2 "Barlow Condensed", sans-serif !important; letter-spacing: .12em; text-transform: uppercase; }
.tclegal-updated .elementor-heading-title::before { content: "Last updated: "; color: #FF7900; }
@media (min-width: 1025px) {
  .e-con.tclegal-body > .e-con-inner { justify-content: center; }
  .e-con.tclegal-body .e-con.tclegal-main { --width: auto; width: auto !important; flex: 1 1 0% !important; max-width: 860px; min-width: 0; }
  .e-con.tclegal-body .e-con.tclegal-aside { --width: 300px; width: 300px !important; flex: 0 0 300px !important; position: sticky; top: 130px; }
}
@media (max-width: 1024px) {
  .e-con.tclegal-body .e-con.tclegal-main, .e-con.tclegal-body .e-con.tclegal-aside { --width: 100%; width: 100% !important; flex: 0 0 auto !important; }
  .e-con.tclegal-body .e-con.tclegal-help { display: none; }
}
.e-con.tclegal-nav-box { border-top: 4px solid #FF7900; }
.tclegal-nav-title { padding: 0 22px 10px; }
.tclegal-nav .elementor-icon-list-items { margin: 0; padding: 0; }
.tclegal-nav .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; border-top: 1px solid #E1E4E6; }
.tclegal-nav .elementor-icon-list-item::after { display: none !important; }
.tclegal-nav .elementor-icon-list-item > a { display: flex !important; align-items: center; gap: 12px; padding: 14px 22px; border-left: 4px solid transparent; transition: background-color .2s, border-color .2s; }
.tclegal-nav .elementor-icon-list-item > a:hover { background: #FFFFFF; border-left-color: #FF7900; }
.tclegal-nav .elementor-icon-list-icon { width: 18px; }
.tclegal-nav .elementor-icon-list-icon i, .tclegal-nav .elementor-icon-list-icon svg { color: #FF7900 !important; fill: #FF7900 !important; width: 16px; height: 16px; font-size: 16px; }
.tclegal-nav .elementor-icon-list-text { color: #171A1C !important; font: 600 17px/1.2 "Barlow Condensed", sans-serif !important; letter-spacing: .05em; text-transform: uppercase; padding: 0 !important; }
/* Current page */
body.page-id-3 .tclegal-nav .elementor-icon-list-item:nth-child(1) > a,
body.page-id-873 .tclegal-nav .elementor-icon-list-item:nth-child(2) > a,
body.page-id-801 .tclegal-nav .elementor-icon-list-item:nth-child(3) > a { background: #FFFFFF; border-left-color: #FF7900; }
body.page-id-3 .tclegal-nav .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text,
body.page-id-873 .tclegal-nav .elementor-icon-list-item:nth-child(2) .elementor-icon-list-text,
body.page-id-801 .tclegal-nav .elementor-icon-list-item:nth-child(3) .elementor-icon-list-text { color: #FF7900 !important; }
.tclegal-content h2 { font-size: 30px; }
.tclegal-content h2:first-child { margin-top: 0; }
@media (max-width: 767px) { .tclegal-content h2 { font-size: 24px; } }
