
/* ==========================================
   TECHZEHN — AI TOOLS
   Gemini preview / shared tool design
   ========================================== */

.tz-ai-page {
    direction: rtl;
    font-family: "Estedad", sans-serif;
    color: #17243b;
    background: #f7f9fc;
    min-height: 100vh;
    padding: 30px 0 80px;
}

.tz-ai-page *,
.tz-ai-page *::before,
.tz-ai-page *::after {
    box-sizing: border-box;
}

.tz-ai-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* Breadcrumb */

.tz-ai-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
    color: #718096;
    font-size: 13px;
}

.tz-ai-breadcrumb a {
    color: #52647d;
    text-decoration: none;
}

.tz-ai-breadcrumb a:hover {
    color: #1877f2;
}

/* Hero */

.tz-ai-hero {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    padding: 36px 40px 38px;
    box-shadow: 0 12px 40px rgba(25, 46, 76, .045);
}

.tz-ai-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.tz-ai-hero__identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.tz-ai-hero__logo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    display: grid;
    place-items: center;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    font-size: 42px;
    color: #1877f2;
}

.tz-ai-hero__logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.tz-ai-hero__heading {
    min-width: 0;
}

.tz-ai-hero__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #697b93;
    font-size: 13px;
    font-weight: 500;
}

.tz-ai-hero h1 {
    margin: 0;
    color: #16253e;
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.35;
    font-weight: 800;
}

/* Reserved for the real JetEngine like widget */

.tz-ai-hero__likes {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 64px;
}

/* Description */

.tz-ai-hero__description {
    max-width: 790px;
    margin: 26px 0 22px;
    color: #526178;
    font-size: 15px;
    line-height: 2.15;
}

/* Feature chips */

.tz-ai-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tz-ai-hero__features span {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid #e5ebf3;
    border-radius: 9px;
    background: #f7f9fc;
    color: #475a74;
    font-size: 12px;
    line-height: 1.8;
}

/* Buttons */

