/* ===================================================
   OUR PRODUCTS SECTION — tvi-prod-*
   =================================================== */

.tvi-prod-section {
    padding: 80px 0 70px;
    background: #f5f8fe;
    position: relative;
    overflow: hidden;
}

/* Background grid pattern */
.tvi-prod-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,92,230,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,92,230,0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.tvi-prod-section::after {
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,120,255,0.10) 0%, transparent 65%);
    pointer-events: none;
}

/* ---- Section Header ---- */
.tvi-prod-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}
.tvi-prod-label {
    display: inline-block;
    background: rgba(0,92,230,0.08);
    border: 1px solid rgba(0,92,230,0.22);
    color: #005ce6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.tvi-prod-heading {
    font-size: 40px;
    font-weight: 800;
    color: #0a0f1e;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.tvi-prod-heading span {
    background: linear-gradient(90deg, #005ce6, #00b4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tvi-prod-sub {
    font-size: 15px;
    color: #5b6478;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Cards Grid (3 per row, last row centred) ---- */
.tvi-prod-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* ---- Single Card ---- */
.tvi-prod-card {
    flex: 0 0 calc(33.333% - 16px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e4eaf5;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(16,40,90,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tvi-prod-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 50px rgba(0,80,220,0.16);
    border-color: rgba(0,92,230,0.28);
}

/* ---- Image on top ---- */
.tvi-prod-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    /* placeholder tint until the product image is added */
    background: linear-gradient(135deg, #eaf1ff, #f6f9ff);
}
.tvi-prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.tvi-prod-card:hover .tvi-prod-img {
    transform: scale(1.06);
}

/* Colored icon — absolute top-right inside image */
.tvi-prod-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.3s;
}
.tvi-prod-card:hover .tvi-prod-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ---- Text body ---- */
.tvi-prod-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tvi-prod-title {
    font-size: 19px;
    font-weight: 700;
    color: #0a0f1e;
    margin: 0 0 8px;
    line-height: 1.35;
}
.tvi-prod-tagline {
    font-size: 14.5px;
    color: #5b6478;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}
.tvi-prod-link {
    font-size: 14px;
    font-weight: 700;
    color: #005ce6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tvi-prod-link i {
    transition: transform 0.3s;
}
.tvi-prod-card:hover .tvi-prod-link i {
    transform: translateX(4px);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .tvi-prod-heading { font-size: 32px; }
    .tvi-prod-card { flex-basis: calc(50% - 12px); }
}
@media (max-width: 575px) {
    .tvi-prod-section { padding: 60px 0 50px; }
    .tvi-prod-heading { font-size: 26px; }
    .tvi-prod-grid { gap: 16px; }
    .tvi-prod-card { flex-basis: 100%; }
}

/* ---- Hidden cards (revealed by Load More) ---- */
.tvi-prod-card--extra {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tvi-prod-card--extra.tvi-prod-card--visible {
    opacity: 1;
    transform: translateY(0);
}
.tvi-prod-card--extra.tvi-prod-card--visible:hover {
    transform: translateY(-7px);
}
