/* Blog list (sections/ballr-blog.liquid) and article (sections/ballr-article.liquid).
   Header/footer come from ballr-contact.css (#ballr-contact wrapper); cards from ballr-blog-cards.css. */
#ballr-contact.ballr-blog { color: #111712; background: #f1f2ed; overflow: visible; }
#ballr-contact.ballr-blog .contact-header,
#ballr-contact.ballr-blog .contact-footer { color: #f5f0e7; }

/* ---------- Dark hero shared by the list and the article ---------- */
#ballr-contact .blog-hero,
#ballr-contact .post-hero {
  position: relative;
  color: #f5f0e7;
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 84, 52, .2), transparent 30%),
    linear-gradient(135deg, #0f150f 0%, #1a281e 100%);
}
#ballr-contact .blog-hero::before,
#ballr-contact .post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---------- Blog list ---------- */
#ballr-contact .blog-hero { padding: 160px 0 72px; }
#ballr-contact .blog-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: end; }
#ballr-contact .blog-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 36px;
  padding: 4px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(247, 241, 231, .12);
  border-radius: 999px;
}
#ballr-contact .blog-tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; color: rgba(245, 240, 231, .72); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 999px; transition: color .2s, background .2s; }
#ballr-contact .blog-tabs a:hover { color: #f5f0e7; }
#ballr-contact .blog-tabs a[aria-current="page"] { color: #111712; background: #f5f0e7; }
#ballr-contact .blog-hero h1 { max-width: 15ch; color: #f5f0e7; margin: 16px 0 18px; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; font-weight: 750; letter-spacing: -.035em; text-wrap: balance; }
#ballr-contact .blog-hero__copy > p { max-width: 560px; margin: 0; color: rgba(245, 240, 231, .72); font-size: 18px; line-height: 1.65; }
#ballr-contact .blog-pulse {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  color: #f5f0e7;
  text-decoration: none;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(247, 241, 231, .12);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s;
}
#ballr-contact .blog-pulse:hover { background: rgba(255, 255, 255, .07); border-color: rgba(214, 84, 52, .55); }
#ballr-contact .blog-pulse__label { display: inline-flex; align-items: center; gap: 9px; color: #aeb8ae; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#ballr-contact .blog-pulse__label i { position: relative; width: 8px; height: 8px; background: #ed6a47; border-radius: 50%; }
#ballr-contact .blog-pulse__label i::after { content: ""; position: absolute; inset: -4px; border: 1px solid #ed6a47; border-radius: 50%; animation: blog-pulse 2s ease-out infinite; }
@keyframes blog-pulse { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.8); } }
@media (prefers-reduced-motion: reduce) { #ballr-contact .blog-pulse__label i::after { animation: none; } }
#ballr-contact .blog-pulse strong { font-size: 22px; line-height: 1.3; font-weight: 700; }
#ballr-contact .blog-pulse__title { display: -webkit-box; overflow: hidden; color: rgba(245, 240, 231, .8); font-size: 14px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#ballr-contact .blog-pulse__count { padding-top: 10px; color: #8e998f; font-size: 12px; border-top: 1px solid rgba(247, 241, 231, .1); }

#ballr-contact .blog-body { padding: 52px 0 96px; }
#ballr-contact .blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
#ballr-contact .blog-filter a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; color: #3a443c; font-size: 14px; font-weight: 550; text-decoration: none; border: 1px solid rgba(16, 21, 16, .14); border-radius: 999px; transition: border-color .2s, background .2s, color .2s; }
#ballr-contact .blog-filter a:hover { border-color: rgba(16, 21, 16, .35); }
#ballr-contact .blog-filter a[aria-current="page"] { color: #fff; background: #111712; border-color: #111712; }
#ballr-contact .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
#ballr-contact .blog-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#ballr-contact .blog-grid__feature { grid-column: 1 / -1; }
#ballr-contact .blog-empty { padding: 60px 0; color: #5c665e; font-size: 17px; text-align: center; }
#ballr-contact .blog-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; color: #5c665e; font-size: 14px; }
#ballr-contact .blog-pagination .contact-button { color: #111712; background: #fbfbf8; border-color: rgba(16, 21, 16, .14); }
#ballr-contact .blog-pagination .contact-button:hover { border-color: rgba(16, 21, 16, .4); }

#ballr-contact .blog-subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 36px;
  align-items: center;
  margin-top: 72px;
  padding: 38px 42px;
  background: #e5e7e1;
  border: 1px solid rgba(16, 21, 16, .08);
  border-radius: 22px;
}
#ballr-contact .blog-subscribe h2 { margin-bottom: 8px; color: #111712; font-size: 26px; line-height: 1.25; letter-spacing: -.015em; }
#ballr-contact .blog-subscribe p { margin: 0; color: #5c665e; font-size: 15px; line-height: 1.6; }
#ballr-contact .blog-subscribe__row { display: flex; gap: 10px; }
#ballr-contact .blog-subscribe input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; color: #111712; font: inherit; font-size: 15px; background: #fbfbf8; border: 1px solid rgba(16, 21, 16, .16); border-radius: 10px; }
#ballr-contact .blog-subscribe input[type="email"]:focus { outline: 2px solid #d65434; outline-offset: 1px; }
#ballr-contact .blog-subscribe .contact-button { height: 48px; }
#ballr-contact .blog-subscribe__msg { margin-top: 10px !important; color: #2f6b3f !important; font-weight: 600; }