.tz-ai-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tz-ai-page .tz-ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 11px 25px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.tz-ai-page .tz-ai-button--primary {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.tz-ai-page .tz-ai-button--primary:hover {
    background: #0865d7;
    border-color: #0865d7;
    color: #fff;
    transform: translateY(-1px);
}

.tz-ai-page .tz-ai-button--secondary {
    background: #fff;
    border-color: #d9e2ee;
    color: #263b58;
}

.tz-ai-page .tz-ai-button--secondary:hover {
    background: #f3f7ff;
    border-color: #1877f2;
    color: #1877f2;
}

.tz-ai-page .tz-ai-button:focus-visible,
.tz-ai-breadcrumb a:focus-visible {
    outline: 3px solid #80b7ff;
    outline-offset: 3px;
}

/* Temporary tutorial section */

.tz-ai-preview-placeholder {
    margin-top: 28px;
    padding: 32px 40px;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
}

.tz-ai-preview-placeholder h2 {
    margin: 0 0 14px;
    color: #17243b;
    font-size: 23px;
}

.tz-ai-preview-placeholder p {
    margin: 0;
    color: #526178;
    line-height: 2;
}

/* Tablet */

@media (max-width: 900px) {
    .tz-ai-hero {
        padding: 30px;
    }

    .tz-ai-hero__logo {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .tz-ai-page {
        padding: 20px 0 50px;
    }

    .tz-ai-container {
        width: calc(100% - 28px);
    }

    .tz-ai-breadcrumb {
        margin-bottom: 18px;
        font-size: 12px;
    }

    .tz-ai-hero {
        padding: 22px 18px 24px;
        border-radius: 17px;
    }

    .tz-ai-hero__top {
        gap: 10px;
    }

    .tz-ai-hero__identity {
        gap: 12px;
    }

    .tz-ai-hero__logo {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 14px;
    }

    .tz-ai-hero__logo-image {
        padding: 8px;
    }

    .tz-ai-hero__eyebrow {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .tz-ai-hero h1 {
        font-size: 28px;
    }

    .tz-ai-hero__likes {
        min-width: 40px;
        min-height: 48px;
    }

    .tz-ai-hero__description {
        margin: 22px 0 18px;
        font-size: 13px;
        line-height: 2.1;
    }

    .tz-ai-hero__features {
        gap: 7px;
        margin-bottom: 24px;
    }

    .tz-ai-hero__features span {
        padding: 6px 10px;
        font-size: 11px;
    }

    .tz-ai-hero__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .tz-ai-page .tz-ai-button {
        padding: 11px 8px;
        min-height: 48px;
        gap: 6px;
        font-size: 12px;
    }

    .tz-ai-preview-placeholder {
        padding: 24px 20px;
    }

    .tz-ai-preview-placeholder h2 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tz-ai-page .tz-ai-button {
        transition: none;
    }
}

/* ========================================
   AI Tools — Capabilities Section
   ======================================== */

.tz-ai-page .tz-ai-capabilities {
    margin-block: 48px 64px;
}

.tz-ai-page .tz-ai-section-heading {
    max-width: 760px;
    margin-bottom: 28px;
    text-align: right;
}

.tz-ai-page .tz-ai-section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #1877f2;
    font-size: 13px;
    font-weight: 700;
}

.tz-ai-page .tz-ai-section-heading h2 {
    margin: 0 0 12px;
    color: #172b4d;
    font-size: clamp(23px, 2.5vw, 30px);
    font-weight: 800;
    line-height: 1.65;
}

.tz-ai-page .tz-ai-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 2;
}

.tz-ai-page .tz-ai-capabilities__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tz-ai-page .tz-ai-capability-card {
    min-width: 0;
    padding: 26px 24px;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(23, 43, 77, 0.035);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.tz-ai-page .tz-ai-capability-card:hover {
    border-color: #c9dcf8;
    box-shadow: 0 12px 28px rgba(23, 43, 77, 0.075);
    transform: translateY(-3px);
}

.tz-ai-page .tz-ai-capability-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: #1877f2;
    background: #edf5ff;
    border-radius: 13px;
    font-size: 23px;
    line-height: 1;
}


.tz-ai-page .tz-ai-capability-card h3 {
    margin: 0 0 10px;
    color: #172b4d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}


.tz-ai-page .tz-ai-capability-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 2;
}

/* Tablet */
@media (max-width: 1024px) {
    .tz-ai-page .tz-ai-capabilities__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tz-ai-page .tz-ai-capability-card {
        padding: 23px 21px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .tz-ai-page .tz-ai-capabilities {
        margin-block: 34px 48px;
    }

    .tz-ai-page .tz-ai-section-heading {
        margin-bottom: 22px;
    }

    .tz-ai-page .tz-ai-section-heading h2 {
        font-size: 22px;
    }

    .tz-ai-page .tz-ai-section-heading p {
        font-size: 14px;
    }

    .tz-ai-page .tz-ai-capabilities__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .tz-ai-page .tz-ai-capability-card {
        padding: 21px 20px;
        border-radius: 15px;
    }

    .tz-ai-page .tz-ai-capability-card__icon {
        width: 42px;
        height: 42px;
        margin-bottom: 13px;
        font-size: 21px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tz-ai-page .tz-ai-capability-card {
        transition: none;
    }

    .tz-ai-page .tz-ai-capability-card:hover {
        transform: none;
    }
}


/* Gemini preview — header aligned with content */

body.tz-article-page:has(.tz-ai-page) {
    background: #f5f8fc;
}

body.tz-article-page:has(.tz-ai-page) .tz-article-header {
    position: relative;
    z-index: 10;

    width: min(1180px, calc(100% - 40px));
    max-width: none;
    margin: 20px auto 0;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(20, 35, 60, 0.045);
}

body.tz-article-page:has(.tz-ai-page) .tz-article-header::before {
    content: none;
}

body.tz-article-page:has(.tz-ai-page) .tz-ai-page {
    background: #f5f8fc;
}

@media (max-width: 600px) {
    body.tz-article-page:has(.tz-ai-page) .tz-article-header {
        width: calc(100% - 28px);
        margin-top: 12px;
    }
}

/* Gemini — liked heart color */

.tz-ai-page .jet-data-store-link.in-store i,
.tz-ai-page .jet-data-store-link.in-store svg,
.tz-ai-page .jet-data-store-link.is-added i,
.tz-ai-page .jet-data-store-link.is-added svg {
    color: #e53935 !important;
    fill: #e53935 !important;
}

/* Gemini — like counter card */

.tz-ai-page .tz-ai-hero__likes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 88px;
    min-width: 88px;
    min-height: 88px;
    padding: 12px 8px;

    background: #ffffff;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    box-sizing: border-box;
}

.tz-ai-page .tz-ai-hero__likes .jet-data-store-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    line-height: 1;
}

.tz-ai-page .tz-ai-hero__likes .jet-engine-data-post-count {
    display: block;
    width: 100%;
    margin: 7px 0 0;
    text-align: center;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 600;
    color: #263b58;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .tz-ai-page .tz-ai-hero__likes {
        width: 68px;
        min-width: 68px;
        min-height: 68px;
        padding: 9px 6px;
        border-radius: 13px;
    }

    .tz-ai-page .tz-ai-hero__likes .jet-engine-data-post-count {
        font-size: 12px;
        margin-top: 5px;
    }
}

