/*
 * Scoped HomelyTainment homepage remodel components.
 * Apply .ht-homepage-remodel to the Elementor page wrapper, or add
 * body.ht-remodel-page after staging approval, before using these classes.
 */

.ht-homepage-remodel,
body.ht-remodel-page {
    color: var(--ht-color-text);
    background: var(--ht-color-white);
    font-family: var(--ht-font-family);
    line-height: 1.6;
}

.ht-homepage-remodel *,
.ht-homepage-remodel *::before,
.ht-homepage-remodel *::after,
body.ht-remodel-page .ht-section *,
body.ht-remodel-page .ht-section *::before,
body.ht-remodel-page .ht-section *::after {
    box-sizing: border-box;
}

.ht-homepage-remodel img,
body.ht-remodel-page .ht-section img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ht-homepage-remodel a,
body.ht-remodel-page .ht-section a {
    color: inherit;
}

.ht-homepage-remodel a:focus-visible,
.ht-homepage-remodel button:focus-visible,
.ht-homepage-remodel [tabindex]:focus-visible,
body.ht-remodel-page .ht-section a:focus-visible,
body.ht-remodel-page .ht-section button:focus-visible,
body.ht-remodel-page .ht-section [tabindex]:focus-visible {
    outline: 3px solid var(--ht-color-focus);
    outline-offset: 4px;
    box-shadow: var(--ht-focus-ring);
}

.ht-homepage-remodel .ht-section,
body.ht-remodel-page .ht-section {
    padding: var(--ht-space-3xl) 0;
}

.ht-homepage-remodel .ht-section--soft,
body.ht-remodel-page .ht-section--soft {
    background: var(--ht-color-soft);
}

