/* Tranquil Soul - Home Page Styles
   File: assets/css/home.css
   Fixed: homepage-only styles, full-width layout, no header/shop/page duplicates.
*/
/*************************************************** DO NOT DELETE AFTER THIS LINE OR YOU WILL BREAK THE SITE THEME ************************************************/
/******************************* NEWLEY ADDED CODE BY IAN ****************************/

.ts-home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-20);
  margin-top: var(--space-16);
}

/* Optional tweak so cards don’t conflict with archive layout */
.ts-blog-card--home {
  max-width: 100%;
}

/* Collections grids (categories & brands) */
.ts-home-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 columns on desktop */
  gap: var(--space-20);
  margin-top: var(--space-16);
}

.ts-collection-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-standard),
              box-shadow var(--duration-normal) var(--ease-standard),
              border-color var(--duration-normal) var(--ease-standard);
}

.ts-collection-card-inner {
  display: flex;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ts-collection-card-body {
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.ts-collection-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.ts-collection-card-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.ts-collection-card-link {
  margin-top: auto;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

.ts-collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

/* Medium screens: 3 columns */
@media (max-width: 1024px) {
  .ts-home-collections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Small screens: 2 columns */
@media (max-width: 768px) {
  .ts-home-collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Extra small: 1 column */
@media (max-width: 480px) {
  .ts-home-collections-grid {
    grid-template-columns: 1fr;
  }
}

/******************************* END OF NEWLEY ADDED CODE BY IAN ****************************/

/*************************************************** DO NOT DELETE BEFORE THIS LINE OR YOU WILL BREAK THE SITE THEME ************************************************/

/* ------------------------------
   GENERAL WRAPPER
------------------------------ */

.ts-home {
    background: var(--color-background);
    color: var(--color-text);
}

/* Shared section spacing */
.ts-home-section {
    padding: 60px 0;
}

@media (max-width: 1200px) {
    .ts-home-section {
        padding: 40px 0;
    }
}

/* Reuse global section title styles from style.css (they already exist),
   but add small tweaks for home layout if needed */
.ts-home .section-title {
    margin-top: 0;
}

/* ------------------------------
   HERO SECTION
------------------------------ */

.ts-home-hero {
    position: relative;
    padding: 90px var(--space-20) 80px;
    background: linear-gradient(135deg, var(--color-bg-5) 0, var(--color-bg-3) 100);
    text-align: center;
    overflow: hidden;
}

.ts-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cdefs%3E%3Cpattern id='home-dots' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='50' cy='50' r='2' fill='%235E5240' opacity='0.08'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='1200' height='600' fill='url(%23home-dots)'/%3E%3C/svg%3E")
        center / cover no-repeat;
    pointer-events: none;
}

.ts-home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.ts-home-hero-title {
    font-size: var(--font-size-4xl);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    margin: 0 0 var(--space-20);
}

.ts-home-hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    margin: 0 0 var(--space-32);
}

.ts-home-hero-actions .btn {
    padding: var(--space-12) var(--space-32);
    font-size: var(--font-size-md);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.ts-home-hero-actions .btn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Allow background image overlay */
.ts-home-hero[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ts-home-hero[style*="background-image"]::before {
    background: rgba(var(--color-black-rgb), 0.35);
}

.ts-home-hero[style*="background-image"] .ts-home-hero-title,
.ts-home-hero[style*="background-image"] .ts-home-hero-subtitle {
    color: var(--color-cream-100);
}

@media (max-width: 768px) {
    .ts-home-hero {
        padding: 70px var(--space-16) 60px;
    }

    .ts-home-hero-title {
        font-size: var(--font-size-3xl);
    }

    .ts-home-hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-24);
    }

    .ts-home-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ------------------------------
   CATEGORY GRID (6 cards)
------------------------------ */

.ts-home-categories {
    background: var(--color-surface);
}

.ts-home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-24);
    margin-top: var(--space-16);
}

.ts-category-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-normal) var(--ease-standard),
        box-shadow var(--duration-normal) var(--ease-standard),
        border-color var(--duration-normal) var(--ease-standard);
}

.ts-category-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ts-category-card-image {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ts-category-card-body {
    padding: var(--space-16);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.ts-category-card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0;
}

.ts-category-card-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.ts-category-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.ts-category-card-link::after {
    content: "→";
    font-size: 0.85em;
}

.ts-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

@media (max-width: 1024px) {
    .ts-home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ts-home-category-grid {
        grid-template-columns: 1fr;
    }

    .ts-category-card-image {
        height: 200px;
    }
}

/* ------------------------------
   PROMO BANNER
------------------------------ */

.ts-home-promo {
    padding: 40px 0;
    background: var(--color-bg-2);
}

.ts-home-promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-20);
    padding: var(--space-20) var(--space-24);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-sm);
}

.ts-home-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-10);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    background: rgba(var(--color-orange-500-rgb), 0.12);
    color: var(--color-orange-500);
    font-weight: var(--font-weight-semibold);
}

.ts-home-promo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.ts-home-promo-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin: 0;
}

.ts-home-promo-text {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.ts-home-promo-cta {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ts-home-promo-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ts-home-promo-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ------------------------------
   FEATURED PRODUCTS GRID
------------------------------ */

.ts-home-featured-products {
    background: var(--color-background);
}

/* Ensure no pseudo-elements steal a grid cell */
.ts-home-featured-products .woocommerce ul.products::before,
.ts-home-featured-products .woocommerce ul.products::after {
    content: none !important;
}

/* Reuse WooCommerce grid styles; only adjust top margin */
.ts-home-products-grid {
    margin-top: var(--space-24);
}

/* Force 4-column layout for 8 featured items on desktop */
.ts-home-featured-products .woocommerce ul.products.ts-home-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Medium: 3 columns */
@media (max-width: 1024px) {
    .ts-home-featured-products .woocommerce ul.products.ts-home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Small: 2 columns */
@media (max-width: 768px) {
    .ts-home-featured-products .woocommerce ul.products.ts-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Extra small: 1 column */
@media (max-width: 480px) {
    .ts-home-featured-products .woocommerce ul.products.ts-home-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------
   NEWSLETTER SECTION
------------------------------ */

.ts-home-newsletter {
    background: var(--color-bg-5);
}

.ts-home-newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-24);
    padding: var(--space-20) var(--space-24);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-sm);
}

.ts-home-newsletter-copy .section-title {
    margin-bottom: var(--space-8);
}

.ts-home-newsletter-copy .section-subtitle {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.ts-home-newsletter-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ts-home-newsletter-form form {
    width: 100%;
}

/* Basic layout for generic form fields if plugin doesn’t style */
.ts-home-newsletter-form .form-group,
.ts-home-newsletter-form .ff-el-group {
    margin-bottom: var(--space-12);
}

.ts-home-newsletter-form input[type="email"],
.ts-home-newsletter-form input[type="text"] {
    width: 100%;
    padding: var(--space-10) var(--space-16);
    border-radius: var(--radius-base);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: var(--font-size-sm);
}

.ts-home-newsletter-form button,
.ts-home-newsletter-form input[type="submit"] {
    margin-top: var(--space-12);
    width: 100%;
}

@media (max-width: 900px) {
    .ts-home-newsletter-inner {
        grid-template-columns: 1fr;
    }

    .ts-home-newsletter-form {
        justify-content: flex-start;
    }
}

/* ------------------------------
   GALLERY SECTION (PRODUCT TILES)
------------------------------ */

.ts-home-gallery {
    background: var(--color-surface);
}

.ts-home-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-20);
}

.ts-home-gallery-grid {
    margin-top: var(--space-24);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-16);
}

.ts-gallery-product {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-sm);
    background: var(--color-surface);
    text-decoration: none;
    transition: transform var(--duration-normal) var(--ease-standard),
        box-shadow var(--duration-normal) var(--ease-standard),
        border-color var(--duration-normal) var(--ease-standard);
}

.ts-gallery-product-inner {
    position: relative;
    width: 100%;
    padding-top: 100%; /* square tile */
}

.ts-gallery-product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--duration-normal) var(--ease-standard),
        transform var(--duration-normal) var(--ease-standard);
}

.ts-gallery-product-img--hover {
    opacity: 0;
}

.ts-gallery-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.ts-gallery-product:hover .ts-gallery-product-img--primary {
    opacity: 0;
    transform: scale(1.04);
}

