/*
Theme Name: Pixplet Tools Theme
Theme URI: https://www.pixplet.com/
Author: Digital zone
Author URI: https://www.pixplet.com/
Description: Custom WordPress theme for Pixplet Tools, a clean tools website for image, text, SEO and web utilities.
Version: 1.0.36
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pixplet
*/

:root {
    --pixplet-bg: #f8fafc;
    --pixplet-surface: #ffffff;
    --pixplet-text: #0f172a;
    --pixplet-muted: #64748b;
    --pixplet-line: #e2e8f0;
    --pixplet-soft: #f1f5f9;
    --pixplet-red: #eb0b26;
    --pixplet-red-dark: #c80820;
    --pixplet-red-soft: #fff1f3;
    --pixplet-radius: 6px;
    --pixplet-shadow: 0 18px 45px rgba(15, 23, 42, .07);
    --pixplet-shadow-soft: 0 10px 28px rgba(15, 23, 42, .055);
    --pixplet-container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(235, 11, 38, .065) 0, rgba(235, 11, 38, 0) 34rem), var(--pixplet-bg);
    color: var(--pixplet-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--pixplet-red-dark); text-decoration: none; }
a:hover { color: var(--pixplet-red); }
button, input, textarea, select { font: inherit; }

.pixplet-container {
    width: min(var(--pixplet-container), calc(100% - 80px));
    margin: 0 auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: static;
    z-index: 20;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(226, 232, 240, .95);
    backdrop-filter: blur(14px);
}
.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.pixplet-logo-image {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 1;
}
.pixplet-logo-img {
    display: block;
    width: auto;
    height: 50px;
    max-width: min(260px, 58vw);
    object-fit: contain;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    overflow-x: auto;
    padding: 6px 0;
}
.main-nav li { list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 11px 13px;
    border-radius: var(--pixplet-radius);
    color: #1f2937;
    font-size: 14px;
    font-weight: 760;
    line-height: 1;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
    background: var(--pixplet-red-soft);
    color: var(--pixplet-red-dark);
    transform: translateY(-1px);
    outline: none;
}
.main-nav .card-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex: 0 0 24px;
    border-radius: 6px;
}
.main-nav .card-icon svg {
    width: 15px;
    height: 15px;
}
.main-nav-label {
    display: inline-block;
}
.menu-toggle {
    display: none;
    align-items: center;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--pixplet-line);
    border-radius: var(--pixplet-radius);
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    cursor: pointer;
}

.hero {
    padding: 64px 0 38px;
    text-align: center;
}
.hero-grid {
    display: block;
    max-width: 1040px;
    margin: 0 auto;
}
.hero h1,
.page-hero h1,
.tool-header h1 {
    margin: 0 0 16px;
    color: #0b1220;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 850;
    text-wrap: balance;
}
.hero p,
.page-hero p,
.tool-description {
    color: #374151;
    font-size: 19px;
    max-width: 780px;
    margin: 0 auto 24px;
}
.search-panel {
    max-width: 980px;
    margin: 26px auto 0;
    padding: 10px;
    border: 1px solid var(--pixplet-line);
    border-radius: var(--pixplet-radius);
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
    text-align: left;
}
.search-panel h2,
.search-panel > p { display: none; }
.search-form {
    display: flex;
    gap: 12px;
    width: 100%;
    margin: 0;
}
.search-form input[type="search"],
.pixplet-tool-search {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border: 0;
    border-radius: var(--pixplet-radius);
    padding: 15px 20px;
    font-size: 20px;
    outline: none;
    background: transparent;
    color: var(--pixplet-text);
}
.search-form input[type="search"]:focus,
.pixplet-tool-search:focus {
    box-shadow: inset 0 0 0 2px rgba(235, 11, 38, .14);
}
.btn,
.search-form .btn,
.search-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 28px;
    border: 0;
    border-radius: var(--pixplet-radius);
    background: linear-gradient(135deg, var(--pixplet-red), var(--pixplet-red-dark));
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(235, 11, 38, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover,
.search-form .btn:hover,
.search-form button[type="submit"]:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(235, 11, 38, .22);
}
.search-results-live {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--pixplet-line);
    border-radius: var(--pixplet-radius);
    box-shadow: 0 22px 48px rgba(15, 23, 42, .16);
}
.search-results-live:empty { display: none; }
.search-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: var(--pixplet-radius);
    color: var(--pixplet-text);
}
.search-result-row:hover { background: #f3f4f6; color: var(--pixplet-text); }
.search-result-row strong { display: block; font-size: 16px; line-height: 1.2; }
.search-result-row span { color: var(--pixplet-muted); font-size: 13px; line-height: 1.35; }

.section { padding: 42px 0; }
.section-alt { background: transparent; }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}
.section-heading h2,
.content-box h2,
.faq-box h2,
.related-box h2 {
    margin: 0 0 8px;
    color: #0b1220;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 850;
}
.section-heading p {
    margin: 0;
    color: var(--pixplet-muted);
    max-width: 820px;
}
.tool-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.tool-grid.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-card,
.category-card,
.content-box,
.faq-box,
.related-box,
.sidebar-box,
.tool-shell,
.tool-rating-box,
.top-rated-tools-widget {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--pixplet-radius);
    box-shadow: var(--pixplet-shadow-soft);
}
.tool-card,
.category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 22px;
    color: var(--pixplet-text);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tool-card:hover,
