/* VR Tuning Cards - Info cards section (like original vr-tuning.com/tuning/) */

.vrt-tuning-cards-section {
    padding: 50px 0;
    max-width: 1170px;
    margin: 0 auto;
}

.vrt-tuning-cards-grid {
    display: grid;
    /* Admin sets number of columns via the inline custom property
       `--vrt-tc-cols`. Default fallback = 3. Media queries below force
       the value down on tablet / mobile so the inline style can't make
       the grid display as a single column on desktop. */
    grid-template-columns: repeat(var(--vrt-tc-cols, 3), 1fr);
    gap: 30px;
    padding: 0 15px;
}

/* Card */
.vrt-tuning-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.vrt-tuning-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Card link wrapper */
.vrt-tuning-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vrt-tuning-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Card image */
.vrt-tuning-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.vrt-tuning-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vrt-tuning-card:hover .vrt-tuning-card-image img {
    transform: scale(1.05);
}

/* Card content */
.vrt-tuning-card-content {
    padding: 25px 25px 30px;
}

.vrt-tuning-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.3;
    font-family: 'Open Sans', Arial, sans-serif;
}

.vrt-tuning-card-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.vrt-tuning-card-text {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Responsive — override the inline custom property by setting it again
   inside the media query (specificity equal, source order wins). */
@media (max-width: 991px) {
    .vrt-tuning-cards-grid {
        --vrt-tc-cols: 2;
    }
}

@media (max-width: 600px) {
    .vrt-tuning-cards-grid {
        --vrt-tc-cols: 1;
    }

    .vrt-tuning-card-image {
        height: 180px;
    }
}