.ht-homepage-remodel .ht-section--decision,
body.ht-remodel-page .ht-section--decision {
    color: var(--ht-color-white);
    background: linear-gradient(135deg, var(--ht-color-primary), #241044 65%, #3a165d);
}

.ht-homepage-remodel .ht-section__inner,
body.ht-remodel-page .ht-section__inner {
    width: min(var(--ht-width-content), calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.ht-homepage-remodel .ht-section-heading,
body.ht-remodel-page .ht-section-heading {
    max-width: var(--ht-width-narrow);
    margin: 0 0 var(--ht-space-xl);
}

.ht-homepage-remodel .ht-section-heading--center,
body.ht-remodel-page .ht-section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.ht-homepage-remodel .ht-section-heading h1,
.ht-homepage-remodel .ht-section-heading h2,
body.ht-remodel-page .ht-section-heading h1,
body.ht-remodel-page .ht-section-heading h2 {
    margin: 0;
    color: var(--ht-color-primary);
    font-size: clamp(1.9rem, 3vw, var(--ht-font-size-3xl));
    line-height: 1.12;
    font-weight: var(--ht-font-weight-black);
}

.ht-homepage-remodel .ht-section--decision .ht-section-heading h2,
.ht-homepage-remodel .ht-section--decision .ht-section-heading p,
body.ht-remodel-page .ht-section--decision .ht-section-heading h2,
body.ht-remodel-page .ht-section--decision .ht-section-heading p {
    color: var(--ht-color-white);
}

.ht-homepage-remodel .ht-section-heading p,
body.ht-remodel-page .ht-section-heading p {
    margin: var(--ht-space-sm) 0 0;
    color: var(--ht-color-muted);
    font-size: var(--ht-font-size-md);
}

.ht-homepage-remodel .ht-eyebrow,
body.ht-remodel-page .ht-eyebrow {
    margin: 0 0 var(--ht-space-sm);
    color: var(--ht-color-accent);
    font-size: var(--ht-font-size-xs);
    font-weight: var(--ht-font-weight-black);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ht-homepage-remodel .ht-section--decision .ht-eyebrow,
body.ht-remodel-page .ht-section--decision .ht-eyebrow {
    color: #f2b8f8;
}

.ht-homepage-remodel .ht-button,
body.ht-remodel-page .ht-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: var(--ht-space-xs);
    border: 1px solid transparent;
    border-radius: var(--ht-radius-md);
    padding: 0.75rem 1rem;
    font-size: var(--ht-font-size-base);
    font-weight: var(--ht-font-weight-black);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform var(--ht-transition-fast), box-shadow var(--ht-transition-fast), background var(--ht-transition-fast), border-color var(--ht-transition-fast);
}

.ht-homepage-remodel .ht-button:hover,
body.ht-remodel-page .ht-button:hover {
    transform: translateY(-1px);
}

.ht-homepage-remodel .ht-button--primary,
body.ht-remodel-page .ht-button--primary {
    color: var(--ht-color-white);
    background: var(--ht-color-accent);
    box-shadow: var(--ht-shadow-accent);
}

.ht-homepage-remodel .ht-button--primary:hover,
body.ht-remodel-page .ht-button--primary:hover {
    background: var(--ht-color-accent-dark);
}

.ht-homepage-remodel .ht-button--secondary,
body.ht-remodel-page .ht-button--secondary {
    color: var(--ht-color-primary);
    background: var(--ht-color-white);
    border-color: var(--ht-color-line);
}

.ht-homepage-remodel .ht-button--secondary:hover,
body.ht-remodel-page .ht-button--secondary:hover {
    border-color: rgba(138, 40, 146, 0.46);
    box-shadow: var(--ht-shadow-sm);
}

.ht-homepage-remodel .ht-hero,
body.ht-remodel-page .ht-hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(20px, 1fr) minmax(0, 560px) minmax(320px, 600px) minmax(20px, 1fr);
    align-items: center;
    gap: 42px;
    padding: 72px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fbf8fc 0%, #f1e9f4 48%, #ffffff 100%);
}

.ht-homepage-remodel .ht-hero__content,
body.ht-remodel-page .ht-hero__content {
    grid-column: 2;
}

.ht-homepage-remodel .ht-hero__visual,
body.ht-remodel-page .ht-hero__visual {
    grid-column: 3;
}

.ht-homepage-remodel .ht-hero h1,
body.ht-remodel-page .ht-hero h1 {
    max-width: 12ch;
    margin: var(--ht-space-xs) 0 var(--ht-space-md);
    color: var(--ht-color-primary);
    font-size: clamp(2.4rem, 5vw, var(--ht-font-size-hero));
    line-height: 1.03;
    font-weight: var(--ht-font-weight-black);
}

.ht-homepage-remodel .ht-hero p,
body.ht-remodel-page .ht-hero p {
    max-width: var(--ht-width-readable);
}

.ht-homepage-remodel .ht-hero__copy,
body.ht-remodel-page .ht-hero__copy {
    margin: 0 0 var(--ht-space-lg);
    color: #342943;
    font-size: var(--ht-font-size-lg);
}

.ht-homepage-remodel .ht-hero__actions,
body.ht-remodel-page .ht-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ht-space-sm);
}

.ht-homepage-remodel .ht-hero__visual,
body.ht-remodel-page .ht-hero__visual {
    border-radius: var(--ht-radius-lg);
}

.ht-homepage-remodel .ht-topic-grid,
.ht-homepage-remodel .ht-calculator-grid,
.ht-homepage-remodel .ht-guide-grid,
.ht-homepage-remodel .ht-review-grid,
.ht-homepage-remodel .ht-trust-grid,
.ht-homepage-remodel .ht-latest-grid,
body.ht-remodel-page .ht-topic-grid,
body.ht-remodel-page .ht-calculator-grid,
body.ht-remodel-page .ht-guide-grid,
body.ht-remodel-page .ht-review-grid,
body.ht-remodel-page .ht-trust-grid,
body.ht-remodel-page .ht-latest-grid {
    display: grid;
    gap: 18px;
}

.ht-homepage-remodel .ht-topic-grid,
body.ht-remodel-page .ht-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ht-homepage-remodel .ht-topic-grid + .ht-topic-grid,
body.ht-remodel-page .ht-topic-grid + .ht-topic-grid {
    margin-top: 18px;
}

