/* KI Technology Logo CSS */
.logo-text {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: white;
    text-decoration: none;
}

.logo-text:hover {
    color: #f8f9fa;
    text-decoration: none;
}

.ki-blue {
    color: #667eea;
}

.ki-purple {
    color: #764ba2;
}

/* ===== Shared site styles (home + service detail pages) ===== */

/* Brand helpers */
.text-ki { color: #667eea; }
.bg-ki-gradient { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.btn-ki {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}
.btn-ki:hover { color: #fff; opacity: 0.92; }

/* Responsive hero heading (smaller, fits better) */
.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Reveal-on-scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Stats band */
.stat-band { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 1.5rem 0; }
.stat-number { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.stat-label { opacity: 0.9; font-size: 0.95rem; }

/* Service / process cards */
.lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 1rem 2rem rgba(28, 37, 64, 0.15) !important; }

.icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1.75rem;
}
.icon-badge-soft {
    background: #eef0ff;
    color: #667eea;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
}

/* Service detail hero */
.service-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 56px 0 30px;
}
/* Keep navbar links on a single row so the fixed-top navbar stays ~56px tall;
   this is what lets .service-hero use the reduced top padding without the heading
   sliding under the navbar. */
.navbar-nav .nav-link { white-space: nowrap; }
/* Tighter vertical rhythm: trim the big content band that follows the (now shorter)
   hero so content sits closer under the banner. The 3-class adjacency selector
   out-specifies Bootstrap's .py-5, so no !important is needed; it only applies
   where the hero-then-container pattern exists. */
.service-hero + .container.py-5,
.service-hero + main .container.py-5 {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
}
.feature-check { color: #198754; margin-right: 0.5rem; }

/* Make whole service card clickable while keeping it accessible */
.card-link-wrap { text-decoration: none; color: inherit; display: block; }
.card-link-wrap:hover { color: inherit; }
/* ===== Home slider (admin-managed carousel) ===== */
.home-slider { background: #f3f4ff; }
.home-slider .carousel-item img { height: clamp(220px, 38vw, 460px); object-fit: cover; }
/* In-hero slider: fit 16:9 ratio well */
.hero-section #home-slider .carousel-item img,
.hero-section #hero-photo { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; background: #fff; }
/* Darken Bootstrap's default control/indicator chrome for contrast over light images */
.home-slider .carousel-control-prev-icon,
.home-slider .carousel-control-next-icon { background-color: rgba(44, 62, 80, 0.55); border-radius: 50%; padding: 14px; background-size: 50%; }
/* Admin slide-list thumbnail */
.slide-thumb { height: 60px; width: 100px; object-fit: cover; }

/* ===== Professional data tables (.table-pro) ===== */
.table-pro { --bs-table-hover-bg: #f5f6ff; }
.table-pro thead th {
    background: #f5f6ff;
    color: #4b4f6b;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .03em;
    font-weight: 700;
    border-bottom: 2px solid #e3e6f0;
    white-space: nowrap;
}
.table-pro td, .table-pro th { padding: .6rem .75rem; vertical-align: middle; }
.table-pro tbody tr { border-bottom: 1px solid #eef0f6; }
.table-pro tbody tr:last-child { border-bottom: 0; }
/* Tidy icon-only action buttons sitting together in a table cell */
.table-pro .btn-sm { line-height: 1; }
.action-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
