/**
 * About Slider Shortcode Styles
 * Namespace: .ktech-about-slider
 */

.ktech-about-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.ktech-about-slider .swiper {
    width: 100%;
    height: 100%;
}

.ktech-about-slider .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.ktech-about-item {
    position: relative;
    width: 100%;
    min-height: 580px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Background Image Container */
.ktech-about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: #1e293b;
}

.ktech-about-image figure {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.ktech-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Fallback state if no image uploaded */
.ktech-about-image.is-empty-img {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Overlay & Caption Wrapper */
.ktech-about-caption-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 580px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0) 100%);
    box-sizing: border-box;
}

.ktech-about-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 0px;
    box-sizing: border-box;
}

.ktech-about-caption {
    max-width: 520px;
    color: #ffffff;
    text-align: left;
}

/* Pagination (01 —— 02 —— 03) */
.ktech-about-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    user-select: none;
}

.ktech-about-pagination .page-num {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
}

.ktech-about-pagination .page-num:hover {
    color: #ffffff;
}

.ktech-about-pagination .page-num.is-active {
    color: #0055ff;
    font-weight: 800;
}

.ktech-about-pagination .page-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    font-weight: 400;
}

/* Big Number (02) */
.ktech-about-number {
    font-size: 44px;
    font-weight: 800;
    color: #0055ff;
    line-height: 1;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

/* Heading */
.ktech-about-heading {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Content */
.ktech-about-content {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
}

.ktech-about-content p {
    margin-bottom: 14px;
    color: inherit;
}

.ktech-about-content p:last-child {
    margin-bottom: 0;
}

/* Navigation Buttons (< >) */
.ktech-about-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ktech-about-nav-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 0px;
    padding: 0;
    outline: none;
}

.ktech-about-nav-btn:hover {
    background: #0055ff;
    border-color: #0055ff;
    color: #ffffff;
}

.ktech-about-nav-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

/* =============================================================================
   MOBILE & TABLET RESPONSIVE (max-width: 991px)
   ============================================================================= */
@media (max-width: 991px) {
    .ktech-about-item {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    /* Image on top */
    .ktech-about-image {
        position: relative;
        width: 100%;
        height: 320px;
    }

    /* Overlay Top Pagination on Image */
    .ktech-about-pagination {
        position: absolute;
        top: -60%;
        left: 20px;
        z-index: 10;
        margin-bottom: 0;
        /* background: rgba(0, 0, 0, 0.35); */
        padding: 6px 14px;
        /* border-radius: 4px; */
        /* backdrop-filter: blur(4px); */
    }

    .ktech-about-pagination .page-num {
        color: rgba(255, 255, 255, 0.7);
    }

    .ktech-about-pagination .page-num.is-active {
        color: #0055ff;
    }

    /* Caption Below Image with White Background */
    .ktech-about-caption-wrapper {
        position: relative;
        min-height: auto;
        background: #ffffff;
        padding: 32px 24px;
    }

    .ktech-about-container {
        padding: 0;
        max-width: 100%;
    }

    .ktech-about-caption {
        max-width: 100%;
        color: #111827;
    }

    .ktech-about-number {
        font-size: 36px;
        margin-bottom: 14px;
        color: #0055ff;
    }

    .ktech-about-heading {
        font-size: 24px;
        color: #111827;
        margin-bottom: 16px;
        line-height: 1.35;
    }

    .ktech-about-content {
        font-size: 15px;
        color: #374151;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .ktech-about-content p {
        color: #374151;
    }

    /* Mobile Navigation Buttons */
    .ktech-about-nav-btn {
        width: 40px;
        height: 40px;
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #111827;
    }

    .ktech-about-nav-btn:hover {
        background: #0055ff;
        border-color: #0055ff;
        color: #ffffff;
    }
}