.ht-homepage-remodel .ht-topic-grid.elementor-inner-section > .elementor-container,
.ht-homepage-remodel .ht-topic-grid.elementor-section > .elementor-container,
.ht-homepage-remodel .ht-topic-grid .elementor-row,
body.ht-remodel-page .ht-topic-grid.elementor-inner-section > .elementor-container,
body.ht-remodel-page .ht-topic-grid.elementor-section > .elementor-container,
body.ht-remodel-page .ht-topic-grid .elementor-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card,
body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card {
    width: auto !important;
    min-width: 0;
    min-height: 100%;
    display: flex;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.ht-homepage-remodel .ht-calculator-grid,
.ht-homepage-remodel .ht-guide-grid,
.ht-homepage-remodel .ht-review-grid,
.ht-homepage-remodel .ht-trust-grid,
body.ht-remodel-page .ht-calculator-grid,
body.ht-remodel-page .ht-guide-grid,
body.ht-remodel-page .ht-review-grid,
body.ht-remodel-page .ht-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ht-homepage-remodel .ht-latest-grid,
body.ht-remodel-page .ht-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ht-homepage-remodel .ht-topic-card,
.ht-homepage-remodel .ht-calculator-card,
.ht-homepage-remodel .ht-guide-card,
.ht-homepage-remodel .ht-review-card,
.ht-homepage-remodel .ht-pathway__step,
.ht-homepage-remodel .ht-trust-card,
.ht-homepage-remodel .ht-latest-card,
.ht-homepage-remodel .ht-empty-state,
body.ht-remodel-page .ht-topic-card,
body.ht-remodel-page .ht-calculator-card,
body.ht-remodel-page .ht-guide-card,
body.ht-remodel-page .ht-review-card,
body.ht-remodel-page .ht-pathway__step,
body.ht-remodel-page .ht-trust-card,
body.ht-remodel-page .ht-latest-card,
body.ht-remodel-page .ht-empty-state {
    border: 1px solid var(--ht-color-line);
    border-radius: var(--ht-radius-md);
    background: var(--ht-color-white);
    box-shadow: var(--ht-shadow-sm);
}

.ht-homepage-remodel .ht-topic-card,
body.ht-remodel-page .ht-topic-card {
    min-height: 238px;
    display: flex;
    flex-direction: column;
    gap: var(--ht-space-sm);
    padding: 22px;
    color: var(--ht-color-text);
    text-decoration: none;
}

.ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card > .elementor-column-wrap,
.ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card > .elementor-widget-wrap,
body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card > .elementor-column-wrap,
body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card > .elementor-widget-wrap {
    width: 100%;
    min-height: 238px;
    display: flex;
    flex-direction: column;
    gap: var(--ht-space-sm);
    border: 1px solid var(--ht-color-line);
    border-radius: var(--ht-radius-md);
    background: var(--ht-color-white);
    box-shadow: var(--ht-shadow-sm);
    padding: 22px;
    color: var(--ht-color-text);
    transition: border-color var(--ht-transition-fast), box-shadow var(--ht-transition-fast), transform var(--ht-transition-fast);
}

.ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card > .elementor-column-wrap > .elementor-widget-wrap,
body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card > .elementor-column-wrap > .elementor-widget-wrap {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--ht-space-sm);
}

.ht-homepage-remodel .ht-topic-card:hover,
.ht-homepage-remodel .ht-guide-card:hover,
.ht-homepage-remodel .ht-review-card:hover,
.ht-homepage-remodel .ht-latest-card:hover,
body.ht-remodel-page .ht-topic-card:hover,
body.ht-remodel-page .ht-guide-card:hover,
body.ht-remodel-page .ht-review-card:hover,
body.ht-remodel-page .ht-latest-card:hover {
    border-color: rgba(138, 40, 146, 0.42);
    box-shadow: var(--ht-shadow-md);
}

.ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card:hover > .elementor-column-wrap,
.ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card:hover > .elementor-widget-wrap,
.ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card:focus-within > .elementor-column-wrap,
.ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card:focus-within > .elementor-widget-wrap,
body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card:hover > .elementor-column-wrap,
body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card:hover > .elementor-widget-wrap,
body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card:focus-within > .elementor-column-wrap,
body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card:focus-within > .elementor-widget-wrap {
    border-color: rgba(138, 40, 146, 0.42);
    box-shadow: var(--ht-shadow-md);
    transform: translateY(-1px);
}

.ht-homepage-remodel .ht-topic-card__icon,
.ht-homepage-remodel .ht-calculator-card__icon,
body.ht-remodel-page .ht-topic-card__icon,
body.ht-remodel-page .ht-calculator-card__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: var(--ht-radius-md);
    background: var(--ht-color-soft-strong);
}