.ts-gallery-product:hover .ts-gallery-product-img--hover {
    opacity: 1;
    transform: scale(1.02);
}

/* ------------------------------
   CONTACT CTA
------------------------------ */

.ts-home-contact {
    background: var(--color-background);
}

.ts-home-contact-inner {
    padding: var(--space-20) var(--space-24);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    background: linear-gradient(
        135deg,
        rgba(var(--color-teal-500-rgb), 0.07) 0,
        rgba(var(--color-brown-600-rgb), 0.07) 100%
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-20);
}

.ts-home-contact-content .section-title {
    margin-bottom: var(--space-8);
}

.ts-home-contact-content .section-subtitle {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.ts-home-contact-cta {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ts-home-contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ts-home-contact-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ------------------------------
   TRUST STRIP (reuse checkout styling)
------------------------------ */

.ts-home-trust {
    padding: 40px 0 60px;
    background: var(--color-surface);
    border-top: 1px solid rgba(var(--color-brown-600-rgb), 0.15);
}

.ts-home-trust .ts-checkout-trust-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-16);
}

.ts-home-trust .ts-checkout-trust-item {
    background: rgba(var(--color-brown-600-rgb), 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-12) var(--space-16);
    border: 1px solid rgba(var(--color-brown-600-rgb), 0.18);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.ts-home-trust .ts-checkout-trust-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-brown-600);
}

