/* =========================================================
   TGT LAYOUT SAFETY CSS
   ========================================================= */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.card-container,
.card-container *,
.sticker-grid,
.sticker-grid *,
#related-groups,
#related-groups *,
.tgt-avatar-wrap,
.tgt-card-avatar,
.tgt-ad-wrapper {
  box-sizing: border-box;
}

img,
video,
iframe,
ins.adsbygoogle,
.adsbygoogle {
  max-width: 100% !important;
}

.tgt-card-avatar img,
.tgt-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.card-container,
.sticker-grid,
#related-groups .grid {
  align-items: stretch;
}

.card-container > .card,
.sticker-grid > .sticker-card,
#related-groups .grid > .card {
  min-width: 0;
}

.tgt-ad-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* ==========================================
   WordPress Term Description Styling
   ========================================== */

.term-description {
  color: #374151;
  font-size: 16px;
  line-height: 1.8;
}

.term-description h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 2rem 0 1rem;
  color: #111827;
}

.term-description h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.75rem 0 1rem;
  color: #111827;
}

.term-description h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem;
  color: #111827;
}

.term-description h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
  color: #111827;
}

.term-description h5 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: #111827;
}

.term-description h6 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: #111827;
}

.term-description p {
  margin: 0 0 1rem;
  line-height: 1.8;
}

.term-description strong {
  font-weight: 700;
}

.term-description em {
  font-style: italic;
}

.term-description ul {
  list-style: disc;
  margin: 1rem 0;
  padding-left: 2rem;
}

.term-description ol {
  list-style: decimal;
  margin: 1rem 0;
  padding-left: 2rem;
}

.term-description li {
  margin: 0.5rem 0;
  line-height: 1.8;
}

.term-description blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

.term-description a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.term-description a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.term-description img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.term-description table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.term-description th,
.term-description td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.term-description th {
  background: #f9fafb;
  font-weight: 700;
}

.term-description hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.term-description code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.term-description pre {
  background: #111827;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  overflow: auto;
  margin: 1.5rem 0;
}

.term-description pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.term-description iframe,
.term-description video {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Infinite Category Marquee Animation */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
  will-change: transform;
}

.group\/marquee:hover .animate-marquee {
  animation-play-state: paused;
}
