/* KBi Product Page Specific Styles */

/* General Section Styles */
.kbi-section {
    min-height: 80vh;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Tech Section */
.kbi-tech {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.tech-item {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tech-item h3 {
    font-size: 24px;
    margin-top:5px;
    margin-bottom: 10px;
    color: #2B5CD4;
}

.price-tag {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: #5c5e62;
    background: #f4f4f4;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Specs Section */
.kbi-specs {
    padding: 72px 20px;
    background: #eeeeee; /* light neutral to match image background tone */
    color: #0f1720; /* dark, pleasant font color */
}

/* Specs Section Header & Grid */
.specs-header {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.specs-header h2 { font-size: 32px; margin-bottom: 8px; }
.spec-intro { color: #3f4a52; max-width: 920px; margin: 0 auto; }

.specs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

.spec-images-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.spec-images-top figure { margin: 0; background: transparent; padding: 4px; border-radius: 8px; }
.spec-images-top img { width: 100%; height: auto; display: block; border-radius: 6px; }
.spec-images-top figcaption { color: #3f4a52; font-size: 13px; margin-top: 6px; text-align: center; font-weight: 400; }

.spec-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.spec-col { background: #eeeeee; padding: 14px; border-radius: 8px; box-shadow: 0 6px 18px rgba(16,24,32,0.04); color: #0b1317; }
.spec-col h4 { margin-top: 0; color: #071014; font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.spec-col p { margin: 6px 0; color: #273238; line-height: 1.35; font-weight: 400; }

.spec-footwrap { grid-column: 1 / -1; text-align: center; }
.spec-footnote { color: #576066; font-size: 13px; margin-top: 12px; }

@media (max-width: 1000px) {
    .spec-images-top { grid-template-columns: 1fr 1fr; }
    .spec-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .spec-images-top { grid-template-columns: 1fr; }
    .spec-columns { grid-template-columns: 1fr; }
    .kbi-specs { padding: 40px 16px; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero: match index.html behavior (full-bleed under translucent fixed nav) */
.hero-slideshow {
    height: 100vh;
    margin-top: 0;
    position: relative;
    z-index: 0;
}

@media (max-width: 900px) {
    .hero-slideshow { height: 70vh; }
}

@media (max-width: 480px) {
    .hero-slideshow { height: 60vh; }
}

/* Hero content positioning */
.hero-slideshow .hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@media (max-width: 768px) {
    .carousel-nav-btn { display: none; }
    .hero-slideshow .hero-content { padding: 20px; }
}

/* Interior slideshow (scoped readability and controls) */
.interior-slideshow {
    height: 70vh;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: block;
    background: #1a1a1a;
    /* Ensure slideshow container has proper stacking context */
    isolation: isolate;
}

.interior-slideshow .slide {
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* No transition - instant image switch */
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    visibility: hidden;
}

.interior-slideshow .slide.active {
    opacity: 1;
    z-index: 1;
    visibility: visible;
}

.interior-slideshow .hero-content {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    max-width: 900px;
    padding: 22px;
    /* No panel — rely on stronger drop shadow for text readability */
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.interior-slideshow .hero-content h1,
.interior-slideshow .hero-content p,
.interior-slideshow .hero-content .cta-buttons a {
    /* Darker, tighter drop shadow: reduced blur for crisper edges */
    text-shadow: 0 6px 10px rgba(0,0,0,0.98), 0 1px 2px rgba(0,0,0,0.85);
}

.interior-slideshow .hero-content h1 {
    font-size: 36px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.interior-slideshow .hero-content p {
    font-size: 16px;
    color: #f0f2f4;
    margin-bottom: 18px;
}

.interior-slideshow .cta-buttons a.btn { margin: 0 8px; }

.interior-slideshow .carousel-nav-btn {
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    opacity: 1;
    visibility: visible;
}

.interior-slideshow .carousel-nav-prev { left: 12px; }
.interior-slideshow .carousel-nav-next { right: 12px; }

.interior-slideshow .slide-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.interior-slideshow .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 0;
}

.interior-slideshow .indicator.active { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.4); }

@media (max-width: 768px) {
    .interior-slideshow { height: 60vh; min-height: 360px; }
    .interior-slideshow .hero-content h1 { font-size: 24px; }
    .interior-slideshow .hero-content p { font-size: 14px; }
}

.kbi-innovation {
    background: #ffffff; /* Changed to white for a cleaner look */
    padding: 100px 40px;
}
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start; /* Align items to the start */
}
.innovation-item-text {
    padding-right: 20px; /* Add some space between text and images on larger screens */
}
.innovation-item-text h3 {
    font-size: 26px; /* Slightly reduced font size */
    color: #171a20;
    margin-bottom: 20px;
    border-bottom: 2px solid #2B5CD4; /* Add a border to the main heading */
    padding-bottom: 10px;
}
.innovation-item-text h4 {
    font-size: 20px; /* Reduced font size */
    color: #171a20;
    margin-top: 30px;
    margin-bottom: 15px;
}
.innovation-item-text p {
    font-size: 15px; /* Reduced font size */
    line-height: 1.7; /* Increased line height for better readability */
    color: #5c5e62;
}
.innovation-item-gallery {
    display: grid;
    grid-template-columns: 1fr; /* Single column for the gallery */
    gap: 15px;
}
.innovation-item-gallery figure {
    margin: 0;
    text-align: left; /* Align text to the left */
    background: #f4f6f8; /* Add a light background to the figures */
    border-radius: 8px;
    overflow: hidden; /* Hide overflowing content */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex; /* Use flexbox for better alignment */
    align-items: center;
}
.innovation-item-gallery img {
    width: 260px; /* Set a fixed width for the images */
    height: 173px; /* Set a fixed height for the images */
    object-fit: cover; /* Ensure the images cover the area without distortion */
    margin-right: 20px;
}
.innovation-item-gallery figcaption {
    font-size: 14px;
    color: #393c41;
    padding: 15px 15px 15px 0;
}
@media (max-width: 900px) {
    .innovation-grid {
        grid-template-columns: 1fr;
    }
    .innovation-item-text {
        padding-right: 0; /* Remove right padding on smaller screens */
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