/* ---------- Article ---------- */
#ballr-contact .post-hero { padding: 150px 0 64px; }
#ballr-contact .post--has-cover .post-hero { padding-bottom: 150px; }
#ballr-contact .post-hero__inner { position: relative; }
#ballr-contact .post-back { display: inline-flex; align-items: center; gap: 8px; color: #aeb8ae; font-size: 14px; font-weight: 600; text-decoration: none; }
#ballr-contact .post-back:hover { color: #f18464; }
[dir="rtl"] #ballr-contact .post-back span { transform: scaleX(-1); }
#ballr-contact .post-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; margin: 26px 0 16px; }
#ballr-contact .post-tags:empty { margin-bottom: 0; }
#ballr-contact .post-hero .bp-chip { color: #ffb8a3; background: rgba(214, 84, 52, .2); }
#ballr-contact .post-hero h1 { max-width: 20ch; color: #f5f0e7; margin: 0 0 20px; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; font-weight: 750; letter-spacing: -.03em; text-wrap: balance; }
#ballr-contact .post-lead { max-width: 680px; margin: 0; color: rgba(245, 240, 231, .74); font-size: 20px; line-height: 1.6; }
#ballr-contact .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 30px; padding-top: 22px; color: #aeb8ae; font-size: 14px; border-top: 1px solid rgba(247, 241, 231, .12); }
#ballr-contact .post-meta__author { color: #f5f0e7; font-weight: 650; }
#ballr-contact .post-cover { position: relative; margin-top: -96px; }
#ballr-contact .post-cover img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(10, 16, 11, .55); }

#ballr-contact .post-layout { display: grid; grid-template-columns: minmax(0, 720px) 230px; justify-content: space-between; gap: 64px; padding-top: 64px; padding-bottom: 88px; }
#ballr-contact .post-aside { position: sticky; top: 110px; align-self: start; display: grid; gap: 30px; }
#ballr-contact .post-aside__label { margin-bottom: 12px; color: #5c665e; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#ballr-contact .post-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid rgba(16, 21, 16, .12); }
#ballr-contact .post-toc a { display: block; margin-inline-start: -1px; padding: 7px 0 7px 16px; padding-inline: 16px 0; color: #5c665e; font-size: 14px; line-height: 1.45; text-decoration: none; border-inline-start: 2px solid transparent; transition: color .2s, border-color .2s; }
#ballr-contact .post-toc a:hover { color: #111712; }
#ballr-contact .post-toc a.is-active { color: #111712; font-weight: 600; border-inline-start-color: #d65434; }
#ballr-contact .post-share__copy { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; color: #111712; font-size: 14px; font-weight: 600; cursor: pointer; background: #fbfbf8; border: 1px solid rgba(16, 21, 16, .16); border-radius: 999px; transition: border-color .2s, background .2s, color .2s; }
#ballr-contact .post-share__copy:hover { border-color: rgba(16, 21, 16, .4); }
#ballr-contact .post-share__copy.is-done { color: #fff; background: #2f6b3f; border-color: #2f6b3f; }

