/* ================================================
   Key Features Section — Scoped CSS with Animations
   All selectors prefixed with .kf- to avoid
   any global style conflicts in your CI3 project
   ================================================ */

.kf-section {
    background-color: #f2f2f2;
    padding: 60px 24px 80px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

/* ---- Title fade-down ---- */
.kf-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #d4520a;
    margin: 0 0 40px 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-30px);
    animation: kf-fadeDown 0.7s ease forwards;
}

@keyframes kf-fadeDown {
    to { opacity: 1; transform: translateY(0); }
}

/* Underline sweep */
.kf-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #d4520a;
    border-radius: 2px;
    margin: 10px auto 0;
    animation: kf-underline 0.8s 0.6s ease forwards;
}

@keyframes kf-underline {
    to { width: 80px; }
}

/* ---- Grid ---- */
.kf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
}

/* ---- Card ---- */
.kf-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    cursor: default;
    position: relative;
    overflow: hidden;

    /* Scroll entry — hidden until .kf-visible is added by JS */
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Orange left border accent on hover */
.kf-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #d4520a;
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.kf-card:hover::before {
    height: 60%;
}

/* Shimmer sweep on hover */
.kf-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(212, 82, 10, 0.06) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.kf-card:hover::after {
    left: 160%;
}

/* Hover lift */
.kf-card:hover {
    box-shadow: 0 8px 24px rgba(212, 82, 10, 0.14);
    border-color: rgba(212, 82, 10, 0.3);
    transform: translateY(-4px) !important;
}

/* JS adds this when card enters viewport */
.kf-card.kf-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry delays */
.kf-card:nth-child(1) { transition-delay: 0.05s; }
.kf-card:nth-child(2) { transition-delay: 0.12s; }
.kf-card:nth-child(3) { transition-delay: 0.19s; }
.kf-card:nth-child(4) { transition-delay: 0.26s; }
.kf-card:nth-child(5) { transition-delay: 0.33s; }
.kf-card:nth-child(6) { transition-delay: 0.40s; }
.kf-card:nth-child(7) { transition-delay: 0.47s; }
.kf-card:nth-child(8) { transition-delay: 0.54s; }
.kf-card:nth-child(9) { transition-delay: 0.61s; }

/* Solo card */
.kf-card--solo {
    grid-column: 1;
}

/* ---- Icon ---- */
.kf-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4520a;
    transition: transform 0.3s ease;
}

.kf-card:hover .kf-icon {
    transform: scale(1.2) rotate(-6deg);
}

.kf-icon svg {
    width: 42px;
    height: 42px;
    opacity: 0.75;
    color: #d4520a;
    transition: opacity 0.3s ease;
}

.kf-card:hover .kf-icon svg {
    opacity: 1;
}

/* ---- Card Title ---- */
.kf-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #d4520a;
    line-height: 1.45;
    margin: 0;
    transition: letter-spacing 0.3s ease;
}

.kf-card:hover .kf-card-title {
    letter-spacing: 0.012em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .kf-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kf-title { font-size: 28px; }
    .kf-card-title { font-size: 13px; }
}

@media (max-width: 560px) {
    .kf-grid { grid-template-columns: 1fr; }
    .kf-card--solo { grid-column: auto; }
    .kf-title { font-size: 24px; }
}