/* ── Text + Image Block ──────────────────────────────────────────────────── */

.ti-block {
    padding: 80px 0;
}

/* ── Two-column grid ─────────────────────────────────────────────────────── */

.ti-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.ti-block--reverse .ti-inner {
    direction: rtl;
}

.ti-block--reverse .ti-inner>* {
    direction: ltr;
}

/* ── Image ───────────────────────────────────────────────────────────────── */

.ti-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.ti-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Content ─────────────────────────────────────────────────────────────── */

.ti-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ti-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--wp--preset--color--black, #1a1a25);
}

.ti-desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--wp--preset--color--neutral-300, #747481);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.ti-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Dark mode ───────────────────────────────────────────────────────────── */

html[data-theme="dark"] .ti-block {
    background-color: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .ti-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ti-desc {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .ti-block .btn-primary {
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .ti-block .btn-primary:hover,
html[data-theme="dark"] .ti-block .btn-primary:active {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark, #2E2E39);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .ti-block {
        padding: 48px 0;
    }

    .ti-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        direction: ltr;
    }

    .ti-block--reverse .ti-inner {
        direction: ltr;
    }

    .ti-title {
        font-size: 26px;
    }
}