/* Article typography */
#ballr-contact .post-body { min-width: 0; color: #283129; font-size: 18px; line-height: 1.8; }
#ballr-contact .post-body > :first-child { margin-top: 0; }
#ballr-contact .post-body p { margin: 0 0 1.15em; }
#ballr-contact .post-body h2 { margin: 2.2em 0 .75em; color: #111712; font-size: 30px; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; scroll-margin-top: 110px; text-wrap: balance; }
#ballr-contact .post-body h2::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 18px; background: #d65434; border-radius: 2px; }
#ballr-contact .post-body h3 { margin: 1.8em 0 .6em; color: #111712; font-size: 21px; line-height: 1.35; font-weight: 700; scroll-margin-top: 110px; }
#ballr-contact .post-body a { color: #b4432a; text-decoration: underline; text-decoration-color: rgba(214, 84, 52, .4); text-decoration-thickness: 1px; text-underline-offset: 3px; }
#ballr-contact .post-body a:hover { color: #d65434; text-decoration-color: currentColor; }
#ballr-contact .post-body strong { color: #111712; font-weight: 650; }
#ballr-contact .post-body ul,
#ballr-contact .post-body ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
#ballr-contact .post-body li { position: relative; margin: .55em 0; padding-inline-start: 30px; }
#ballr-contact .post-body ul > li::before { content: ""; position: absolute; top: .72em; inset-inline-start: 8px; width: 7px; height: 7px; background: #d65434; border-radius: 50%; }
#ballr-contact .post-body ol { counter-reset: post-step; }
#ballr-contact .post-body ol > li { min-height: 30px; margin: .9em 0; padding-inline-start: 46px; counter-increment: post-step; }
#ballr-contact .post-body ol > li::before { content: counter(post-step); position: absolute; top: .1em; inset-inline-start: 0; display: grid; place-items: center; width: 30px; height: 30px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; background: #d65434; border-radius: 50%; }
#ballr-contact .post-body blockquote { margin: 1.8em 0; padding: 4px 0; padding-inline-start: 22px; color: #111712; font-size: 20px; line-height: 1.6; border-inline-start: 3px solid #d65434; }
#ballr-contact .post-body img,
#ballr-contact .post-body video { max-width: 100%; height: auto; border-radius: 16px; }
#ballr-contact .post-body figure { margin: 2em 0; }
#ballr-contact .post-body figcaption { margin-top: 10px; color: #5c665e; font-size: 14px; line-height: 1.5; text-align: center; }
#ballr-contact .post-body hr { height: 1px; margin: 2.6em 0; background: rgba(16, 21, 16, .12); border: 0; }
#ballr-contact .post-body .post-table { margin: 1.8em 0; overflow-x: auto; background: #fbfbf8; border: 1px solid rgba(16, 21, 16, .1); border-radius: 16px; }
#ballr-contact .post-body table { width: 100%; font-size: 15px; line-height: 1.5; border-collapse: collapse; }
#ballr-contact .post-body th,
#ballr-contact .post-body td { padding: 13px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid rgba(16, 21, 16, .08); }
#ballr-contact .post-body thead th { color: #111712; font-weight: 700; background: #e5e7e1; }
#ballr-contact .post-body tbody tr:last-child td { border-bottom: 0; }
#ballr-contact .post-body tbody td:first-child { color: #111712; font-weight: 600; }
#ballr-contact .post-body .post-qa { margin: 0 0 12px; padding: 18px 22px; font-size: 16px; line-height: 1.65; background: #fbfbf8; border: 1px solid rgba(16, 21, 16, .1); border-radius: 14px; }
#ballr-contact .post-body .post-qa > strong:first-child { display: block; margin-bottom: 6px; font-size: 17px; }
#ballr-contact .post-body .post-qa > br:first-of-type { display: none; }
#ballr-contact .post-body .post-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2em; font-size: 0; }
#ballr-contact .post-body .post-links a { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; color: #111712; font-size: 15px; font-weight: 650; text-decoration: none; background: #fbfbf8; border: 1px solid rgba(16, 21, 16, .16); border-radius: 999px; transition: border-color .2s, background .2s; }
#ballr-contact .post-body .post-links a:first-child { color: #fff; background: #d65434; border-color: #d65434; }
#ballr-contact .post-body .post-links a:hover { border-color: rgba(16, 21, 16, .4); }
#ballr-contact .post-body .post-links a:first-child:hover { background: #ed6a47; border-color: #ed6a47; }

