/* TRAINERSTU — Elementor widget + content styles. */

/* ---------- Section header ---------- */

.ts-section-head.is-left { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ts-eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.ts-head-link { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; white-space: nowrap; position: relative; }
.ts-head-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.ts-head-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Category cards ---------- */

.ts-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; }
.category-card {
  position: relative;
  isolation: isolate;
  height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}
.category-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.category-card:hover > img { transform: scale(1.06); }
.category-card-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%); transition: background 0.5s ease; }
.category-card:hover .category-card-veil { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%); }
.category-card h3 { color: #fff; margin-bottom: 3rem; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); transition: transform 0.5s var(--ease-out); }
.category-card:hover h3 { transform: translateY(-6px); color: #fff; }
.category-card:hover .btn-outline { background: #fff; color: var(--text-primary); }

/* ---------- Image + text ---------- */

.ts-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; align-items: center; }
.ts-split.is-image-right .brand-story-visual { order: 2; }
.brand-story-visual { position: relative; height: 500px; overflow: hidden; border-radius: var(--border-radius-md); }
.brand-story-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.brand-story-visual:hover img { transform: scale(1.04); }
.brand-story-content .ts-rich p { margin-bottom: 1.5rem; }
.brand-story-content .ts-rich { margin-bottom: 1.5rem; }
.brand-story-content .heading-xl + .ts-rich { margin-bottom: 3rem; }

/* ---------- Testimonials ---------- */

.ts-testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ts-testimonial { padding: 2.5rem; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.ts-testimonial blockquote { font-size: 1.15rem; line-height: 1.8; font-style: italic; font-weight: 300; color: var(--text-primary); margin-bottom: 2rem; }
.ts-testimonial figcaption { display: flex; align-items: center; gap: 1rem; font-weight: 500; letter-spacing: 0.025em; margin-top: auto; }
.ts-avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-serif); font-size: 1.1rem; background: linear-gradient(135deg, #e6c875 0%, #cba135 100%); }

/* ---------- FAQ ---------- */

.ts-faq { max-width: 800px; }
.ts-faq-item { margin-bottom: 1.25rem; padding: 0; overflow: hidden; }
.ts-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 2rem; font-size: 1.35rem; line-height: 1.3; cursor: pointer; list-style: none; outline: none; }
.ts-faq-item summary::-webkit-details-marker { display: none; }
.ts-faq-chevron { flex-shrink: 0; display: flex; transition: transform 0.4s var(--ease-out); }
.ts-faq-item.is-open .ts-faq-chevron, .ts-faq-item[open]:not(.is-closing) .ts-faq-chevron { transform: rotate(180deg); }
.ts-faq-answer { padding: 0 2rem 1rem; overflow: hidden; }
.ts-faq-answer p { color: var(--text-secondary); line-height: 2; }

/* ---------- Page hero + panel + CTA ---------- */

.ts-page-hero { padding: 4rem 1rem 2rem; border-bottom: 1px solid var(--glass-border); }
.ts-page-hero .ts-narrow, .ts-cta .ts-narrow { margin: 0 auto; }
.ts-panel-section { padding: 4rem 0; }
.ts-panel-wrap { max-width: 800px; }
.ts-panel { padding: 2.5rem; line-height: 1.8; }
.ts-panel .ts-rich h2 { font-size: 1.5rem; margin: 1.5rem 0 0.5rem; color: var(--text-primary); line-height: 1.3; }
.ts-panel .ts-rich h2:first-child { margin-top: 0.5rem; }
.ts-panel .ts-rich p { margin-bottom: 1rem; }
.ts-panel .ts-rich a { color: var(--accent-gold); text-decoration: underline; }
.ts-muted { font-size: 0.9rem; color: var(--text-tertiary); }
.ts-cta { padding: 8rem 0; }

/* ---------- Contact ---------- */

.ts-contact-section { padding: 2.5rem 0 5rem; }
.ts-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: start; max-width: 72rem; }
.ts-contact-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.ts-info-card { position: relative; padding: 2.5rem; overflow: hidden; }
.ts-info-card:hover { transform: translateY(-4px); }
.ts-info-card.is-highlight { border-color: var(--accent-gold); }
.ts-info-card.is-highlight::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-gold); }
.ts-info-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ts-info-head h2 { margin: 0; color: var(--text-primary); }
.ts-info-card p { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.7; }
.ts-info-card .btn-primary { padding: 1rem 2rem; width: auto; }
.ts-info-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; font-weight: 500; transition: gap 0.3s var(--ease-out), color 0.3s ease; }
.ts-info-card:hover .ts-info-link { gap: 0.85rem; }