.ht-homepage-remodel .ht-topic-card h3,
.ht-homepage-remodel .ht-calculator-card h3,
.ht-homepage-remodel .ht-guide-card h3,
.ht-homepage-remodel .ht-review-card h3,
.ht-homepage-remodel .ht-pathway__step h3,
.ht-homepage-remodel .ht-trust-card h3,
.ht-homepage-remodel .ht-latest-card h3,
body.ht-remodel-page .ht-topic-card h3,
body.ht-remodel-page .ht-calculator-card h3,
body.ht-remodel-page .ht-guide-card h3,
body.ht-remodel-page .ht-review-card h3,
body.ht-remodel-page .ht-pathway__step h3,
body.ht-remodel-page .ht-trust-card h3,
body.ht-remodel-page .ht-latest-card h3 {
    margin: 0 0 var(--ht-space-xs);
    color: var(--ht-color-primary);
    font-size: var(--ht-font-size-lg);
    line-height: 1.25;
    font-weight: var(--ht-font-weight-black);
}

.ht-homepage-remodel .ht-topic-card p,
.ht-homepage-remodel .ht-calculator-card p,
.ht-homepage-remodel .ht-guide-card p,
.ht-homepage-remodel .ht-review-card p,
.ht-homepage-remodel .ht-pathway__step p,
.ht-homepage-remodel .ht-trust-card p,
.ht-homepage-remodel .ht-latest-card p,
body.ht-remodel-page .ht-topic-card p,
body.ht-remodel-page .ht-calculator-card p,
body.ht-remodel-page .ht-guide-card p,
body.ht-remodel-page .ht-review-card p,
body.ht-remodel-page .ht-pathway__step p,
body.ht-remodel-page .ht-trust-card p,
body.ht-remodel-page .ht-latest-card p {
    margin: 0 0 var(--ht-space-md);
    color: var(--ht-color-muted);
}

.ht-homepage-remodel .ht-topic-card__action,
body.ht-remodel-page .ht-topic-card__action {
    margin-top: auto;
    color: var(--ht-color-accent);
    font-size: var(--ht-font-size-sm);
    font-weight: var(--ht-font-weight-black);
}

.ht-homepage-remodel .ht-calculator-card,
body.ht-remodel-page .ht-calculator-card {
    display: flex;
    flex-direction: column;
    gap: var(--ht-space-sm);
    padding: 22px;
}

.ht-homepage-remodel .ht-calculator-card__icon,
body.ht-remodel-page .ht-calculator-card__icon {
    background: linear-gradient(135deg, var(--ht-color-soft-strong), #e8eef7);
}

.ht-homepage-remodel .ht-calculator-card .ht-button,
body.ht-remodel-page .ht-calculator-card .ht-button {
    width: 100%;
    margin-top: auto;
}

.ht-homepage-remodel .ht-guide-card,
body.ht-remodel-page .ht-guide-card {
    overflow: hidden;
}

.ht-homepage-remodel .ht-guide-card__visual,
.ht-homepage-remodel .ht-review-card__visual,
body.ht-remodel-page .ht-guide-card__visual,
body.ht-remodel-page .ht-review-card__visual {
    position: relative;
    min-height: 132px;
    margin: 0;
    overflow: hidden;
    background: var(--ht-color-soft-strong);
}

.ht-homepage-remodel .ht-guide-card__visual,
body.ht-remodel-page .ht-guide-card__visual {
    min-height: 150px;
}

.ht-homepage-remodel .ht-guide-card__body,
.ht-homepage-remodel .ht-review-card__body,
body.ht-remodel-page .ht-guide-card__body,
body.ht-remodel-page .ht-review-card__body {
    padding: 20px;
}

.ht-homepage-remodel .ht-guide-card__link,
.ht-homepage-remodel .ht-latest-card__link,
body.ht-remodel-page .ht-guide-card__link,
body.ht-remodel-page .ht-latest-card__link {
    color: var(--ht-color-accent);
    font-weight: var(--ht-font-weight-black);
    text-decoration: none;
}

.ht-homepage-remodel .ht-guide-card__link:hover,
.ht-homepage-remodel .ht-latest-card__link:hover,
body.ht-remodel-page .ht-guide-card__link:hover,
body.ht-remodel-page .ht-latest-card__link:hover {
    text-decoration: underline;
}

.ht-homepage-remodel .ht-review-card,
body.ht-remodel-page .ht-review-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.2);
}