#ballr-contact .post-cta { color: #f5f0e7; background: radial-gradient(circle at 12% 0%, rgba(214, 84, 52, .22), transparent 40%), linear-gradient(135deg, #101610 0%, #1b2a20 100%); }
#ballr-contact .post-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
#ballr-contact .post-cta h2 { margin-bottom: 10px; color: #f5f0e7; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
#ballr-contact .post-cta p { margin: 0; color: rgba(245, 240, 231, .7); font-size: 16px; line-height: 1.6; }
#ballr-contact .post-cta__actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 12px; }
#ballr-contact .post-cta__ghost { color: #f5f0e7; border-color: rgba(247, 241, 231, .3); }
#ballr-contact .post-cta__ghost:hover { border-color: #f5f0e7; }

#ballr-contact .post-more { padding: 76px 0 96px; }
#ballr-contact .post-more__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
#ballr-contact .post-more__head h2 { margin: 0; color: #111712; font-size: 30px; letter-spacing: -.02em; }
#ballr-contact .post-more__head a { color: #b4432a; font-size: 15px; font-weight: 650; text-decoration: none; }
#ballr-contact .post-more__head a:hover { color: #d65434; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  #ballr-contact .post-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 780px; }
  #ballr-contact .post-aside { position: static; }
  #ballr-contact .post-toc { display: none; }
}
@media (max-width: 990px) {
  #ballr-contact .blog-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  #ballr-contact .blog-pulse { max-width: 440px; }
  #ballr-contact .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ballr-contact .blog-subscribe { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  #ballr-contact .post-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  #ballr-contact .blog-hero { padding: 120px 0 48px; }
  #ballr-contact .blog-tabs { margin-bottom: 26px; }
  #ballr-contact .blog-hero__copy > p { font-size: 16px; }
  #ballr-contact .blog-body { padding: 32px 0 72px; }
  #ballr-contact .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #ballr-contact .blog-subscribe { margin-top: 48px; padding: 26px 22px; }
  #ballr-contact .blog-subscribe__row { flex-direction: column; }
  #ballr-contact .post-hero { padding: 118px 0 44px; }
  #ballr-contact .post--has-cover .post-hero { padding-bottom: 96px; }
  #ballr-contact .post-cover { margin-top: -64px; }
  #ballr-contact .post-cover img { border-radius: 14px; }
  #ballr-contact .post-lead { font-size: 17px; }
  #ballr-contact .post-layout { padding-top: 40px; padding-bottom: 60px; }
  #ballr-contact .post-body { font-size: 17px; line-height: 1.75; }
  #ballr-contact .post-body h2 { font-size: 25px; }
  #ballr-contact .post-body th,
  #ballr-contact .post-body td { padding: 11px 14px; }
  #ballr-contact .post-more { padding: 56px 0 72px; }
  #ballr-contact .post-more__head { flex-direction: column; align-items: flex-start; }
  #ballr-contact .post-cta__inner { padding-top: 48px; padding-bottom: 48px; }
}
