/* WRAPPER */
.qtech-insights-wrapper {
    width: 100%;
}

/* HEADER */
.qtech-insights-header {
    margin-bottom: 24px;
}

.qtech-insights-title {
    margin: 0;
}

/* GRID */
.qtech-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* COLUMN */
.qtech-insights-column {
    display: flex;
    flex-direction: column;
}

.qtech-insights-column-title {
    margin: 0 0 16px;
}

/* CAROUSEL WRAPPER */
.qtech-insights-carousel-wrapper {
    position: relative;
}

/* 🔥 CREATE SPACE FOR ARROWS */
.qtech-insights-swiper {
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
}

/* CARD */
.qtech-insights-card {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
}

/* BACKGROUND */
.qtech-insights-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* OVERLAY */
.qtech-insights-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* TITLE */
.qtech-insights-title-wrapper {
    position: absolute;
    right: 18px;
    bottom: 18px;
    max-width: 80%;
    transition: all 0.4s ease;
}

.qtech-insights-post-title {
    margin: 0;
    color: #fff;
}

/* HOVER */
.qtech-insights-card:hover .qtech-insights-card-bg {
    transform: scale(1.05);
}

.qtech-insights-card:hover .qtech-insights-title-wrapper {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* 🔥 NAVIGATION (FIXED & CLICKABLE) */
.qtech-insights-nav {
    position: absolute;
    bottom: 0; /* sits in padding space */
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 50; /* 🔥 above swiper */
}

/* BUTTONS */
.qtech-insights-prev,
.qtech-insights-next {
    border-radius: 999px;
    border: 1px solid #ff0000;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    font-size: 16px;
    cursor: pointer;
}

/* SWIPER */
.qtech-insights-swiper .swiper-wrapper {
    display: flex;
}

.qtech-insights-swiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
}

/* MOBILE */
@media (max-width: 767px) {
    .qtech-insights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .qtech-insights-card {
        height: 220px;
    }

    .qtech-insights-swiper {
        padding-bottom: 50px;
    }
}