/* Gemini — balanced heart and count */

.tz-ai-page .tz-ai-hero__likes .jet-data-store-link {
    font-size: 24px !important;
}

.tz-ai-page .tz-ai-hero__likes .jet-data-store-link i,
.tz-ai-page .tz-ai-hero__likes .jet-data-store-link svg {
    font-size: 24px !important;
    width: 24px;
    height: 24px;
}

.tz-ai-page .tz-ai-hero__likes .jet-engine-data-post-count {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    direction: ltr;
    unicode-bidi: isolate;
}

/* Gemini — Persian like count display */

.tz-ai-page .tz-ai-hero__likes .jet-engine-data-post-count {
    display: none !important;
}

.tz-ai-page .tz-ai-hero__likes .tz-ai-likes-persian-count {
    display: block;
    width: 100%;
    margin: 7px 0 0;
    text-align: center;
    font-family: "Estedad", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #263b58;
}

@media (max-width: 600px) {
    .tz-ai-page .tz-ai-hero__likes .tz-ai-likes-persian-count {
        margin-top: 5px;
        font-size: 12px;
    }
}


/* AI Tools — Unified Heading Sizes */

/* Main page title: Gemini */
.tz-ai-page h1 {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 800;
}

/* Main section titles */
.tz-ai-page h2 {
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
}

/* Card and subsection titles */
.tz-ai-page h3 {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 767px) {
    .tz-ai-page h1 {
        font-size: 26px;
    }

    .tz-ai-page h2 {
        font-size: 20px;
    }

    .tz-ai-page h3 {
        font-size: 16px;
    }
}

/* AI Tools — Capabilities Section Heading */

.tz-ai-page .tz-ai-capabilities .tz-ai-section-heading h2 {
    font-size: 21px;
    line-height: 1.6;
    font-weight: 700;
}

@media (max-width: 767px) {
    .tz-ai-page .tz-ai-capabilities .tz-ai-section-heading h2 {
        font-size: 19px;
        line-height: 1.65;
    }
}

/* AI Tools — Related Articles */

.tz-ai-page .tz-ai-related {
    margin-block: 48px;
}

.tz-ai-page .tz-ai-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.tz-ai-page .tz-ai-related-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tz-ai-page .tz-ai-related-card:hover {
    border-color: #b8d7ff;
    box-shadow: 0 8px 24px rgba(23, 43, 77, .07);
}

.tz-ai-page .tz-ai-related-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tz-ai-page .tz-ai-related-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.tz-ai-page .tz-ai-related-card h3 {
    margin: 0;
    padding: 16px;
    color: #172b4d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
}

.tz-ai-page .tz-ai-related-card a:focus-visible {
    outline: 3px solid #1877f2;
    outline-offset: -3px;
    border-radius: 16px;
}

@media (max-width: 991px) {
    .tz-ai-page .tz-ai-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tz-ai-page .tz-ai-related {
        margin-block: 32px;
    }

    .tz-ai-page .tz-ai-related__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tz-ai-page .tz-ai-related-card img {
        height: 190px;
    }
}


/* AI Tools — Related Section Alignment */

.tz-ai-page .tz-ai-related {
    width: min(1180px, calc(100% - 40px));
    max-width: 100%;
    margin: 48px auto;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .tz-ai-page .tz-ai-related {
        width: calc(100% - 32px);
        margin: 32px auto;
    }
}


/* AI Tools — Tutorial Steps */

.tz-ai-page .tz-ai-tutorial {
    width: min(1180px, calc(100% - 40px));
    max-width: 100%;
    margin: 48px auto;
    box-sizing: border-box;
}

