.kbt-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Mobile Filter Accordion Toggle */
.kbt-mobile-filter-toggle {
    display: none;
    background: #111111;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.kbt-toggle-arrow {
    transition: transform 0.3s ease;
}

.kbt-mobile-filter-toggle.active .kbt-toggle-arrow {
    transform: rotate(180deg);
}

/* Filter Bar Styling */
.kbt-filter-bar {
    background-color: #111111;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.kbt-filter-field {
    flex: 1 1 180px;
}

.kbt-filter-field input,
.kbt-filter-field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #ffffff;
    padding: 8px 4px;
    font-size: 12px;
    letter-spacing: 1px;
    outline: none;
    text-transform: uppercase;
}

.kbt-filter-field select option {
    background: #111111;
    color: #ffffff;
}

.kbt-search-btn {
    background-color: #555555;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.kbt-search-btn:hover {
    background-color: #777777;
}

/* Mobile Filter Behavior */
@media (max-width: 768px) {
    .kbt-mobile-filter-toggle {
        display: flex;
    }
    .kbt-filter-bar {
        display: none;
        flex-direction: column;
        align-items: stretch;
    }
    .kbt-filter-bar.open {
        display: flex;
    }
}

/* Grid Layout */
.kbt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: opacity 0.15s ease-in-out;
}

@media (max-width: 850px) {
    .kbt-grid { grid-template-columns: 1fr; }
}

/* Card Visuals */
.kbt-card {
    display: flex;
    flex-direction: column;
}

/* Full Cover Image & Center-Crop Wrapper */
.kbt-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

.kbt-card-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.kbt-card-link-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces image to fill completely from center */
    object-position: center center;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

.kbt-placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #e5e7eb;
}

/* Arrow Box Styling (Fixed Size - No Scaling) */
.kbt-arrow-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: #d1d5db; /* Default Grey */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 3;
}

.kbt-arrow-svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

/* Fast Arrow Drawing Animation Lines (0.4 Seconds) */
.kbt-arrow-line,
.kbt-arrow-head {
    stroke-dasharray: 30;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.4s ease-in-out;
}

/* Hover States */
.kbt-card:hover .kbt-arrow-box {
    background-color: #e11d48; /* Red Background on Hover */
}

/* Fast SVG Line Draw Effect on Hover */
.kbt-card:hover .kbt-arrow-line,
.kbt-card:hover .kbt-arrow-head {
    animation: kbtDrawArrow 0.4s forwards ease-in-out;
}

@keyframes kbtDrawArrow {
    0% {
        stroke-dashoffset: 30;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.kbt-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    text-transform: uppercase;
}

.kbt-card-content { padding-top: 15px; }

.kbt-card-meta {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.kbt-type { color: #e11d48; }
.kbt-date { color: #666666; }

.kbt-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.kbt-card-title a { color: #111; text-decoration: none; }
.kbt-card-excerpt { font-size: 13px; color: #555; line-height: 1.5; }

/* Single Page Structure */
.kbt-single-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

.kbt-single-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.kbt-single-main { flex-grow: 1; }

@media (max-width: 768px) {
    .kbt-single-container { flex-direction: column; }
    .kbt-single-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #eee; }
}

.kbt-meta-list { list-style: none; padding: 0; margin: 0; }
.kbt-meta-list li { margin-bottom: 16px; }
.kbt-meta-list strong { display: block; font-size: 11px; text-transform: uppercase; color: #888; }
.kbt-meta-list span { font-size: 14px; color: #222; }

/* Flipbook Stage with Background #f5f5f5 */
.kbt-pdf-wrapper-bg {
    background-color: #f5f5f5;
    padding: 40px 20px;
    position: relative;
    margin-bottom: 30px;
    border-radius: 4px;
}

.kbt-flipbook-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

.kbt-flip-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.kbt-nav-arrow {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PDF Page 1 Canvas Thumbnails Strip */
.kbt-pdf-thumbs-strip {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.kbt-pdf-thumb {
    width: 80px;
    height: 105px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kbt-pdf-thumb.active {
    border-color: #e11d48;
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.5);
}

.kbt-pdf-canvas-thumb canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.kbt-section-box { margin-bottom: 30px; }
.kbt-section-header {
    background: #111111;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.kbt-media-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 600px) {
    .kbt-media-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.kbt-grid-thumb-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
    display: block;
    border-radius: 4px;
}

.kbt-grid-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kbt-video-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #ffffff;
    background: rgba(0,0,0,0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
}