.sec-kb {
    padding: 80px 0;
    /* background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0d1230 100%); */
    position: relative;
    overflow: hidden;
    background-image: url(	https://w.ladicdn.com/s1440x764/6960d20f81587800127bc6d7/banner-20260115044119-tlfef.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.sec-kb::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 212, 77, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sec-kb__title {
    text-transform: uppercase;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 56px;
    letter-spacing: 1px;
}

.sec-kb__swiper {
    width: 100%;
    overflow: hidden;
}

.sec-kb__grid {
    display: flex; /* Swiper default */
    gap: 0;
}

.sec-kb__card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 32px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease,
                background 0.4s ease;
    height: auto;
    box-sizing: border-box;
}

.sec-kb__card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 212, 77, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

/* Number watermark */
.sec-kb__card-num {
    position: absolute;
    top: -8px;
    right: 16px;
    font-size: 100px;
    font-weight: 900;
    color: rgba(232, 212, 77, 0.06);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s ease;
}

.sec-kb__card:hover .sec-kb__card-num {
    color: rgba(232, 212, 77, 0.12);
}

.sec-kb__card-content {
    position: relative;
    z-index: 1;
}

.sec-kb__card-title {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px;
    line-height: 1.5;
}

.sec-kb__card-title strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #e8d44d;
    margin-top: 4px;
}

.sec-kb__card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 14px;
    line-height: 1.6;
}

.sec-kb__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sec-kb__card-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 6px;
}

.sec-kb__card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: #e8d44d;
    border-radius: 50%;
}

/* Desktop Grid Layout (Overriding Swiper flex) */
@media (min-width: 769px) {
    .sec-kb__grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        transform: none !important; /* Disable swiper transform if it accidentally runs */
        width: 100% !important;
    }

    .sec-kb__card {
        width: 100% !important;
        margin: 0 !important;
    }

    .sec-kb__card:nth-child(5) {
        grid-column: span 2;
    }

    .sec-kb__pagination {
        display: none;
    }
}

@media (max-width: 768px) {
    .sec-kb {
        padding: 50px 0;
    }

    .sec-kb__title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .sec-kb__swiper {
        padding-bottom: 30px;
    }

    .sec-kb__card {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .sec-kb__card-num {
        font-size: 72px;
    }

    .sec-kb__card-title strong {
        font-size: 18px;
    }

    .sec-kb__pagination.swiper-pagination-bullets {
        bottom: 0;
    }

    .sec-kb__pagination .swiper-pagination-bullet {
        background: #e8d44d;
        opacity: 0.3;
    }

    .sec-kb__pagination .swiper-pagination-bullet-active {
        opacity: 1;
        width: 20px;
        border-radius: 4px;
    }
}