.ts-contact-form { padding: 3.5rem; border-radius: var(--border-radius-lg); }
.ts-contact-form form { display: flex; flex-direction: column; gap: 1.5rem; }
.ts-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.ts-contact-form label { display: flex; flex-direction: column; gap: 0.5rem; }
.ts-contact-form label > span { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.ts-contact-form input, .ts-contact-form select, .ts-contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-sm);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ts-contact-form textarea { resize: vertical; }
.ts-contact-form select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cba135' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.2rem center; }
.ts-contact-form input:focus, .ts-contact-form select:focus, .ts-contact-form textarea:focus { border-color: var(--accent-gold); background: #fff; box-shadow: 0 0 0 3px rgba(203, 161, 53, 0.12); }
.ts-contact-form .btn-primary { padding: 1.2rem; margin-top: 1rem; font-size: 1.1rem; font-weight: 600; }
.ts-contact-form .ts-form-msg { padding: 1rem; text-align: center; border-radius: var(--border-radius-sm); border: 1px solid currentColor; }
.ts-contact-form .ts-form-msg.is-success { background: rgba(203, 161, 53, 0.1); }

/* ---------- Blog ---------- */

.ts-blog-section { padding: 2.5rem 0 5rem; }
.ts-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ts-post-card { display: flex; flex-direction: column; overflow: hidden; }
.ts-post-card:hover { transform: translateY(-8px); color: inherit; }
.ts-post-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.ts-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.ts-post-card:hover .ts-post-thumb img { transform: scale(1.05); }
.ts-post-thumb-empty { font-size: 3rem; }
.ts-post-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.ts-post-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--text-tertiary); }
.ts-post-cat { font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-gold); }
.ts-post-cat.is-pill { background: rgba(212, 175, 55, 0.1); padding: 0.3rem 0.8rem; border-radius: 2rem; font-size: 0.8rem; }
.ts-post-body h2 { font-size: 1.1rem; line-height: 1.4; }
.ts-post-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.ts-read-more { margin-top: auto; font-size: 0.85rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.35rem; transition: gap 0.3s var(--ease-out); }
.ts-post-card:hover .ts-read-more { gap: 0.6rem; }
.ts-pagination { margin-top: 3rem; text-align: center; }
.ts-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; margin: 0 0.15rem; }
.ts-pagination .page-numbers.current { background: var(--lv-brown); color: #fff; }

.ts-breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; color: var(--text-secondary); font-size: 0.875rem; flex-wrap: wrap; }
.ts-breadcrumb-current { color: var(--text-primary); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }

.ts-article { max-width: 56rem; padding-top: 4rem; padding-bottom: 4rem; }
.ts-article-header { margin-bottom: 2.5rem; }
.ts-article-header .ts-post-meta { margin-bottom: 1rem; font-size: 0.85rem; }
.ts-article-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 1rem; }
.ts-article-author { color: var(--text-secondary); font-size: 0.9rem; }
.ts-article-image { aspect-ratio: 16 / 9; border-radius: var(--border-radius-md); overflow: hidden; margin-bottom: 2.5rem; }
.ts-article-image img { width: 100%; height: 100%; object-fit: cover; }
.ts-article-back { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.ts-article-back .btn-primary { width: auto; }

.blog-content { line-height: 1.8; font-size: 1.05rem; color: var(--text-primary); }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 { margin: 2rem 0 1rem; }
.blog-content h2 { font-size: 1.8rem; }
.blog-content h3 { font-size: 1.4rem; }
.blog-content p, .blog-content ul, .blog-content ol { margin-bottom: 1.2rem; color: var(--text-secondary); }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content img { border-radius: var(--border-radius-md); margin: 1.5rem 0; width: 100%; }
.blog-content blockquote { border-left: 3px solid var(--accent-gold); padding-left: 1.5rem; margin: 1.5rem 0; font-style: italic; color: var(--text-tertiary); }
.blog-content a { color: var(--accent-gold); text-decoration: underline; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.blog-content th, .blog-content td { padding: 0.75rem 1rem; border: 1px solid rgba(0, 0, 0, 0.08); text-align: left; }
.blog-content th { background: var(--bg-secondary); font-weight: 600; }

.ts-404 { padding: 8rem 1rem; }
.ts-404 .btn-primary { width: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .ts-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ts-category-grid, .ts-split, .ts-testimonials, .ts-blog-grid, .ts-form-row { grid-template-columns: 1fr; }
  .ts-category-grid { gap: 1.5rem; }
  .ts-split { gap: 2rem; }
  .ts-split.is-image-first-mobile .brand-story-visual { order: -1; }
  .ts-split:not(.is-image-first-mobile) .brand-story-visual { order: 2; }
  .brand-story-visual { height: 360px !important; }
  .ts-testimonial { padding: 1.75rem; min-height: 0; }
  .ts-faq-item summary { padding: 1.25rem 1.25rem; font-size: 1.15rem; }
  .ts-faq-answer { padding: 0 1.25rem 1rem; }
  .ts-page-hero { padding: 2rem 1rem 1rem; }
  .ts-panel { padding: 1.5rem; }
  .ts-cta { padding: 4rem 0; }
  .ts-info-card, .ts-contact-form { padding: 1.5rem; }
  .ts-info-card .btn-primary { width: 100%; }
  .ts-article { padding-top: 2rem; }
}