.tz-ai-page .tz-ai-tutorial__steps {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.tz-ai-page .tz-ai-tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 16px;
    box-sizing: border-box;
}

.tz-ai-page .tz-ai-tutorial-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eaf3ff;
    color: #1877f2;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.tz-ai-page .tz-ai-tutorial-step__content {
    flex: 1;
    min-width: 0;
}

.tz-ai-page .tz-ai-tutorial-step h3 {
    margin: 0 0 8px;
    color: #172b4d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.tz-ai-page .tz-ai-tutorial-step p {
    margin: 0;
    color: #52647b;
    font-size: 14px;
    line-height: 2;
}

@media (max-width: 600px) {
    .tz-ai-page .tz-ai-tutorial {
        width: calc(100% - 32px);
        margin: 32px auto;
    }

    .tz-ai-page .tz-ai-tutorial-step {
        gap: 12px;
        padding: 16px;
        border-radius: 14px;
    }

    .tz-ai-page .tz-ai-tutorial-step__number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .tz-ai-page .tz-ai-tutorial-step h3 {
        font-size: 15px;
    }

    .tz-ai-page .tz-ai-tutorial-step p {
        font-size: 13px;
    }
}


/* AI Tools — Hero Categories & Tags */

.tz-ai-page .tz-ai-hero__taxonomy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 22px 0;
    padding: 18px 0;
    border-top: 1px solid #e5eaf1;
    border-bottom: 1px solid #e5eaf1;
}

.tz-ai-page .tz-ai-hero__taxonomy-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tz-ai-page .tz-ai-hero__taxonomy-label {
    color: #52647b;
    font-size: 13px;
    font-weight: 700;
    margin-left: 6px;
}

.tz-ai-page .tz-ai-hero__taxonomy-group a {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #e2eaf5;
    border-radius: 8px;
    background: #f4f8ff;
    color: #1877f2;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.tz-ai-page .tz-ai-hero__taxonomy-group a:hover {
    background: #eaf3ff;
    border-color: #b8d7ff;
}

