/* ============================================================
   Today SEO World — Agency and tool category pages: About + FAQ
   File:   woodmart-child/assets/css/tsw-category.css
   Loaded: agency and tool category pages (inc/tsw-category.php)
   Prefix: tswcat-  (the FAQ looks the same as on the Agencies page)
   ============================================================ */

.tswcat {
	--tswcat-ink: #0f172a;
	--tswcat-text: #334155;
	--tswcat-muted: #64748b;
	--tswcat-line: #e2e8f0;
	--tswcat-blue: #1d4ed8;
	margin-top: 40px;
	font-family: var(--wd-text-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--tswcat-text);
}
.tswcat *, .tswcat *::before, .tswcat *::after { box-sizing: border-box; }
.tswcat h2, .tswcat h3, .tswcat h4, .tswcat summary { text-transform: none; }

/* About the category (the description, with any HTML block in it) */
.tswcat-about { padding: 28px 32px; background: #fff; border: 1px solid var(--tswcat-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.tswcat-prose { max-width: 860px; font-size: 15px; line-height: 1.7; color: var(--tswcat-text); overflow-wrap: break-word; }
.tswcat-prose > :first-child, .tswcat-prose .wpb_wrapper > :first-child { margin-top: 0; }
.tswcat-prose h2, .tswcat-prose h3, .tswcat-prose h4 { margin: 1.4em 0 .5em; font-family: var(--wd-title-font, inherit); font-weight: 800; line-height: 1.3; color: var(--tswcat-ink); }
.tswcat-prose h2 { font-size: clamp(20px, 2vw, 24px); }
.tswcat-prose h3 { font-size: 18px; }
.tswcat-prose h4 { font-size: 16px; }
.tswcat-prose p { margin: 0 0 1em; }
.tswcat-prose ul, .tswcat-prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.tswcat-prose li { margin-bottom: .35em; }
.tswcat-prose a { color: var(--tswcat-blue); text-decoration: underline; text-underline-offset: 2px; }
.tswcat-prose a:hover { text-decoration: none; }
.tswcat-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.tswcat-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 14px; }
.tswcat-prose th, .tswcat-prose td { padding: 10px 12px; border: 1px solid var(--tswcat-line); text-align: left; }
/* WPBakery rows inside an HTML block: no extra side margins */
.tswcat-prose .vc_row { margin-left: 0; margin-right: 0; }
.tswcat-prose .vc_column_container > .vc_column-inner { padding-left: 0; padding-right: 0; }
.tswcat-prose .wpb_content_element { margin-bottom: 0; }

/* FAQ — same look as the Agencies page */
.tswcat-faq-sec { margin-top: 40px; }
.tswcat-head { margin-bottom: 18px; }
.tswcat .tswcat-h2 { margin: 0 0 4px; font-family: var(--wd-title-font, inherit); font-size: clamp(21px, 2vw, 25px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--tswcat-ink); }
.tswcat-sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--tswcat-muted); }
.tswcat-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.tswcat-faq-item { background: #fff; border: 1px solid var(--tswcat-line); border-radius: 12px; }
.tswcat-faq-item[open] { border-color: #c7d7f7; }
.tswcat .tswcat-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; color: var(--tswcat-ink); }
.tswcat .tswcat-faq-item summary::-webkit-details-marker { display: none; }
.tswcat .tswcat-faq-item summary h3 { margin: 0; font-family: var(--wd-text-font, inherit); font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--tswcat-ink); }
.tswcat-chev { flex: none; color: var(--tswcat-muted); transition: transform .18s ease; }
.tswcat-faq-item[open] .tswcat-chev { transform: rotate(180deg); }
.tswcat .tswcat-faq-item summary:focus-visible { outline: 3px solid rgba(29, 78, 216, .45); outline-offset: 2px; border-radius: 12px; }
.tswcat-faq-a { padding: 0 16px 16px; font-size: 14px; line-height: 1.6; color: var(--tswcat-text); }
.tswcat-faq-a p { margin: 0 0 .7em; }
.tswcat-faq-a > :last-child { margin-bottom: 0; }
.tswcat-faq-a a { color: var(--tswcat-blue); text-decoration: underline; }
.tswcat-faq-a ul, .tswcat-faq-a ol { margin: 0 0 .7em; padding-left: 1.2em; }

@media (max-width: 760px) {
	.tswcat { margin-top: 32px; }
	.tswcat-about { padding: 20px 18px; }
	.tswcat-prose { font-size: 14.5px; }
	.tswcat-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.tswcat-chev { transition: none; }
}