.ht-homepage-remodel .ht-review-card::before,
body.ht-remodel-page .ht-review-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--ht-color-accent);
}

.ht-homepage-remodel .ht-review-card__badge,
body.ht-remodel-page .ht-review-card__badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: var(--ht-radius-sm);
    padding: 0.25rem 0.55rem;
    color: var(--ht-color-review);
    background: #f5e7f7;
    font-size: var(--ht-font-size-xs);
    font-weight: var(--ht-font-weight-black);
}

.ht-homepage-remodel .ht-review-card__meta,
body.ht-remodel-page .ht-review-card__meta {
    display: grid;
    gap: var(--ht-space-xs);
    margin: var(--ht-space-md) 0;
    color: var(--ht-color-muted-strong);
    font-size: var(--ht-font-size-sm);
}

.ht-homepage-remodel .ht-review-card__meta > *,
body.ht-remodel-page .ht-review-card__meta > * {
    border-top: 1px solid var(--ht-color-line);
    padding-top: var(--ht-space-xs);
}

.ht-homepage-remodel .ht-content-type,
body.ht-remodel-page .ht-content-type {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    border-radius: var(--ht-radius-sm);
    padding: 0.25rem 0.55rem;
    color: var(--ht-color-primary);
    background: var(--ht-color-soft);
    font-size: var(--ht-font-size-xs);
    font-weight: var(--ht-font-weight-black);
}

.ht-homepage-remodel .ht-content-type--review,
body.ht-remodel-page .ht-content-type--review {
    color: var(--ht-color-review);
    background: #f5e2f7;
}

.ht-homepage-remodel .ht-content-type--calculator,
body.ht-remodel-page .ht-content-type--calculator {
    color: #254268;
    background: #e8eef7;
}

.ht-homepage-remodel .ht-pathway,
body.ht-remodel-page .ht-pathway {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ht-homepage-remodel .ht-pathway__step,
body.ht-remodel-page .ht-pathway__step {
    padding: 22px;
}

.ht-homepage-remodel .ht-pathway__number,
body.ht-remodel-page .ht-pathway__number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ht-space-md);
    border-radius: var(--ht-radius-md);
    color: var(--ht-color-white);
    background: var(--ht-color-primary);
    font-weight: var(--ht-font-weight-black);
}

.ht-homepage-remodel .ht-pathway__step a,
body.ht-remodel-page .ht-pathway__step a {
    color: var(--ht-color-accent);
    font-weight: var(--ht-font-weight-black);
    text-decoration: none;
}

.ht-homepage-remodel .ht-pathway__step a:hover,
body.ht-remodel-page .ht-pathway__step a:hover {
    text-decoration: underline;
}

.ht-homepage-remodel .ht-trust-card,
body.ht-remodel-page .ht-trust-card {
    padding: 22px;
}

.ht-homepage-remodel .ht-latest-card,
body.ht-remodel-page .ht-latest-card {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: var(--ht-space-md);
    padding: 16px;
    color: var(--ht-color-text);
    text-decoration: none;
}

.ht-homepage-remodel .ht-empty-state,
body.ht-remodel-page .ht-empty-state {
    max-width: 680px;
    margin: var(--ht-space-xl) auto;
    padding: var(--ht-space-xl);
    text-align: center;
}

.ht-homepage-remodel .ht-empty-state h2,
.ht-homepage-remodel .ht-empty-state h3,
body.ht-remodel-page .ht-empty-state h2,
body.ht-remodel-page .ht-empty-state h3 {
    margin: 0 0 var(--ht-space-sm);
    color: var(--ht-color-primary);
}

