/* Titan Nova Services Showcase */
.tnss-breakout,
.tnss-breakout * {
    box-sizing: border-box;
}

.tnss-force-full-width {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.tnss-section {
    width: 100%;
    padding: 28px 24px 54px;
    background: #050505;
    color: #ffffff;
    overflow: hidden;
}

.tnss-inner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.tnss-heading {
    margin: 0 0 22px;
    text-align: center;
}

.tnss-heading h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tnss-heading-prefix {
    color: #ffffff;
}

.tnss-heading-accent {
    color: #e30613;
}

.tnss-subtitle {
    max-width: 820px;
    margin: 0 auto;
    color: #f0f0f0;
    font-size: 14px;
    line-height: 1.65;
}

.tnss-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.tnss-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 0;
    box-shadow: none;
    color: #111111;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tnss-card:hover {
    border-color: #e30613;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
    transform: translateY(-5px);
}

.tnss-card-image-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 0;
    background: #f2f2f2;
}

.tnss-card-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform .45s ease;
}

.tnss-hover-zoom .tnss-card:hover .tnss-card-image {
    transform: scale(1.06);
}

.tnss-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 12px 16px;
    text-align: center;
}

.tnss-card-title {
    margin: 0 0 8px;
    color: #111111;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.tnss-card-description {
    margin: 0;
    color: #303030;
    font-size: 12px;
    line-height: 1.58;
}

@media (max-width: 1024px) {
    .tnss-section {
        padding: 26px 24px 46px;
    }

    .tnss-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .tnss-card-image-wrap {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .tnss-section {
        padding: 34px 18px 42px;
    }

    .tnss-heading {
        margin-bottom: 20px;
    }

    .tnss-heading h2 {
        font-size: 25px;
    }

    .tnss-subtitle {
        font-size: 13px;
    }

    .tnss-grid {
        /* Always show two service cards in each row on mobile. */
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .tnss-card-image-wrap {
        height: clamp(108px, 32vw, 155px);
    }

    .tnss-card-content {
        padding: 11px 10px 13px;
    }

    .tnss-card-title {
        margin-bottom: 6px;
        font-size: clamp(13px, 3.8vw, 16px);
        line-height: 1.25;
    }

    .tnss-card-description {
        font-size: clamp(11px, 3vw, 12px);
        line-height: 1.45;
    }
}