.ts-home-trust .ts-checkout-trust-text {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

@media (max-width: 900px) {
    .ts-home-trust .ts-checkout-trust-inner {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------
   ANIMATIONS
------------------------------ */

@media (prefers-reduced-motion: no-preference) {
    .ts-home-hero,
    .ts-category-card,
    .ts-home-promo-inner,
    .ts-home-newsletter-inner,
    .ts-gallery-product,
    .ts-home-contact-inner {
        animation: ts-fade-in-up 0.6s var(--ease-standard) both;
    }

    .ts-category-card:nth-child(1),
    .ts-gallery-product:nth-child(1) {
        animation-delay: 0.05s;
    }
    .ts-category-card:nth-child(2),
    .ts-gallery-product:nth-child(2) {
        animation-delay: 0.1s;
    }
    .ts-category-card:nth-child(3),
    .ts-gallery-product:nth-child(3) {
        animation-delay: 0.15s;
    }
}

@keyframes ts-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Tranquil Soul Homepage True Full Width Fix
   Keep this block at the VERY BOTTOM of assets/css/home.css
============================================================ */

html,
body {
    overflow-x: hidden;
}

/* Remove parent theme boxing only on this homepage template */
body.ts-fullwidth-page,
body.ts-fullwidth-page #page,
body.ts-fullwidth-page .site,
body.ts-fullwidth-page .site-content,
body.ts-fullwidth-page .content-area,
body.ts-fullwidth-page .site-main,
body.ts-fullwidth-page .entry-content,
body.ts-fullwidth-page .hentry,
body.ts-fullwidth-page article.page {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Hide normal page title/header if parent theme outputs it */
body.ts-fullwidth-page .entry-header,
body.ts-fullwidth-page .page-header {
    display: none;
}

/* Break the homepage out of any parent theme container */
body.ts-fullwidth-page .ts-home-main--fullwidth {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    overflow-x: hidden;
}

/* Main homepage wrapper */
body.ts-fullwidth-page .ts-home--fullwidth {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--color-background);
}

/* Every homepage section becomes full width */
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-section,
body.ts-fullwidth-page .ts-home--fullwidth .ts-hero-slider {
    position: relative;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Hero should touch both browser edges */
body.ts-fullwidth-page .ts-home--fullwidth .ts-hero-slider {
    width: 100vw;
    max-width: 100vw;
}

/* Keep inner content readable */
body.ts-fullwidth-page .ts-home--fullwidth .container,
body.ts-fullwidth-page .ts-home--fullwidth .ts-container,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-container {
    width: min(1200px, calc(100% - 40px));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Wider gallery container */
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-gallery .ts-home-container {
    width: min(1440px, calc(100% - 40px));
    max-width: 1440px;
}

/* Fix section padding so backgrounds are full width but content stays contained */
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-section {
    padding-left: 0;
    padding-right: 0;
}

/* Give vertical rhythm back to sections */
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-categories,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-featured-products,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-new-products,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-newsletter,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-gallery,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-collections,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-blog,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-contact {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Promo/trust sections already use smaller spacing */
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-promo {
    padding-top: 40px;
    padding-bottom: 40px;
}

body.ts-fullwidth-page .ts-home--fullwidth .ts-home-trust {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Elementor/Header Footer Builder safety */
body.ts-fullwidth-page .elementor-section.elementor-section-boxed > .elementor-container,
body.ts-fullwidth-page .hfe-site-container,
body.ts-fullwidth-page .ast-container,
body.ts-fullwidth-page .site-container,
body.ts-fullwidth-page .content-container {
    max-width: none;
}

/* But do not let global .container become unlimited inside homepage content */
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-section > .container,
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-section > .ts-home-container {
    max-width: 1200px;
}

/* Gallery stays wider */
body.ts-fullwidth-page .ts-home--fullwidth .ts-home-gallery > .ts-home-container {
    max-width: 1440px;
}

/* Mobile */
@media (max-width: 768px) {
    body.ts-fullwidth-page .ts-home--fullwidth .container,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-container,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-container {
        width: min(100% - 24px, 1200px);
    }

    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-categories,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-featured-products,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-new-products,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-newsletter,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-gallery,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-collections,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-blog,
    body.ts-fullwidth-page .ts-home--fullwidth .ts-home-contact {
        padding-top: 42px;
        padding-bottom: 42px;
    }
}

/* ============================================================
   Homepage Blog Cards Final Fix
   Place at VERY BOTTOM of assets/css/home.css
============================================================ */

.ts-home .ts-home-blog {
    background: var(--color-background);
}

.ts-home .ts-home-blog .section-title,
.ts-home .ts-home-blog .section-subtitle {
    text-align: center;
}

.ts-home .ts-home-blog .section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.ts-home .ts-home-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(18px, 2vw, 28px) !important;
    margin-top: 30px !important;
    align-items: stretch !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card--home {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    border: 1px solid var(--color-card-border) !important;
    background: var(--color-surface) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card--home:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10) !important;
    border-color: var(--color-primary) !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    color: inherit !important;
    text-decoration: none !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card-thumb {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background: var(--color-secondary) !important;
    line-height: 0 !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    transition: transform 260ms ease !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card--home:hover .ts-blog-card-thumb img {
    transform: scale(1.04) !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 20px !important;
    min-height: 220px !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card-title {
    margin: 0 0 12px !important;
    color: var(--color-text) !important;
    font-size: clamp(17px, 1.4vw, 21px) !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card-excerpt {
    flex: 1 1 auto !important;
    margin: 0 0 18px !important;
    color: var(--color-text-secondary) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.ts-home .ts-home-blog-grid .ts-blog-card-readmore {
    margin-top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--color-primary) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

@media (max-width: 1200px) {
    .ts-home .ts-home-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .ts-home .ts-home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 575px) {
    .ts-home .ts-home-blog-grid {
        grid-template-columns: 1fr !important;
    }

    .ts-home .ts-home-blog-grid .ts-blog-card-body {
        min-height: auto !important;
    }
}

/* ============================================================
   Homepage WooCommerce Product Cards Final Fix
   Scope: homepage only
   Place at VERY BOTTOM of assets/css/home.css
============================================================ */

.ts-home .woocommerce ul.products.ts-home-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(22px, 2vw, 34px) !important;
    align-items: stretch !important;
    list-style: none !important;
    margin: 32px 0 0 !important;
    padding: 0 !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid::before,
.ts-home .woocommerce ul.products.ts-home-products-grid::after {
    content: none !important;
    display: none !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    overflow: hidden !important;
    background: var(--color-surface, #ffffff) !important;
    border: 1px solid var(--color-card-border, rgba(0, 0, 0, 0.12)) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06) !important;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product:hover {
    transform: translateY(-5px) !important;
    border-color: var(--color-primary, #21808d) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10) !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .woocommerce-loop-product__link {
    display: block !important;
    width: 100% !important;
    color: inherit !important;
    text-decoration: none !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product img {
    display: block !important;
    width: 100% !important;
    height: 280px !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 18px 18px 0 0 !important;
    transition: transform 260ms ease !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product:hover img {
    transform: scale(1.04) !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .woocommerce-loop-product__title {
    min-height: 58px !important;
    margin: 0 !important;
    padding: 18px 18px 8px !important;
    color: var(--color-text, #13343b) !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .price {
    display: block !important;
    margin: 0 !important;
    padding: 0 18px 18px !important;
    color: var(--color-text, #13343b) !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .price del {
    color: var(--color-text-secondary, #626c71) !important;
    opacity: 0.65 !important;
    margin-right: 8px !important;
    font-weight: 600 !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .price ins {
    color: var(--color-primary, #21808d) !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 5 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border-radius: 0 !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .star-rating {
    margin: 0 18px 12px !important;
}

/* Button sticks to bottom and fills card */
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .button,
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .add_to_cart_button,
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .added_to_cart,
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .added_to_cart.wc-forward {
    position: relative !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
    margin: auto 0 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 0 0 18px 18px !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: capitalize !important;
    cursor: pointer !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .button:hover,
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .add_to_cart_button:hover,
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .added_to_cart:hover,
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .added_to_cart.wc-forward:hover {
    background: var(--color-primary, #21808d) !important;
    color: #ffffff !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .button.loading,
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .add_to_cart_button.loading {
    opacity: 0.75 !important;
    pointer-events: none !important;
}

.ts-home .woocommerce ul.products.ts-home-products-grid li.product .button.added,
.ts-home .woocommerce ul.products.ts-home-products-grid li.product .add_to_cart_button.added {
    background: var(--color-primary, #21808d) !important;
}

/* Keep product cards responsive */
@media (max-width: 1200px) {
    .ts-home .woocommerce ul.products.ts-home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .ts-home .woocommerce ul.products.ts-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ts-home .woocommerce ul.products.ts-home-products-grid li.product img {
        height: 240px !important;
    }
}

@media (max-width: 575px) {
    .ts-home .woocommerce ul.products.ts-home-products-grid {
        grid-template-columns: 1fr !important;
    }

    .ts-home .woocommerce ul.products.ts-home-products-grid li.product img {
        height: 260px !important;
    }
}

/* ============================================================
   FINAL Homepage Subscriber + In The Studio Layout Fix
   File: assets/css/home.css
============================================================ */

/* Section spacing reset */
body.home .ts-home-newsletter,
body.page-template-page-home-php .ts-home-newsletter,
body.page-template-page-home .ts-home-newsletter,
body.home .home-newsletter,
body.page-template-page-home-php .home-newsletter,
body.page-template-page-home .home-newsletter,
body.home .newsletter-section,
body.page-template-page-home-php .newsletter-section,
body.page-template-page-home .newsletter-section {
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(58px, 6vw, 84px) 0 !important;
    background:
        radial-gradient(circle at 12% 20%, rgba(125, 56, 164, 0.28), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(33, 128, 141, 0.16), transparent 30%),
        linear-gradient(135deg, #7d38a4 0%, #9b35e6 55%, #8f2ce3 100%) !important;
}

/* Subscriber card */
body.home .ts-home-newsletter .ts-container,
body.page-template-page-home-php .ts-home-newsletter .ts-container,
body.page-template-page-home .ts-home-newsletter .ts-container,
body.home .home-newsletter .ts-container,
body.page-template-page-home-php .home-newsletter .ts-container,
body.page-template-page-home .home-newsletter .ts-container,
body.home .newsletter-section .ts-container,
body.page-template-page-home-php .newsletter-section .ts-container,
body.page-template-page-home .newsletter-section .ts-container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 30px 34px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12) !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 28px !important;
    align-items: center !important;
}

/* Newsletter text */
body.home .ts-home-newsletter h2,
body.page-template-page-home-php .ts-home-newsletter h2,
body.page-template-page-home .ts-home-newsletter h2,
body.home .home-newsletter h2,
body.page-template-page-home-php .home-newsletter h2,
body.page-template-page-home .home-newsletter h2,
body.home .newsletter-section h2,
body.page-template-page-home-php .newsletter-section h2,
body.page-template-page-home .newsletter-section h2 {
    margin: 0 0 10px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(24px, 2.4vw, 34px) !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
    letter-spacing: -0.025em !important;
}

body.home .ts-home-newsletter p,
body.page-template-page-home-php .ts-home-newsletter p,
body.page-template-page-home .ts-home-newsletter p,
body.home .home-newsletter p,
body.page-template-page-home-php .home-newsletter p,
body.page-template-page-home .home-newsletter p,
body.home .newsletter-section p,
body.page-template-page-home-php .newsletter-section p,
body.page-template-page-home .newsletter-section p {
    margin: 0 !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Newsletter form alignment */
body.home .ts-home-newsletter form,
body.page-template-page-home-php .ts-home-newsletter form,
body.page-template-page-home .ts-home-newsletter form,
body.home .home-newsletter form,
body.page-template-page-home-php .home-newsletter form,
body.page-template-page-home .home-newsletter form,
body.home .newsletter-section form,
body.page-template-page-home-php .newsletter-section form,
body.page-template-page-home .newsletter-section form {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin: 0 !important;
    width: 100% !important;
}

body.home .ts-home-newsletter input[type="email"],
body.home .ts-home-newsletter input[type="text"],
body.page-template-page-home-php .ts-home-newsletter input[type="email"],
body.page-template-page-home-php .ts-home-newsletter input[type="text"],
body.page-template-page-home .ts-home-newsletter input[type="email"],
body.page-template-page-home .ts-home-newsletter input[type="text"],
body.home .newsletter-section input[type="email"],
body.home .newsletter-section input[type="text"],
body.page-template-page-home-php .newsletter-section input[type="email"],
body.page-template-page-home-php .newsletter-section input[type="text"],
body.page-template-page-home .newsletter-section input[type="email"],
body.page-template-page-home .newsletter-section input[type="text"] {
    width: min(320px, 100%) !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: var(--color-text, #063642) !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

body.home .ts-home-newsletter button,
body.home .ts-home-newsletter input[type="submit"],
body.page-template-page-home-php .ts-home-newsletter button,
body.page-template-page-home-php .ts-home-newsletter input[type="submit"],
body.page-template-page-home .ts-home-newsletter button,
body.page-template-page-home .ts-home-newsletter input[type="submit"],
body.home .newsletter-section button,
body.home .newsletter-section input[type="submit"],
body.page-template-page-home-php .newsletter-section button,
body.page-template-page-home-php .newsletter-section input[type="submit"],
body.page-template-page-home .newsletter-section button,
body.page-template-page-home .newsletter-section input[type="submit"] {
    min-height: 48px !important;
    padding: 13px 24px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--color-primary, #21808d) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

/* ============================================================
   In The Studio Gallery
============================================================ */

body.home .ts-home-studio,
body.page-template-page-home-php .ts-home-studio,
body.page-template-page-home .ts-home-studio,
body.home .home-studio,
body.page-template-page-home-php .home-studio,
body.page-template-page-home .home-studio,
body.home .studio-section,
body.page-template-page-home-php .studio-section,
body.page-template-page-home .studio-section {
    width: 100% !important;
    padding: clamp(54px, 6vw, 84px) 0 90px !important;
    background: #ffffff !important;
}

body.home .ts-home-studio .ts-container,
body.page-template-page-home-php .ts-home-studio .ts-container,
body.page-template-page-home .ts-home-studio .ts-container,
body.home .home-studio .ts-container,
body.page-template-page-home-php .home-studio .ts-container,
body.page-template-page-home .home-studio .ts-container,
body.home .studio-section .ts-container,
body.page-template-page-home-php .studio-section .ts-container,
body.page-template-page-home .studio-section .ts-container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.home .ts-home-studio h2,
body.page-template-page-home-php .ts-home-studio h2,
body.page-template-page-home .ts-home-studio h2,
body.home .home-studio h2,
body.page-template-page-home-php .home-studio h2,
body.page-template-page-home .home-studio h2,
body.home .studio-section h2,
body.page-template-page-home-php .studio-section h2,
body.page-template-page-home .studio-section h2 {
    margin: 0 0 34px !important;
    padding-bottom: 14px !important;
    display: inline-block !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(26px, 2.7vw, 38px) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: -0.025em !important;
}

/* Gallery grid */
body.home .ts-studio-grid,
body.page-template-page-home-php .ts-studio-grid,
body.page-template-page-home .ts-studio-grid,
body.home .studio-grid,
body.page-template-page-home-php .studio-grid,
body.page-template-page-home .studio-grid,
body.home .ts-home-studio ul.products,
body.page-template-page-home-php .ts-home-studio ul.products,
body.page-template-page-home .ts-home-studio ul.products,
body.home .studio-section ul.products,
body.page-template-page-home-php .studio-section ul.products,
body.page-template-page-home .studio-section ul.products {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 22px !important;
    list-style: none !important;
}

/* Studio image/card */
body.home .ts-studio-grid > *,
body.page-template-page-home-php .ts-studio-grid > *,
body.page-template-page-home .ts-studio-grid > *,
body.home .studio-grid > *,
body.page-template-page-home-php .studio-grid > *,
body.page-template-page-home .studio-grid > *,
body.home .ts-home-studio ul.products li.product,
body.page-template-page-home-php .ts-home-studio ul.products li.product,
body.page-template-page-home .ts-home-studio ul.products li.product,
body.home .studio-section ul.products li.product,
body.page-template-page-home-php .studio-section ul.products li.product,
body.page-template-page-home .studio-section ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

body.home .ts-studio-grid img,
body.page-template-page-home-php .ts-studio-grid img,
body.page-template-page-home .ts-studio-grid img,
body.home .studio-grid img,
body.page-template-page-home-php .studio-grid img,
body.page-template-page-home .studio-grid img,
body.home .ts-home-studio ul.products li.product img,
body.page-template-page-home-php .ts-home-studio ul.products li.product img,
body.page-template-page-home .ts-home-studio ul.products li.product img,
body.home .studio-section ul.products li.product img,
body.page-template-page-home-php .studio-section ul.products li.product img,
body.page-template-page-home .studio-section ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 14px !important;
    transition: transform 220ms ease !important;
}

body.home .ts-studio-grid a:hover img,
body.page-template-page-home-php .ts-studio-grid a:hover img,
body.page-template-page-home .ts-studio-grid a:hover img,
body.home .studio-grid a:hover img,
body.page-template-page-home-php .studio-grid a:hover img,
body.page-template-page-home .studio-grid a:hover img {
    transform: scale(1.035) !important;
}

/* Hide product text/buttons if the studio section uses product cards */
body.home .ts-home-studio ul.products li.product .woocommerce-loop-product__title,
body.home .ts-home-studio ul.products li.product .price,
body.home .ts-home-studio ul.products li.product .button,
body.page-template-page-home-php .ts-home-studio ul.products li.product .woocommerce-loop-product__title,
body.page-template-page-home-php .ts-home-studio ul.products li.product .price,
body.page-template-page-home-php .ts-home-studio ul.products li.product .button,
body.page-template-page-home .ts-home-studio ul.products li.product .woocommerce-loop-product__title,
body.page-template-page-home .ts-home-studio ul.products li.product .price,
body.page-template-page-home .ts-home-studio ul.products li.product .button {
    display: none !important;
}

/* Responsive */
@media (max-width: 1180px) {
    body.home .ts-studio-grid,
    body.page-template-page-home-php .ts-studio-grid,
    body.page-template-page-home .ts-studio-grid,
    body.home .studio-grid,
    body.page-template-page-home-php .studio-grid,
    body.page-template-page-home .studio-grid,
    body.home .ts-home-studio ul.products,
    body.page-template-page-home-php .ts-home-studio ul.products,
    body.page-template-page-home .ts-home-studio ul.products,
    body.home .studio-section ul.products,
    body.page-template-page-home-php .studio-section ul.products,
    body.page-template-page-home .studio-section ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 860px) {
    body.home .ts-home-newsletter .ts-container,
    body.page-template-page-home-php .ts-home-newsletter .ts-container,
    body.page-template-page-home .ts-home-newsletter .ts-container,
    body.home .home-newsletter .ts-container,
    body.page-template-page-home-php .home-newsletter .ts-container,
    body.page-template-page-home .home-newsletter .ts-container,
    body.home .newsletter-section .ts-container,
    body.page-template-page-home-php .newsletter-section .ts-container,
    body.page-template-page-home .newsletter-section .ts-container {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    body.home .ts-home-newsletter form,
    body.page-template-page-home-php .ts-home-newsletter form,
    body.page-template-page-home .ts-home-newsletter form,
    body.home .home-newsletter form,
    body.page-template-page-home-php .home-newsletter form,
    body.page-template-page-home .home-newsletter form,
    body.home .newsletter-section form,
    body.page-template-page-home-php .newsletter-section form,
    body.page-template-page-home .newsletter-section form {
        justify-content: flex-start !important;
    }

    body.home .ts-studio-grid,
    body.page-template-page-home-php .ts-studio-grid,
    body.page-template-page-home .ts-studio-grid,
    body.home .studio-grid,
    body.page-template-page-home-php .studio-grid,
    body.page-template-page-home .studio-grid,
    body.home .ts-home-studio ul.products,
    body.page-template-page-home-php .ts-home-studio ul.products,
    body.page-template-page-home .ts-home-studio ul.products,
    body.home .studio-section ul.products,
    body.page-template-page-home-php .studio-section ul.products,
    body.page-template-page-home .studio-section ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    body.home .ts-home-newsletter .ts-container,
    body.page-template-page-home-php .ts-home-newsletter .ts-container,
    body.page-template-page-home .ts-home-newsletter .ts-container,
    body.home .home-newsletter .ts-container,
    body.page-template-page-home-php .home-newsletter .ts-container,
    body.page-template-page-home .home-newsletter .ts-container,
    body.home .newsletter-section .ts-container,
    body.page-template-page-home-php .newsletter-section .ts-container,
    body.page-template-page-home .newsletter-section .ts-container,
    body.home .ts-home-studio .ts-container,
    body.page-template-page-home-php .ts-home-studio .ts-container,
    body.page-template-page-home .ts-home-studio .ts-container,
    body.home .home-studio .ts-container,
    body.page-template-page-home-php .home-studio .ts-container,
    body.page-template-page-home .home-studio .ts-container,
    body.home .studio-section .ts-container,
    body.page-template-page-home-php .studio-section .ts-container,
    body.page-template-page-home .studio-section .ts-container {
        width: min(100% - 28px, 1180px) !important;
    }

    body.home .ts-home-newsletter form,
    body.page-template-page-home-php .ts-home-newsletter form,
    body.page-template-page-home .ts-home-newsletter form,
    body.home .newsletter-section form,
    body.page-template-page-home-php .newsletter-section form,
    body.page-template-page-home .newsletter-section form {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body.home .ts-home-newsletter input[type="email"],
    body.home .ts-home-newsletter input[type="text"],
    body.home .ts-home-newsletter button,
    body.home .ts-home-newsletter input[type="submit"],
    body.page-template-page-home-php .ts-home-newsletter input[type="email"],
    body.page-template-page-home-php .ts-home-newsletter input[type="text"],
    body.page-template-page-home-php .ts-home-newsletter button,
    body.page-template-page-home-php .ts-home-newsletter input[type="submit"],
    body.page-template-page-home .ts-home-newsletter input[type="email"],
    body.page-template-page-home .ts-home-newsletter input[type="text"],
    body.page-template-page-home .ts-home-newsletter button,
    body.page-template-page-home .ts-home-newsletter input[type="submit"],
    body.home .newsletter-section input[type="email"],
    body.home .newsletter-section input[type="text"],
    body.home .newsletter-section button,
    body.home .newsletter-section input[type="submit"] {
        width: 100% !important;
    }

    body.home .ts-studio-grid,
    body.page-template-page-home-php .ts-studio-grid,
    body.page-template-page-home .ts-studio-grid,
    body.home .studio-grid,
    body.page-template-page-home-php .studio-grid,
    body.page-template-page-home .studio-grid,
    body.home .ts-home-studio ul.products,
    body.page-template-page-home-php .ts-home-studio ul.products,
    body.page-template-page-home .ts-home-studio ul.products,
    body.home .studio-section ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

/* ============================================================
   FINAL Homepage Newsletter + Gallery Fix
   Uses exact classes from page-home.php
============================================================ */

/* ---------- Newsletter section ---------- */

body.ts-home-template .ts-home-newsletter,
body.page-template-page-home .ts-home-newsletter,
body.page-template-page-home-php .ts-home-newsletter {
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(58px, 6vw, 84px) 0 !important;
    background:
        radial-gradient(circle at 12% 20%, rgba(125, 56, 164, 0.24), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(33, 128, 141, 0.16), transparent 30%),
        linear-gradient(135deg, #7d38a4 0%, #9b35e6 55%, #8f2ce3 100%) !important;
}

body.ts-home-template .ts-home-newsletter-inner,
body.page-template-page-home .ts-home-newsletter-inner,
body.page-template-page-home-php .ts-home-newsletter-inner {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: clamp(24px, 3vw, 34px) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px) !important;
    gap: 28px !important;
    align-items: center !important;
}

body.ts-home-template .ts-home-newsletter-copy,
body.page-template-page-home .ts-home-newsletter-copy,
body.page-template-page-home-php .ts-home-newsletter-copy {
    min-width: 0 !important;
}

body.ts-home-template .ts-home-newsletter-copy .section-title,
body.page-template-page-home .ts-home-newsletter-copy .section-title,
body.page-template-page-home-php .ts-home-newsletter-copy .section-title {
    display: inline-block !important;
    margin: 0 0 10px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(24px, 2.3vw, 34px) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: -0.025em !important;
}

body.ts-home-template .ts-home-newsletter-copy .section-subtitle,
body.page-template-page-home .ts-home-newsletter-copy .section-subtitle,
body.page-template-page-home-php .ts-home-newsletter-copy .section-subtitle {
    margin: 0 !important;
    max-width: 640px !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

body.ts-home-template .ts-home-newsletter-form,
body.page-template-page-home .ts-home-newsletter-form,
body.page-template-page-home-php .ts-home-newsletter-form {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

body.ts-home-template .ts-home-newsletter-form form,
body.page-template-page-home .ts-home-newsletter-form form,
body.page-template-page-home-php .ts-home-newsletter-form form,
body.ts-home-template .ts-home-newsletter-form .fluentform,
body.page-template-page-home .ts-home-newsletter-form .fluentform,
body.page-template-page-home-php .ts-home-newsletter-form .fluentform {
    width: 100% !important;
    margin: 0 !important;
}

/* Fluent Forms inline layout */
body.ts-home-template .ts-home-newsletter-form .ff-el-group,
body.page-template-page-home .ts-home-newsletter-form .ff-el-group,
body.page-template-page-home-php .ts-home-newsletter-form .ff-el-group {
    margin: 0 !important;
}

body.ts-home-template .ts-home-newsletter-form form,
body.page-template-page-home .ts-home-newsletter-form form,
body.page-template-page-home-php .ts-home-newsletter-form form {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

body.ts-home-template .ts-home-newsletter-form input[type="email"],
body.ts-home-template .ts-home-newsletter-form input[type="text"],
body.page-template-page-home .ts-home-newsletter-form input[type="email"],
body.page-template-page-home .ts-home-newsletter-form input[type="text"],
body.page-template-page-home-php .ts-home-newsletter-form input[type="email"],
body.page-template-page-home-php .ts-home-newsletter-form input[type="text"] {
    width: 100% !important;
    min-width: 230px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.16) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: var(--color-text, #063642) !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

body.ts-home-template .ts-home-newsletter-form button,
body.ts-home-template .ts-home-newsletter-form input[type="submit"],
body.page-template-page-home .ts-home-newsletter-form button,
body.page-template-page-home .ts-home-newsletter-form input[type="submit"],
body.page-template-page-home-php .ts-home-newsletter-form button,
body.page-template-page-home-php .ts-home-newsletter-form input[type="submit"] {
    min-width: 150px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 13px 22px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--color-primary, #21808d) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

/* ---------- Gallery / In the Studio ---------- */

body.ts-home-template .ts-home-gallery,
body.page-template-page-home .ts-home-gallery,
body.page-template-page-home-php .ts-home-gallery {
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(56px, 6vw, 84px) 0 90px !important;
    background: #ffffff !important;
}

body.ts-home-template .ts-home-gallery .ts-home-container,
body.page-template-page-home .ts-home-gallery .ts-home-container,
body.page-template-page-home-php .ts-home-gallery .ts-home-container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.ts-home-template .ts-home-gallery .section-title,
body.page-template-page-home .ts-home-gallery .section-title,
body.page-template-page-home-php .ts-home-gallery .section-title {
    display: inline-block !important;
    margin: 0 0 34px !important;
    padding-bottom: 14px !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(26px, 2.6vw, 38px) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: -0.025em !important;
}

body.ts-home-template .ts-home-gallery-grid,
body.page-template-page-home .ts-home-gallery-grid,
body.page-template-page-home-php .ts-home-gallery-grid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

body.ts-home-template .ts-gallery-product,
body.page-template-page-home .ts-gallery-product,
body.page-template-page-home-php .ts-gallery-product {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

body.ts-home-template .ts-gallery-product:hover,
body.page-template-page-home .ts-gallery-product:hover,
body.page-template-page-home-php .ts-gallery-product:hover {
    transform: translateY(-4px) !important;
    border-color: var(--color-primary, #21808d) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12) !important;
}

body.ts-home-template .ts-gallery-product-inner,
body.page-template-page-home .ts-gallery-product-inner,
body.page-template-page-home-php .ts-gallery-product-inner {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

body.ts-home-template .ts-gallery-product-img,
body.page-template-page-home .ts-gallery-product-img,
body.page-template-page-home-php .ts-gallery-product-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 16px !important;
    transition: opacity 220ms ease, transform 220ms ease !important;
}

body.ts-home-template .ts-gallery-product-img--hover,
body.page-template-page-home .ts-gallery-product-img--hover,
body.page-template-page-home-php .ts-gallery-product-img--hover {
    opacity: 0 !important;
}

body.ts-home-template .ts-gallery-product:hover .ts-gallery-product-img--primary,
body.page-template-page-home .ts-gallery-product:hover .ts-gallery-product-img--primary,
body.page-template-page-home-php .ts-gallery-product:hover .ts-gallery-product-img--primary {
    opacity: 0 !important;
    transform: scale(1.04) !important;
}

body.ts-home-template .ts-gallery-product:hover .ts-gallery-product-img--hover,
body.page-template-page-home .ts-gallery-product:hover .ts-gallery-product-img--hover,
body.page-template-page-home-php .ts-gallery-product:hover .ts-gallery-product-img--hover {
    opacity: 1 !important;
    transform: scale(1.02) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    body.ts-home-template .ts-home-gallery-grid,
    body.page-template-page-home .ts-home-gallery-grid,
    body.page-template-page-home-php .ts-home-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body.ts-home-template .ts-home-newsletter-inner,
    body.page-template-page-home .ts-home-newsletter-inner,
    body.page-template-page-home-php .ts-home-newsletter-inner {
        grid-template-columns: 1fr !important;
    }

    body.ts-home-template .ts-home-newsletter-form,
    body.page-template-page-home .ts-home-newsletter-form,
    body.page-template-page-home-php .ts-home-newsletter-form {
        justify-content: flex-start !important;
    }

    body.ts-home-template .ts-home-gallery-grid,
    body.page-template-page-home .ts-home-gallery-grid,
    body.page-template-page-home-php .ts-home-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    body.ts-home-template .ts-home-newsletter-inner,
    body.ts-home-template .ts-home-gallery .ts-home-container,
    body.page-template-page-home .ts-home-newsletter-inner,
    body.page-template-page-home .ts-home-gallery .ts-home-container,
    body.page-template-page-home-php .ts-home-newsletter-inner,
    body.page-template-page-home-php .ts-home-gallery .ts-home-container {
        width: min(100% - 28px, 1180px) !important;
    }

    body.ts-home-template .ts-home-newsletter-form form,
    body.page-template-page-home .ts-home-newsletter-form form,
    body.page-template-page-home-php .ts-home-newsletter-form form {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body.ts-home-template .ts-home-newsletter-form input[type="email"],
    body.ts-home-template .ts-home-newsletter-form input[type="text"],
    body.ts-home-template .ts-home-newsletter-form button,
    body.ts-home-template .ts-home-newsletter-form input[type="submit"],
    body.page-template-page-home .ts-home-newsletter-form input[type="email"],
    body.page-template-page-home .ts-home-newsletter-form input[type="text"],
    body.page-template-page-home .ts-home-newsletter-form button,
    body.page-template-page-home .ts-home-newsletter-form input[type="submit"],
    body.page-template-page-home-php .ts-home-newsletter-form input[type="email"],
    body.page-template-page-home-php .ts-home-newsletter-form input[type="text"],
    body.page-template-page-home-php .ts-home-newsletter-form button,
    body.page-template-page-home-php .ts-home-newsletter-form input[type="submit"] {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.ts-home-template .ts-home-gallery-grid,
    body.page-template-page-home .ts-home-gallery-grid,
    body.page-template-page-home-php .ts-home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 420px) {
    body.ts-home-template .ts-home-gallery-grid,
    body.page-template-page-home .ts-home-gallery-grid,
    body.page-template-page-home-php .ts-home-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   FINAL Homepage Contact CTA + Trust Strip Fix
   Uses exact classes from page-home.php
============================================================ */

/* ---------- Contact CTA ---------- */

body.ts-home-template .ts-home-contact,
body.page-template-page-home .ts-home-contact,
body.page-template-page-home-php .ts-home-contact {
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(64px, 7vw, 96px) 0 !important;
    background:
        radial-gradient(circle at 12% 20%, rgba(125, 56, 164, 0.10), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(33, 128, 141, 0.10), transparent 30%),
        #ffffff !important;
}

body.ts-home-template .ts-home-contact-inner,
body.page-template-page-home .ts-home-contact-inner,
body.page-template-page-home-php .ts-home-contact-inner {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: clamp(34px, 4vw, 48px) !important;
    border-radius: 24px !important;
    background:
        linear-gradient(135deg, rgba(33, 128, 141, 0.08), rgba(125, 56, 164, 0.055)),
        #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.075) !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 28px !important;
    align-items: center !important;
}

body.ts-home-template .ts-home-contact-content,
body.page-template-page-home .ts-home-contact-content,
body.page-template-page-home-php .ts-home-contact-content {
    min-width: 0 !important;
}

body.ts-home-template .ts-home-contact .section-title,
body.page-template-page-home .ts-home-contact .section-title,
body.page-template-page-home-php .ts-home-contact .section-title {
    display: inline-block !important;
    margin: 0 0 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.035em !important;
}

body.ts-home-template .ts-home-contact .section-subtitle,
body.page-template-page-home .ts-home-contact .section-subtitle,
body.page-template-page-home-php .ts-home-contact .section-subtitle {
    max-width: 680px !important;
    margin: 0 !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

body.ts-home-template .ts-home-contact-cta,
body.page-template-page-home .ts-home-contact-cta,
body.page-template-page-home-php .ts-home-contact-cta {
    min-width: 150px !important;
    min-height: 52px !important;
    padding: 15px 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--color-primary, #21808d) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow: 0 14px 32px rgba(33, 128, 141, 0.22) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

body.ts-home-template .ts-home-contact-cta:hover,
body.page-template-page-home .ts-home-contact-cta:hover,
body.page-template-page-home-php .ts-home-contact-cta:hover {
    transform: translateY(-2px) !important;
    background: var(--color-primary-hover, #1b6f79) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 42px rgba(33, 128, 141, 0.28) !important;
}

/* ---------- Trust Strip ---------- */

body.ts-home-template .ts-home-trust,
body.page-template-page-home .ts-home-trust,
body.page-template-page-home-php .ts-home-trust {
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(56px, 6vw, 76px) 0 clamp(70px, 7vw, 100px) !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
}

body.ts-home-template .ts-home-trust > .container,
body.page-template-page-home .ts-home-trust > .container,
body.page-template-page-home-php .ts-home-trust > .container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.ts-home-template .ts-checkout-trust-inner,
body.page-template-page-home .ts-checkout-trust-inner,
body.page-template-page-home-php .ts-checkout-trust-inner {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

body.ts-home-template .ts-checkout-trust-item,
body.page-template-page-home .ts-checkout-trust-item,
body.page-template-page-home-php .ts-checkout-trust-item {
    min-height: 132px !important;
    padding: 26px 24px !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 14% 18%, rgba(33, 128, 141, 0.12), transparent 34%),
        #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.055) !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

body.ts-home-template .ts-checkout-trust-item:hover,
body.page-template-page-home .ts-checkout-trust-item:hover,
body.page-template-page-home-php .ts-checkout-trust-item:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(33, 128, 141, 0.34) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09) !important;
}

body.ts-home-template .ts-checkout-trust-label,
body.page-template-page-home .ts-checkout-trust-label,
body.page-template-page-home-php .ts-checkout-trust-label {
    display: block !important;
    color: var(--color-text, #063642) !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 950 !important;
    letter-spacing: -0.015em !important;
}

body.ts-home-template .ts-checkout-trust-text,
body.page-template-page-home .ts-checkout-trust-text,
body.page-template-page-home-php .ts-checkout-trust-text {
    display: block !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    body.ts-home-template .ts-home-contact-inner,
    body.page-template-page-home .ts-home-contact-inner,
    body.page-template-page-home-php .ts-home-contact-inner {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    body.ts-home-template .ts-home-contact-cta,
    body.page-template-page-home .ts-home-contact-cta,
    body.page-template-page-home-php .ts-home-contact-cta {
        width: max-content !important;
    }

    body.ts-home-template .ts-checkout-trust-inner,
    body.page-template-page-home .ts-checkout-trust-inner,
    body.page-template-page-home-php .ts-checkout-trust-inner {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    body.ts-home-template .ts-home-contact-inner,
    body.ts-home-template .ts-home-trust > .container,
    body.page-template-page-home .ts-home-contact-inner,
    body.page-template-page-home .ts-home-trust > .container,
    body.page-template-page-home-php .ts-home-contact-inner,
    body.page-template-page-home-php .ts-home-trust > .container {
        width: min(100% - 28px, 1180px) !important;
    }

    body.ts-home-template .ts-home-contact-inner,
    body.page-template-page-home .ts-home-contact-inner,
    body.page-template-page-home-php .ts-home-contact-inner {
        padding: 26px 22px !important;
        border-radius: 20px !important;
    }

    body.ts-home-template .ts-home-contact-cta,
    body.page-template-page-home .ts-home-contact-cta,
    body.page-template-page-home-php .ts-home-contact-cta {
        width: 100% !important;
    }

    body.ts-home-template .ts-checkout-trust-item,
    body.page-template-page-home .ts-checkout-trust-item,
    body.page-template-page-home-php .ts-checkout-trust-item {
        min-height: auto !important;
        padding: 22px !important;
    }
}

/* ============================================================
   FINAL Homepage Brand Cards + Blog Fallback Image Fix
   Uses exact homepage classes from page-home.php
============================================================ */

/* ---------- Brand Collection Section ---------- */

body.ts-home-template .ts-home-collections,
body.page-template-page-home .ts-home-collections,
body.page-template-page-home-php .ts-home-collections {
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(58px, 6vw, 84px) 0 !important;
    background: #ffffff !important;
}

body.ts-home-template .ts-home-collections > .container,
body.page-template-page-home .ts-home-collections > .container,
body.page-template-page-home-php .ts-home-collections > .container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.ts-home-template .ts-home-collections .section-title,
body.page-template-page-home .ts-home-collections .section-title,
body.page-template-page-home-php .ts-home-collections .section-title {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.035em !important;
    text-align: center !important;
}

body.ts-home-template .ts-home-collections .section-subtitle,
body.page-template-page-home .ts-home-collections .section-subtitle,
body.page-template-page-home-php .ts-home-collections .section-subtitle {
    max-width: 720px !important;
    margin: 0 auto 34px !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    text-align: center !important;
}

body.ts-home-template .ts-home-collections-grid,
body.page-template-page-home .ts-home-collections-grid,
body.page-template-page-home-php .ts-home-collections-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

/* Match the Canadian Made / Secure Checkout / Crystal Care Guarantee cards */
body.ts-home-template .ts-collection-card,
body.page-template-page-home .ts-collection-card,
body.page-template-page-home-php .ts-collection-card {
    min-height: 132px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 14% 18%, rgba(33, 128, 141, 0.12), transparent 34%),
        #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.055) !important;
    overflow: hidden !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

body.ts-home-template .ts-collection-card:hover,
body.page-template-page-home .ts-collection-card:hover,
body.page-template-page-home-php .ts-collection-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(33, 128, 141, 0.34) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09) !important;
}

body.ts-home-template .ts-collection-card-inner,
body.page-template-page-home .ts-collection-card-inner,
body.page-template-page-home-php .ts-collection-card-inner {
    width: 100% !important;
    min-height: 132px !important;
    padding: 26px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    color: inherit !important;
}

body.ts-home-template .ts-collection-card-body,
body.page-template-page-home .ts-collection-card-body,
body.page-template-page-home-php .ts-collection-card-body {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
}

body.ts-home-template .ts-collection-card-title,
body.page-template-page-home .ts-collection-card-title,
body.page-template-page-home-php .ts-collection-card-title {
    margin: 0 !important;
    color: var(--color-text, #063642) !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 950 !important;
    letter-spacing: -0.015em !important;
    text-align: center !important;
}

body.ts-home-template .ts-collection-card-text,
body.page-template-page-home .ts-collection-card-text,
body.page-template-page-home-php .ts-collection-card-text {
    margin: 0 !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: center !important;
}

body.ts-home-template .ts-collection-card-link,
body.page-template-page-home .ts-collection-card-link,
body.page-template-page-home-php .ts-collection-card-link {
    color: var(--color-primary, #21808d) !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    text-align: center !important;
}

/* ---------- Blog Fallback Image ---------- */

body.ts-home-template .ts-home-blog .ts-blog-card-thumb,
body.page-template-page-home .ts-home-blog .ts-blog-card-thumb,
body.page-template-page-home-php .ts-home-blog .ts-blog-card-thumb {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(125, 56, 164, 0.16), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(33, 128, 141, 0.12), transparent 34%),
        #f7f7f7 !important;
}

body.ts-home-template .ts-home-blog .ts-blog-card-thumb img,
body.page-template-page-home .ts-home-blog .ts-blog-card-thumb img,
body.page-template-page-home-php .ts-home-blog .ts-blog-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

body.ts-home-template .ts-home-blog .ts-blog-card-thumb--fallback,
body.page-template-page-home .ts-home-blog .ts-blog-card-thumb--fallback,
body.page-template-page-home-php .ts-home-blog .ts-blog-card-thumb--fallback {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 26px !important;
}

body.ts-home-template .ts-home-blog .ts-blog-card-thumb--fallback img,
body.page-template-page-home .ts-home-blog .ts-blog-card-thumb--fallback img,
body.page-template-page-home-php .ts-home-blog .ts-blog-card-thumb--fallback img {
    width: auto !important;
    max-width: 70% !important;
    height: auto !important;
    max-height: 72% !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    body.ts-home-template .ts-home-collections-grid,
    body.page-template-page-home .ts-home-collections-grid,
    body.page-template-page-home-php .ts-home-collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    body.ts-home-template .ts-home-collections > .container,
    body.page-template-page-home .ts-home-collections > .container,
    body.page-template-page-home-php .ts-home-collections > .container {
        width: min(100% - 28px, 1180px) !important;
    }

    body.ts-home-template .ts-home-collections-grid,
    body.page-template-page-home .ts-home-collections-grid,
    body.page-template-page-home-php .ts-home-collections-grid {
        grid-template-columns: 1fr !important;
    }

    body.ts-home-template .ts-collection-card-inner,
    body.page-template-page-home .ts-collection-card-inner,
    body.page-template-page-home-php .ts-collection-card-inner {
        min-height: 118px !important;
        padding: 22px !important;
    }
}

/* ============================================================
   FINAL Homepage Section Heading + Trust Card Alignment Fix
   Paste at VERY BOTTOM of home.css
============================================================ */

/* Make main homepage section containers consistent */
body.ts-home-template .ts-home-section > .container,
body.page-template-page-home .ts-home-section > .container,
body.page-template-page-home-php .ts-home-section > .container,
body.ts-home-template .ts-home-section > .ts-home-container,
body.page-template-page-home .ts-home-section > .ts-home-container,
body.page-template-page-home-php .ts-home-section > .ts-home-container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Full centered section headings */
body.ts-home-template .ts-home-collections .section-title,
body.ts-home-template .ts-home-blog .section-title,
body.ts-home-template .ts-home-gallery .section-title,
body.ts-home-template .ts-home-contact .section-title,
body.ts-home-template .ts-home-trust .section-title,
body.page-template-page-home .ts-home-collections .section-title,
body.page-template-page-home .ts-home-blog .section-title,
body.page-template-page-home .ts-home-gallery .section-title,
body.page-template-page-home .ts-home-contact .section-title,
body.page-template-page-home .ts-home-trust .section-title,
body.page-template-page-home-php .ts-home-collections .section-title,
body.page-template-page-home-php .ts-home-blog .section-title,
body.page-template-page-home-php .ts-home-gallery .section-title,
body.page-template-page-home-php .ts-home-contact .section-title,
body.page-template-page-home-php .ts-home-trust .section-title {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.035em !important;
    text-align: center !important;
}

/* Full centered subtitles */
body.ts-home-template .ts-home-collections .section-subtitle,
body.ts-home-template .ts-home-blog .section-subtitle,
body.ts-home-template .ts-home-gallery .section-subtitle,
body.ts-home-template .ts-home-contact .section-subtitle,
body.ts-home-template .ts-home-trust .section-subtitle,
body.page-template-page-home .ts-home-collections .section-subtitle,
body.page-template-page-home .ts-home-blog .section-subtitle,
body.page-template-page-home .ts-home-gallery .section-subtitle,
body.page-template-page-home .ts-home-contact .section-subtitle,
body.page-template-page-home .ts-home-trust .section-subtitle,
body.page-template-page-home-php .ts-home-collections .section-subtitle,
body.page-template-page-home-php .ts-home-blog .section-subtitle,
body.page-template-page-home-php .ts-home-gallery .section-subtitle,
body.page-template-page-home-php .ts-home-contact .section-subtitle,
body.page-template-page-home-php .ts-home-trust .section-subtitle {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto 34px !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    text-align: center !important;
}

/* Trust card wrapper */
body.ts-home-template .ts-checkout-trust-inner,
body.page-template-page-home .ts-checkout-trust-inner,
body.page-template-page-home-php .ts-checkout-trust-inner {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

/* Trust cards centered */
body.ts-home-template .ts-checkout-trust-item,
body.page-template-page-home .ts-checkout-trust-item,
body.page-template-page-home-php .ts-checkout-trust-item {
    min-height: 132px !important;
    padding: 26px 24px !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 14% 18%, rgba(33, 128, 141, 0.12), transparent 34%),
        #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.055) !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
}

body.ts-home-template .ts-checkout-trust-item:hover,
body.page-template-page-home .ts-checkout-trust-item:hover,
body.page-template-page-home-php .ts-checkout-trust-item:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(33, 128, 141, 0.34) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09) !important;
}

/* Trust card title text centered */
body.ts-home-template .ts-checkout-trust-label,
body.page-template-page-home .ts-checkout-trust-label,
body.page-template-page-home-php .ts-checkout-trust-label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    color: var(--color-text, #063642) !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 950 !important;
    letter-spacing: -0.015em !important;
    text-align: center !important;
}

/* Trust card description centered */
body.ts-home-template .ts-checkout-trust-text,
body.page-template-page-home .ts-checkout-trust-text,
body.page-template-page-home-php .ts-checkout-trust-text {
    display: block !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: center !important;
}

/* Blog section heading area full width */
body.ts-home-template .ts-home-blog,
body.page-template-page-home .ts-home-blog,
body.page-template-page-home-php .ts-home-blog {
    text-align: center !important;
}

body.ts-home-template .ts-home-blog .ts-home-container,
body.page-template-page-home .ts-home-blog .ts-home-container,
body.page-template-page-home-php .ts-home-blog .ts-home-container,
body.ts-home-template .ts-home-blog .container,
body.page-template-page-home .ts-home-blog .container,
body.page-template-page-home-php .ts-home-blog .container {
    text-align: center !important;
}

/* Keep blog cards text left inside cards */
body.ts-home-template .ts-home-blog .ts-blog-card,
body.page-template-page-home .ts-home-blog .ts-blog-card,
body.page-template-page-home-php .ts-home-blog .ts-blog-card,
body.ts-home-template .ts-home-blog .ts-blog-card-body,
body.page-template-page-home .ts-home-blog .ts-blog-card-body,
body.page-template-page-home-php .ts-home-blog .ts-blog-card-body {
    text-align: left !important;
}

/* Responsive */
@media (max-width: 900px) {
    body.ts-home-template .ts-checkout-trust-inner,
    body.page-template-page-home .ts-checkout-trust-inner,
    body.page-template-page-home-php .ts-checkout-trust-inner {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    body.ts-home-template .ts-home-section > .container,
    body.page-template-page-home .ts-home-section > .container,
    body.page-template-page-home-php .ts-home-section > .container,
    body.ts-home-template .ts-home-section > .ts-home-container,
    body.page-template-page-home .ts-home-section > .ts-home-container,
    body.page-template-page-home-php .ts-home-section > .ts-home-container {
        width: min(100% - 28px, 1180px) !important;
    }

    body.ts-home-template .ts-checkout-trust-item,
    body.page-template-page-home .ts-checkout-trust-item,
    body.page-template-page-home-php .ts-checkout-trust-item {
        min-height: 118px !important;
        padding: 22px !important;
    }
}

/* ============================================================
   FINAL Homepage Blog + Contact CTA Alignment Fix
   Exact classes from page-home.php
============================================================ */

/* Blog section header stays centered */
body.ts-home-template .ts-home-blog,
body.page-template-page-home .ts-home-blog,
body.page-template-page-home-php .ts-home-blog {
    width: 100% !important;
    padding: clamp(64px, 7vw, 96px) 0 !important;
    background: #ffffff !important;
    text-align: center !important;
}

body.ts-home-template .ts-home-blog > .container,
body.page-template-page-home .ts-home-blog > .container,
body.page-template-page-home-php .ts-home-blog > .container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.ts-home-template .ts-home-blog .section-title,
body.page-template-page-home .ts-home-blog .section-title,
body.page-template-page-home-php .ts-home-blog .section-title {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(34px, 4vw, 54px) !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
    text-align: center !important;
}

body.ts-home-template .ts-home-blog .section-subtitle,
body.page-template-page-home .ts-home-blog .section-subtitle,
body.page-template-page-home-php .ts-home-blog .section-subtitle {
    display: block !important;
    width: 100% !important;
    max-width: 780px !important;
    margin: 0 auto 42px !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    text-align: center !important;
}

/* Blog card grid */
body.ts-home-template .ts-home-blog-grid,
body.page-template-page-home .ts-home-blog-grid,
body.page-template-page-home-php .ts-home-blog-grid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
}

/* Blog cards */
body.ts-home-template .ts-blog-card,
body.page-template-page-home .ts-blog-card,
body.page-template-page-home-php .ts-blog-card {
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08) !important;
}

body.ts-home-template .ts-blog-card-inner,
body.page-template-page-home .ts-blog-card-inner,
body.page-template-page-home-php .ts-blog-card-inner {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Featured image area */
body.ts-home-template .ts-blog-card-thumb,
body.page-template-page-home .ts-blog-card-thumb,
body.page-template-page-home-php .ts-blog-card-thumb {
    width: 100% !important;
    height: 170px !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(125, 56, 164, 0.13), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(33, 128, 141, 0.12), transparent 34%),
        linear-gradient(135deg, #f7f2fb 0%, #f4f8f8 100%) !important;
}

/* Real featured images crop nicely */
body.ts-home-template .ts-blog-card-thumb--image img,
body.page-template-page-home .ts-blog-card-thumb--image img,
body.page-template-page-home-php .ts-blog-card-thumb--image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Logo/OG fallback should fit, not crop */
body.ts-home-template .ts-blog-card-thumb--fallback,
body.page-template-page-home .ts-blog-card-thumb--fallback,
body.page-template-page-home-php .ts-blog-card-thumb--fallback {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 28px !important;
}

body.ts-home-template .ts-blog-card-thumb--fallback img,
body.page-template-page-home .ts-blog-card-thumb--fallback img,
body.page-template-page-home-php .ts-blog-card-thumb--fallback img {
    width: auto !important;
    max-width: 74% !important;
    height: auto !important;
    max-height: 82px !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Blog card body stays left aligned */
body.ts-home-template .ts-blog-card-body,
body.page-template-page-home .ts-blog-card-body,
body.page-template-page-home-php .ts-blog-card-body {
    flex: 1 1 auto !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

body.ts-home-template .ts-blog-card-title,
body.page-template-page-home .ts-blog-card-title,
body.page-template-page-home-php .ts-blog-card-title {
    margin: 0 0 16px !important;
    color: var(--color-text, #063642) !important;
    font-size: 23px !important;
    line-height: 1.13 !important;
    font-weight: 950 !important;
    letter-spacing: -0.035em !important;
    text-align: left !important;
}

body.ts-home-template .ts-blog-card-excerpt,
body.page-template-page-home .ts-blog-card-excerpt,
body.page-template-page-home-php .ts-blog-card-excerpt {
    margin: 0 0 22px !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    text-align: left !important;
}

body.ts-home-template .ts-blog-card-readmore,
body.page-template-page-home .ts-blog-card-readmore,
body.page-template-page-home-php .ts-blog-card-readmore {
    margin-top: auto !important;
    color: var(--color-primary, #21808d) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-align: left !important;
}

/* ============================================================
   Questions / Custom Order CTA
   Should NOT be centered like a section heading
============================================================ */

body.ts-home-template .ts-home-contact,
body.page-template-page-home .ts-home-contact,
body.page-template-page-home-php .ts-home-contact {
    width: 100% !important;
    padding: clamp(64px, 7vw, 96px) 0 !important;
    background:
        radial-gradient(circle at 0% 10%, rgba(125, 56, 164, 0.08), transparent 30%),
        radial-gradient(circle at 100% 10%, rgba(33, 128, 141, 0.08), transparent 30%),
        #ffffff !important;
}

body.ts-home-template .ts-home-contact-inner,
body.page-template-page-home .ts-home-contact-inner,
body.page-template-page-home-php .ts-home-contact-inner {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: clamp(34px, 4vw, 48px) !important;
    border-radius: 24px !important;
    background:
        linear-gradient(135deg, rgba(33, 128, 141, 0.08), rgba(125, 56, 164, 0.055)),
        #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.075) !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 28px !important;
    align-items: center !important;
    text-align: left !important;
}

body.ts-home-template .ts-home-contact-content,
body.page-template-page-home .ts-home-contact-content,
body.page-template-page-home-php .ts-home-contact-content {
    min-width: 0 !important;
    text-align: left !important;
}

/* Override global centered section heading only inside contact CTA */
body.ts-home-template .ts-home-contact .section-title,
body.page-template-page-home .ts-home-contact .section-title,
body.page-template-page-home-php .ts-home-contact .section-title {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid var(--color-primary, #21808d) !important;
    color: var(--color-primary, #21808d) !important;
    font-size: clamp(30px, 3.4vw, 48px) !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    text-align: left !important;
}

body.ts-home-template .ts-home-contact .section-subtitle,
body.page-template-page-home .ts-home-contact .section-subtitle,
body.page-template-page-home-php .ts-home-contact .section-subtitle {
    max-width: 680px !important;
    margin: 0 !important;
    color: var(--color-text-secondary, #626c71) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    text-align: left !important;
}

body.ts-home-template .ts-home-contact-cta,
body.page-template-page-home .ts-home-contact-cta,
body.page-template-page-home-php .ts-home-contact-cta {
    min-width: 150px !important;
    min-height: 52px !important;
    padding: 15px 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--color-primary, #21808d) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow: 0 14px 32px rgba(33, 128, 141, 0.22) !important;
}

/* Responsive */
@media (max-width: 980px) {
    body.ts-home-template .ts-home-blog-grid,
    body.page-template-page-home .ts-home-blog-grid,
    body.page-template-page-home-php .ts-home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.ts-home-template .ts-home-contact-inner,
    body.page-template-page-home .ts-home-contact-inner,
    body.page-template-page-home-php .ts-home-contact-inner {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    body.ts-home-template .ts-home-blog > .container,
    body.ts-home-template .ts-home-contact-inner,
    body.page-template-page-home .ts-home-blog > .container,
    body.page-template-page-home .ts-home-contact-inner,
    body.page-template-page-home-php .ts-home-blog > .container,
    body.page-template-page-home-php .ts-home-contact-inner {
        width: min(100% - 28px, 1180px) !important;
    }

    body.ts-home-template .ts-home-blog-grid,
    body.page-template-page-home .ts-home-blog-grid,
    body.page-template-page-home-php .ts-home-blog-grid {
        grid-template-columns: 1fr !important;
    }

    body.ts-home-template .ts-home-contact-cta,
    body.page-template-page-home .ts-home-contact-cta,
    body.page-template-page-home-php .ts-home-contact-cta {
        width: 100% !important;
    }
}