.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(235, 11, 38, .28);
    box-shadow: 0 16px 34px rgba(235, 11, 38, .08);
    color: var(--pixplet-text);
}
.card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-grid;
    place-items: center;
    align-self: flex-start;
    margin: 0 0 14px;
    border-radius: var(--pixplet-radius);
    background: var(--pixplet-red-soft);
    border: 1px solid #ffd7dd;
    color: var(--pixplet-red);
}
.card-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tool-card h3,
.category-card h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -.018em;
    font-weight: 800;
}
.tool-card p,
.category-card p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.55;
}
.card-link {
    margin-top: auto;
    padding-top: 18px;
    color: var(--pixplet-red-dark);
    font-weight: 850;
}
.tool-card-rating {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    margin-top: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--pixplet-red-soft);
    color: var(--pixplet-red-dark);
    font-size: 13px;
    font-weight: 850;
}

.page-hero,
.tool-hero {
    padding: 34px 0 20px;
}
.page-hero h1,
.tool-header h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
}
.page-hero p,
.tool-description {
    max-width: 980px;
    margin: 10px 0 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 14px;
    color: var(--pixplet-muted);
    font-size: 14px;
}
.breadcrumbs a { color: var(--pixplet-red-dark); font-weight: 700; }
.breadcrumbs a:hover { color: var(--pixplet-red); }
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 970px) 300px;
    gap: 30px;
    align-items: stretch;
    padding: 20px 0 56px;
}
.content-main { min-width: 0; }
.sidebar {
    min-width: 0;
    display: grid;
    gap: 18px;
    align-self: stretch;
    align-content: start;
    position: relative;
}
.sidebar-sticky-ads {
    display: grid;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: 24px;
}
.tool-shell {
    padding: 24px;
    margin: 0 0 24px;
}
.tool-code-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}
.content-box,
.faq-box,
.related-box {
    padding: 30px 34px;
    margin: 24px 0;
}
.content-box > *:first-child,
.faq-box > *:first-child,
.related-box > *:first-child { margin-top: 0; }
.content-box > *:last-child,
.faq-box > *:last-child,
.related-box > *:last-child { margin-bottom: 0; }
.content-box p,
.content-box li,
.faq-box p,
.faq-box li {
    max-width: none;
    color: #334155;
}
.faq-item {
    padding: 18px 0;
    border-top: 1px solid #edf0f4;
}
.faq-item:first-of-type { border-top: 0; padding-top: 4px; }
.faq-item h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}
.faq-item p { margin: 0; color: #374151; }
.empty-state {
    padding: 28px;
    border: 1px dashed var(--pixplet-line);
    border-radius: var(--pixplet-radius);
    background: #fff;
    color: var(--pixplet-muted);
    text-align: center;
}
.archive-tools { padding: 24px 0 64px; }

.sidebar-box,
.top-rated-tools-widget { padding: 20px; }
.sidebar-box h2,
.top-rated-widget-head span {
    display: block;
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 850;
}
.top-rated-widget-head small {
    display: block;
    margin-top: -6px;
    color: var(--pixplet-muted);
    font-weight: 700;
}
.sidebar-list,
.top-rated-tools-widget ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.sidebar-list a,
.top-rated-tools-widget a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px;
    border-radius: var(--pixplet-radius);
    background: #f8fafc;
    color: #172033;
    font-weight: 800;
}
.sidebar-list a:hover,
.top-rated-tools-widget a:hover { background: var(--pixplet-red-soft); color: var(--pixplet-red-dark); }
.sidebar-list-main { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.sidebar-list .card-icon { width: 28px; height: 28px; min-width: 28px; border-radius: var(--pixplet-radius); margin: 0; }
.sidebar-list .card-icon svg { width: 16px; height: 16px; }
.top-rated-tools-widget a { display: block; }
.top-rated-meta { display: flex; gap: 7px; margin-top: 5px; color: var(--pixplet-muted); font-size: 13px; }
.top-rated-stars { color: var(--pixplet-red); }

.tool-rating-box {
    margin: 24px 0;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 20px;
    align-items: center;
    border-color: #ffd7dd;
    background: linear-gradient(135deg, #fff 0%, #fff7f8 100%);
}
.rating-title {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 850;
}
.rating-subtitle { margin: 4px 0 0; color: var(--pixplet-muted); font-size: 14px; }
.rating-actions { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rating-star {
    appearance: none;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 2px;
    transition: transform .15s ease, color .15s ease;
}
.rating-star:hover,
.rating-star:focus-visible,
.rating-star.is-active { color: var(--pixplet-red); }
.rating-star:hover,
.rating-star:focus-visible { transform: translateY(-1px) scale(1.06); outline: none; }
.rating-status { grid-column: 1 / -1; margin: -4px 0 0; color: #4b5563; font-size: 14px; }

.section-ad { padding: 18px 0; }
.ad-box {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}
.section-ad .ad-box { margin-bottom: 0; }
.ad-slot-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}
.ad-box-label {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
}
.pixplet-ad-frame {
    position: relative;
    width: var(--desktop-ad-width, 970px) !important;
    min-width: var(--desktop-ad-width, 970px) !important;
    max-width: var(--desktop-ad-width, 970px) !important;
    height: var(--desktop-ad-height, 250px) !important;
    min-height: var(--desktop-ad-height, 250px) !important;
    max-height: var(--desktop-ad-height, 250px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0;
    border-radius: 0 !important;
    background: #f8fafc;
    box-shadow: none;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
}
.pixplet-ad-device {
    width: var(--device-ad-width, 970px) !important;
    min-width: var(--device-ad-width, 970px) !important;
    max-width: var(--device-ad-width, 970px) !important;
    height: var(--device-ad-height, 250px) !important;
    min-height: var(--device-ad-height, 250px) !important;
    max-height: var(--device-ad-height, 250px) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
}
.pixplet-ad-device .pixplet-ad-code,
.pixplet-ad-device .pixplet-ad-placeholder {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}
.pixplet-ad-device .pixplet-ad-placeholder { background: #f8fafc; }
.pixplet-ad-device .pixplet-ad-code iframe,
.pixplet-ad-device .pixplet-ad-code img,
.pixplet-ad-device .pixplet-ad-code ins,
.pixplet-ad-device .pixplet-ad-code object,
.pixplet-ad-device .pixplet-ad-code embed,
.pixplet-ad-device .pixplet-ad-code svg,
.pixplet-ad-device .pixplet-ad-code canvas {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.pixplet-ad-device .pixplet-ad-code script,
.pixplet-ad-device .pixplet-ad-code style {
    display: none !important;
}

.pixplet-ad-device .pixplet-ad-code ins.adsbygoogle {
    width: 100% !important;
    height: 100% !important;
}
@media (min-width: 1321px) {
    .pixplet-ad-device--desktop { display: flex !important; }
}
@media (min-width: 721px) and (max-width: 1320px) {
    .pixplet-ad-frame {
        width: var(--tablet-ad-width, 728px) !important;
        min-width: var(--tablet-ad-width, 728px) !important;
        max-width: var(--tablet-ad-width, 728px) !important;
        height: var(--tablet-ad-height, 90px) !important;
        min-height: var(--tablet-ad-height, 90px) !important;
        max-height: var(--tablet-ad-height, 90px) !important;
    }
    .pixplet-ad-device--tablet { display: flex !important; }
}
@media (max-width: 720px) {
    .pixplet-ad-frame {
        width: var(--mobile-ad-width, 320px) !important;
        min-width: var(--mobile-ad-width, 320px) !important;
        max-width: var(--mobile-ad-width, 320px) !important;
        height: var(--mobile-ad-height, 100px) !important;
        min-height: var(--mobile-ad-height, 100px) !important;
        max-height: var(--mobile-ad-height, 100px) !important;
        transform: none !important;
    }
    .pixplet-ad-device--mobile { display: flex !important; }
}
@media (max-width: 350px) {
    .pixplet-ad-frame {
        width: calc(100vw - 40px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 40px) !important;
    }
}

.site-footer {
    margin-top: 0;
    padding: 34px 0 24px;
    background: #ffffff;
    color: var(--pixplet-text);
    border-top: 1px solid var(--pixplet-line);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.footer-logo-wrap {
    display: flex;
    justify-content: center;
}
.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 0;
    box-shadow: none;
}
.site-footer .footer-logo .pixplet-logo-img { height: 42px; max-width: 210px; }
.footer-text,
.site-footer h2 { display: none; }
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    width: 100%;
}
.footer-nav a {
    color: #334155;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}
.footer-nav a:hover { color: var(--pixplet-red); }
.footer-bottom {
    width: 100%;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--pixplet-line);
    color: #64748b;
    font-size: 13px;
}

.wp-block-image, .wp-caption { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 18px 18px 0; }
.alignright { float: right; margin: 0 0 18px 18px; }

@media (max-width: 1320px) {
    .pixplet-container { width: min(1180px, calc(100% - 48px)); }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; align-self: start; }
    .sidebar-sticky-ads { position: static; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: center; align-items: start; }
}

@media (max-width: 980px) {
    .tool-grid,
    .category-grid,
    .tool-grid.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-nav { gap: 8px 16px; }
}

@media (max-width: 720px) {
    .pixplet-container { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 66px; }
    .pixplet-logo-img { height: 40px; }
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 68px;
        z-index: 50;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--pixplet-line);
        border-radius: var(--pixplet-radius);
        box-shadow: var(--pixplet-shadow);
        white-space: normal;
        overflow: visible;
    }
    .main-nav.is-open { display: grid; }
    .main-nav a {
        justify-content: flex-start;
        min-height: 54px;
        padding: 10px;
        border: 1px solid var(--pixplet-line);
        background: #fff;
        white-space: normal;
    }
    .main-nav .card-icon {
        width: 30px;
        height: 30px;
        margin-right: 8px;
        flex-basis: 30px;
    }
    .main-nav .card-icon svg {
        width: 17px;
        height: 17px;
    }
    .main-nav-label {
        min-width: 0;
        overflow-wrap: anywhere;
        line-height: 1.15;
    }
    .hero { padding: 38px 0 24px; text-align: left; }
    .hero h1 { font-size: clamp(31px, 10vw, 42px); margin-left: 0; }
    .hero p { font-size: 16px; margin-left: 0; }
    .search-panel { margin-top: 20px; }
    .search-form { display: grid; }
    .search-form input[type="search"], .pixplet-tool-search { font-size: 17px; min-height: 52px; padding: 12px; }
    .btn, .search-form .btn, .search-form button[type="submit"] { min-height: 52px; }
    .section-heading { display: block; }
    .tool-grid,
    .category-grid,
    .tool-grid.compact-grid,
    .sidebar { grid-template-columns: 1fr; }
    .sidebar-sticky-ads { grid-template-columns: 1fr; justify-content: center; }
    .content-box,
    .faq-box,
    .related-box,
    .tool-shell { padding: 20px; }
    .tool-rating-box { grid-template-columns: 1fr; }
    .rating-actions { justify-content: flex-start; }
}


@media (max-width: 720px) {
    .site-footer { padding: 28px 0 22px; }
    .site-footer .footer-logo .pixplet-logo-img { height: 38px; }
    .footer-nav { gap: 7px 14px; }
    .footer-nav a { font-size: 13px; }
}


/* Layout and component refinements */
.home-intro-box {
    max-width: 980px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 38px 42px;
}
.home-intro-box h2 {
    margin-left: auto;
    margin-right: auto;
}
.home-intro-box p {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.home-intro-box p + p { margin-top: 18px; }

.not-found-search-box {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 34px;
}
.not-found-search-box .search-form {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.not-found-search-box .btn-primary { margin-top: 18px; }

.tool-card,
.category-card,
.content-box,
.faq-box,
.related-box,
.sidebar-box,
.tool-shell,
.tool-rating-box,
.top-rated-tools-widget,
.search-panel,
.pixplet-ad-frame {
    border-color: rgba(214, 222, 233, .95);
}

.tool-card h3,
.category-card h3,
.section-heading h2,
.content-box h2,
.faq-box h2,
.related-box h2,
.sidebar-box h2,
.top-rated-widget-head span {
    letter-spacing: -.025em;
}

.section-heading p,
.tool-card p,
.category-card p,
.content-box p,
.faq-box p,
.footer-text {
    line-height: 1.7;
}

@media (max-width: 720px) {
    .home-intro-box,
    .not-found-search-box {
        padding: 24px 20px;
        text-align: left;
    }
    .not-found-search-box .search-form,
    .home-intro-box p {
        max-width: none;
    }
}

/* Final layout polish */
.site-footer .footer-inner {
    justify-content: center;
    text-align: center;
}
.site-footer .footer-nav-main {
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.hero-grid {
    max-width: var(--pixplet-container);
}
.home .hero h1 {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .pixplet-container,
.tool-hero .pixplet-container,
.page-content-section > .pixplet-container {
    width: min(var(--pixplet-container), calc(100% - 80px)) !important;
    max-width: var(--pixplet-container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero p,
.page-hero p,
.tool-description,
.section-heading p,
.home-intro-box p,
.not-found-search-box p,
.content-box > p,
.faq-box > p,
.related-box > p {
    width: 100%;
    max-width: 100% !important;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: pretty;
}
.hero p {
    max-width: 1120px !important;
    margin-left: auto;
    margin-right: auto;
}
.page-hero p,
.tool-description {
    display: block;
    margin-left: 0;
    margin-right: 0;
}
.section-heading,
.section-heading > div,
.home-intro-box,
.not-found-search-box,
.content-box,
.faq-box,
.related-box {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
}

.page-content-section {
    padding-top: 24px;
}
.page-content-box {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
}
.page-content-box > h2:first-child,
.page-content-box > p:first-child {
    margin-top: 0;
}

.main-nav .card-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex: 0 0 18px;
    margin: 0 7px 0 0;
    padding: 0;
    display: inline-grid;
    place-items: center;
    align-self: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--pixplet-red);
}
.main-nav .card-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}
.main-nav a {
    gap: 0;
}

@media (max-width: 1320px) {
    .page-hero .pixplet-container,
    .tool-hero .pixplet-container,
    .page-content-section > .pixplet-container {
        width: min(1180px, calc(100% - 48px)) !important;
        max-width: 1180px !important;
    }
}

@media (max-width: 720px) {
    .pixplet-container,
    .page-hero .pixplet-container,
    .tool-hero .pixplet-container,
    .page-content-section > .pixplet-container {
        width: min(100% - 40px, 1180px) !important;
    }
    .main-nav {
        left: 20px;
        right: 20px;
    }
    .main-nav a {
        justify-content: center;
        text-align: center;
        gap: 7px;
    }
    .main-nav .card-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        flex: 0 0 18px;
        margin: 0;
    }
    .main-nav .card-icon svg {
        width: 17px;
        height: 17px;
    }
    .main-nav-label {
        text-align: center;
    }
    .home .hero h1 {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .page-content-box {
        max-width: 100% !important;
        padding: 22px 20px;
    }
}


/* Single tool related tools spacing polish */
.single-tool .related-box h2 {
    margin-bottom: 22px;
}
.single-tool .related-box .tool-grid {
    margin-top: 0;
}
@media (max-width: 1320px) {
    .single-tool .content-layout {
        row-gap: 18px;
    }
    .single-tool .related-box {
        margin-bottom: 0;
    }
}
@media (max-width: 720px) {
    .single-tool .related-box h2 {
        margin-bottom: 18px;
    }
    .single-tool .content-layout {
        row-gap: 16px;
    }
}