.tz-ai-page .tz-ai-hero__taxonomy-group a:focus-visible {
    outline: 2px solid #1877f2;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .tz-ai-page .tz-ai-hero__taxonomy {
        margin: 18px 0;
        padding: 14px 0;
        gap: 10px;
    }

    .tz-ai-page .tz-ai-hero__taxonomy-label {
        font-size: 12px;
    }

    .tz-ai-page .tz-ai-hero__taxonomy-group a {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* AI Tools — Category Heading */

.tz-ai-page .tz-ai-hero__taxonomy-heading {
    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* AI Tools — Hero Social Links */

.tz-ai-page .tz-ai-hero__social {
    margin: 20px 0;
}

.tz-ai-page .tz-ai-hero__social-title {
    margin-bottom: 12px;
    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.tz-ai-page .tz-ai-hero__social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tz-ai-page .tz-ai-hero__social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e2eaf5;
    border-radius: 12px;
    background: #f4f8ff;
    color: #1877f2;
    font-size: 19px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.tz-ai-page .tz-ai-hero__social-links a:hover {
    background: #eaf3ff;
    border-color: #b8d7ff;
}

.tz-ai-page .tz-ai-hero__social-links a:focus-visible {
    outline: 2px solid #1877f2;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .tz-ai-page .tz-ai-hero__social {
        margin: 16px 0;
    }

    .tz-ai-page .tz-ai-hero__social-links {
        gap: 8px;
    }

    .tz-ai-page .tz-ai-hero__social-links a {
        width: 38px;
        height: 38px;
        font-size: 17px;
        border-radius: 10px;
    }
}
/* AI tool hero: actions, taxonomy and social links on one aligned row */
.tz-ai-page .tz-ai-hero__info-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 18px;
    margin-top: 24px;
    min-width: 0;
}
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__actions,
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__taxonomy,
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__social {
    margin: 0;
    padding: 0;
    border: 0;
    width: auto;
    min-width: 0;
}
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__taxonomy,
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__social {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__taxonomy-heading,
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__social-title {
    margin: 0;
    white-space: nowrap;
}
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__taxonomy-group,
.tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}
@media (max-width: 1300px) {
    .tz-ai-page .tz-ai-hero__info-row {
        flex-wrap: wrap;
        gap: 14px 20px;
    }
}
@media (max-width: 600px) {
    .tz-ai-page .tz-ai-hero__info-row {
        align-items: flex-start;
        gap: 16px;
    }
    .tz-ai-page .tz-ai-hero__info-row .tz-ai-hero__actions {
        flex-wrap: wrap;
        width: 100%;
    }
}

/* AI Tool Hero — Compact Inline Metadata */

.tz-ai-page .tz-ai-hero__taxonomy,
.tz-ai-page .tz-ai-hero__social {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.tz-ai-page .tz-ai-hero__taxonomy-heading,
.tz-ai-page .tz-ai-hero__social-title {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: #8290a6;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.tz-ai-page .tz-ai-hero__taxonomy-group,
.tz-ai-page .tz-ai-hero__social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.tz-ai-page .tz-ai-hero__taxonomy-group a {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 6px 9px;
}

.tz-ai-page .tz-ai-hero__social-links a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 15px;
}

@media (max-width: 767px) {
    .tz-ai-page .tz-ai-hero__taxonomy,
    .tz-ai-page .tz-ai-hero__social {
        flex-wrap: wrap;
    }
}

/* AI Tools — Elementor Article Content */

.tz-ai-page .tz-ai-article {
    margin: 32px 0 40px;
    padding: 30px 34px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
}

.tz-ai-page .tz-ai-article__content {
    width: 100%;
    min-width: 0;
    color: #334155;
    font-size: 15px;
    line-height: 2.1;
    overflow-wrap: anywhere;
}

.tz-ai-page .tz-ai-article__content h2 {
    margin: 36px 0 14px;
    color: #172b4d;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 800;
    line-height: 1.7;
}

.tz-ai-page .tz-ai-article__content h2:first-child {
    margin-top: 0;
}

.tz-ai-page .tz-ai-article__content h3 {
    margin: 26px 0 10px;
    color: #253d60;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
}

.tz-ai-page .tz-ai-article__text {
    margin: 0 0 16px;
}

.tz-ai-page .tz-ai-article__text p {
    margin: 0 0 14px;
    line-height: 2.1;
}

.tz-ai-page .tz-ai-article__text p:last-child {
    margin-bottom: 0;
}

.tz-ai-page .tz-ai-article__text ul,
.tz-ai-page .tz-ai-article__text ol {
    margin: 12px 0 20px;
    padding-right: 24px;
    padding-left: 0;
}

.tz-ai-page .tz-ai-article__text li {
    margin-bottom: 9px;
    line-height: 2;
}

.tz-ai-page .tz-ai-article__text a {
    color: #1877f2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tz-ai-page .tz-ai-article__text a:hover {
    color: #0d57b5;
}

.tz-ai-page .tz-ai-article__text a:focus-visible {
    outline: 2px solid #1877f2;
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .tz-ai-page .tz-ai-article {
        margin: 22px 0 30px;
        padding: 22px 18px;
        border-radius: 14px;
    }

    .tz-ai-page .tz-ai-article__content {
        font-size: 14px;
        line-height: 2;
    }

    .tz-ai-page .tz-ai-article__content h2 {
        margin: 28px 0 12px;
        font-size: 19px;
    }

    .tz-ai-page .tz-ai-article__content h3 {
        margin: 22px 0 9px;
        font-size: 16px;
    }
}

/* AI Tool Hero — Compact Website Button */

.tz-ai-page .tz-ai-hero__actions .tz-ai-button--primary {
    padding: 9px 15px;
    min-height: 36px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 9px;
    white-space: nowrap;
}

/* =========================================
   AI Tools — Similar Tools
   ========================================= */

.tz-ai-similar-tools {
    margin-block: 28px 36px;
    direction: rtl;
}

.tz-ai-similar-title {
    margin: 0 0 22px;
    color: #172b4d;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.7;
    text-align: right;
}

.tz-ai-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tz-ai-similar-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 108px;
    padding: 16px;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: #fff;
    color: #25354b;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(20, 40, 70, 0.035);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.tz-ai-similar-card:hover {
    border-color: #1877f2;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.10);
    transform: translateY(-2px);
    color: #1877f2;
}

.tz-ai-similar-card:focus-visible {
    outline: 3px solid #1877f2;
    outline-offset: 3px;
}

.tz-ai-similar-image {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    border-radius: 10px;
}

.tz-ai-similar-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 1024px) {
    .tz-ai-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .tz-ai-similar-tools {
        margin-block: 24px 30px;
    }

    .tz-ai-similar-title {
        margin-bottom: 16px;
        font-size: 19px;
    }

    .tz-ai-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tz-ai-similar-card {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        min-height: 150px;
        padding: 14px 10px;
        text-align: center;
    }

    .tz-ai-similar-image {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .tz-ai-similar-name {
        font-size: 12px;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tz-ai-similar-card {
        transition: none;
    }

    .tz-ai-similar-card:hover {
        transform: none;
    }
}

/* =========================================
   AI Tool — Main Content + Sidebar Layout
   ========================================= */

.tz-ai-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 24px;
    align-items: start;
    width: 100%;
    margin-block: 28px 36px;
    direction: rtl;
}

.tz-ai-content-main,
.tz-ai-content-sidebar {
    min-width: 0;
}

.tz-ai-content-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tz-ai-content-sidebar {
    min-height: 320px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 16px;
}

.tz-ai-content-main .tz-ai-article,
.tz-ai-content-main .tz-ai-similar-tools {
    width: 100%;
    max-width: none;
    margin: 0;
}

.tz-ai-content-main .tz-ai-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Tablet */
@media (max-width: 1024px) {
    .tz-ai-content-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .tz-ai-content-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-block: 24px 30px;
    }

    .tz-ai-content-main {
        gap: 20px;
    }

    .tz-ai-content-sidebar {
        min-height: 180px;
        padding: 16px;
    }

    .tz-ai-content-main .tz-ai-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* AI Tool — Unified Right Column Card */

.tz-ai-content-main {
    display: block;
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-radius: 16px;
    overflow: hidden;
}

.tz-ai-content-main .tz-ai-article {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tz-ai-content-main .tz-ai-similar-tools {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px;
    background: transparent;
    border: 0;
    border-top: 1px solid #e4eaf2;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 767px) {
    .tz-ai-content-main .tz-ai-similar-tools {
        padding: 16px;
    }
}

/* =========================================
   AI Similar Tools — Compact Responsive Grid
   ========================================= */

/* Desktop: 4 columns */
.tz-ai-content-main .tz-ai-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tz-ai-content-main .tz-ai-similar-card {
    min-width: 0;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.tz-ai-content-main .tz-ai-similar-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tz-ai-content-main .tz-ai-similar-name {
    font-size: 12px;
    line-height: 1.6;
}

.tz-ai-content-main .tz-ai-similar-title {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .tz-ai-content-main .tz-ai-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .tz-ai-content-main .tz-ai-similar-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .tz-ai-content-main .tz-ai-similar-card {
        padding: 10px 12px;
    }

    .tz-ai-content-main .tz-ai-similar-image {
        width: 42px;
        height: 42px;
    }

    .tz-ai-content-main .tz-ai-similar-name {
        font-size: 12px;
    }

    .tz-ai-content-main .tz-ai-similar-title {
        font-size: 16px;
    }
}

/* AI Tool Hero — Mobile Alignment */
@media (max-width: 767px) {

    /* Full-width website button */
    .tz-ai-hero__actions {
        width: 100%;
        display: flex;
    }

    .tz-ai-hero__actions .tz-ai-button {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }

    /* Center taxonomy and social sections */
    .tz-ai-hero__taxonomy,
    .tz-ai-hero__social {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .tz-ai-hero__taxonomy-heading,
    .tz-ai-hero__social-title {
        text-align: center;
    }

    /* Keep tags on one horizontal line */
    .tz-ai-hero__taxonomy-group {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tz-ai-hero__taxonomy-group::-webkit-scrollbar {
        display: none;
    }

    .tz-ai-hero__taxonomy-group a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Keep social icons in one row */
    .tz-ai-hero__social-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
    }
}

/* AI Tool — Unified Section Heading Sizes */

.tz-ai-content-main .tz-ai-article__content h2 {
    font-size: 18px;
    line-height: 1.7;
    font-weight: 700;
}

@media (max-width: 767px) {
    .tz-ai-content-main .tz-ai-article__content h2 {
        font-size: 16px;
    }
}


/* =========================================
   AI Tool — Latest Articles Sidebar
   ========================================= */

.tz-ai-sidebar-latest {
    width: 100%;
    min-width: 0;
    margin-top: 24px;
}

.tz-ai-sidebar-latest__title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    color: #223247;
    text-align: right;
}

.tz-ai-sidebar-latest__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tz-ai-sidebar-latest__card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    background: #f8fafd;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.tz-ai-sidebar-latest__card:hover {
    background: #f0f6ff;
    border-color: #c8daf4;
}

.tz-ai-sidebar-latest__card:focus-visible {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}

.tz-ai-sidebar-latest__image {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: cover;
    border-radius: 9px;
}

.tz-ai-sidebar-latest__name {
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.9;
    color: #223247;
    text-align: right;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

@media (max-width: 767px) {
    .tz-ai-sidebar-latest {
        margin-top: 20px;
    }

    .tz-ai-sidebar-latest__title {
        font-size: 16px;
    }

    .tz-ai-sidebar-latest__image {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }
}

/* AI Sidebar — White Article Cards */

.tz-ai-sidebar-latest__card {
    background: #ffffff;
    border: 1px solid #e4eaf2;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tz-ai-sidebar-latest__card:hover {
    background: #f8fbff;
    border-color: #bcd5fa;
    box-shadow: 0 3px 12px rgba(24, 119, 242, 0.06);
}

/* AI Sidebar — Match Similar Tools Hover */

.tz-ai-sidebar-latest__card,
.tz-ai-sidebar-latest__card:hover {
    background: #ffffff;
}

.tz-ai-sidebar-latest__card:hover {
    border-color: #bcd5fa;
    box-shadow: 0 3px 12px rgba(24, 119, 242, 0.06);
}

/* AI Tool — Final Column Alignment & Footer Spacing */

@media (min-width: 1025px) {

    .tz-ai-content-layout {
        align-items: stretch;
        margin-bottom: 12px;
    }

    .tz-ai-content-sidebar {
        min-height: 0;
        height: auto;
        align-self: stretch;
    }

    .tz-ai-content-main {
        height: auto;
        align-self: start;
    }
}

/* Reduce spacing below content on all screens */
.tz-ai-page {
    padding-bottom: 12px;
}

@media (max-width: 767px) {
    .tz-ai-content-layout {
        margin-bottom: 12px;
    }
}

/* AI Tool — Suggested Reading Card */

.tz-ai-reading-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 26px 0;
    padding: 14px;
    background: #f7faff;
    border: 1px solid #e1eaf5;
    border-radius: 14px;
    text-decoration: none;
    color: #172b4d;
    transition: background .2s ease, border-color .2s ease;
}

.tz-ai-reading-card:hover {
    background: #eef5ff;
    border-color: #b7d4f8;
}

.tz-ai-reading-card__image {
    flex: 0 0 116px;
    width: 116px;
    height: 86px;
    overflow: hidden;
    border-radius: 9px;
    background: #e8eef5;
}

.tz-ai-reading-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tz-ai-reading-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.tz-ai-reading-card__eyebrow {
    color: #1877f2;
    font-size: 11px;
    font-weight: 700;
}

.tz-ai-reading-card__title {
    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
}

.tz-ai-reading-card__link {
    color: #1877f2;
    font-size: 12px;
    font-weight: 600;
}

.tz-ai-reading-card:focus-visible {
    outline: 3px solid #1877f2;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .tz-ai-reading-card {
        gap: 12px;
        padding: 11px;
        margin: 22px 0;
        border-radius: 12px;
    }

    .tz-ai-reading-card__image {
        flex-basis: 86px;
        width: 86px;
        height: 78px;
    }

    .tz-ai-reading-card__title {
        font-size: 12px;
        line-height: 1.8;
    }

    .tz-ai-reading-card__eyebrow {
        font-size: 10px;
    }

    .tz-ai-reading-card__link {
        font-size: 11px;
    }
}
/* Similar AI Tools — Compact Horizontal Layout */

.tz-ai-similar-card {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 14px !important;
    direction: rtl !important;
    text-align: center !important;
    min-width: 0 !important;
    padding: 18px 16px !important;
}

.tz-ai-similar-card .tz-ai-similar-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    min-width: 0 !important;
    object-fit: contain !important;
    margin: 0 !important;
}

.tz-ai-similar-card .tz-ai-similar-name {
    display: none !important;
}

.tz-ai-similar-card .tz-ai-similar-description {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

@media (max-width: 767px) {
    .tz-ai-similar-card {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        column-gap: 12px !important;
    }

    .tz-ai-similar-card .tz-ai-similar-image {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
    }
}