@media (max-width: 1080px) {
    .ht-homepage-remodel .ht-hero,
    body.ht-remodel-page .ht-hero {
        grid-template-columns: minmax(20px, 1fr) minmax(0, var(--ht-width-content)) minmax(20px, 1fr);
        padding-top: 54px;
    }

    .ht-homepage-remodel .ht-hero__content,
    .ht-homepage-remodel .ht-hero__visual,
    body.ht-remodel-page .ht-hero__content,
    body.ht-remodel-page .ht-hero__visual {
        grid-column: 2;
    }

    .ht-homepage-remodel .ht-calculator-grid,
    .ht-homepage-remodel .ht-guide-grid,
    .ht-homepage-remodel .ht-review-grid,
    .ht-homepage-remodel .ht-trust-grid,
    .ht-homepage-remodel .ht-pathway,
    body.ht-remodel-page .ht-calculator-grid,
    body.ht-remodel-page .ht-guide-grid,
    body.ht-remodel-page .ht-review-grid,
    body.ht-remodel-page .ht-trust-grid,
    body.ht-remodel-page .ht-pathway {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ht-homepage-remodel .ht-topic-grid,
    body.ht-remodel-page .ht-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-homepage-remodel .ht-topic-grid.elementor-inner-section > .elementor-container,
    .ht-homepage-remodel .ht-topic-grid.elementor-section > .elementor-container,
    .ht-homepage-remodel .ht-topic-grid .elementor-row,
    body.ht-remodel-page .ht-topic-grid.elementor-inner-section > .elementor-container,
    body.ht-remodel-page .ht-topic-grid.elementor-section > .elementor-container,
    body.ht-remodel-page .ht-topic-grid .elementor-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-homepage-remodel .ht-latest-grid,
    body.ht-remodel-page .ht-latest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ht-homepage-remodel .ht-section,
    body.ht-remodel-page .ht-section {
        padding: 54px 0;
    }

    .ht-homepage-remodel .ht-section__inner,
    body.ht-remodel-page .ht-section__inner {
        width: min(100% - 28px, var(--ht-width-content));
    }

    .ht-homepage-remodel .ht-hero,
    body.ht-remodel-page .ht-hero {
        min-height: auto;
    }

    .ht-homepage-remodel .ht-hero h1,
    body.ht-remodel-page .ht-hero h1 {
        font-size: 2.25rem;
    }

    .ht-homepage-remodel .ht-hero__actions .ht-button,
    body.ht-remodel-page .ht-hero__actions .ht-button {
        width: 100%;
    }

    .ht-homepage-remodel .ht-topic-grid,
    .ht-homepage-remodel .ht-calculator-grid,
    .ht-homepage-remodel .ht-guide-grid,
    .ht-homepage-remodel .ht-review-grid,
    .ht-homepage-remodel .ht-trust-grid,
    .ht-homepage-remodel .ht-pathway,
    body.ht-remodel-page .ht-topic-grid,
    body.ht-remodel-page .ht-calculator-grid,
    body.ht-remodel-page .ht-guide-grid,
    body.ht-remodel-page .ht-review-grid,
    body.ht-remodel-page .ht-trust-grid,
    body.ht-remodel-page .ht-pathway {
        grid-template-columns: 1fr;
    }

    .ht-homepage-remodel .ht-topic-card,
    body.ht-remodel-page .ht-topic-card {
        min-height: auto;
    }

    .ht-homepage-remodel .ht-topic-grid.elementor-inner-section > .elementor-container,
    .ht-homepage-remodel .ht-topic-grid.elementor-section > .elementor-container,
    .ht-homepage-remodel .ht-topic-grid .elementor-row,
    body.ht-remodel-page .ht-topic-grid.elementor-inner-section > .elementor-container,
    body.ht-remodel-page .ht-topic-grid.elementor-section > .elementor-container,
    body.ht-remodel-page .ht-topic-grid .elementor-row {
        grid-template-columns: 1fr;
    }

    .ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card > .elementor-column-wrap,
    .ht-homepage-remodel .ht-topic-grid .elementor-column.ht-topic-card > .elementor-widget-wrap,
    body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card > .elementor-column-wrap,
    body.ht-remodel-page .ht-topic-grid .elementor-column.ht-topic-card > .elementor-widget-wrap {
        min-height: auto;
    }

    .ht-homepage-remodel .ht-latest-card,
    body.ht-remodel-page .ht-latest-card {
        align-items: flex-start;
        flex-direction: column;
    }
}
