:root {
    --primary-color: #4a90e2;
    --secondary-color: #f39c12;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
}

/* Shared */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 720px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6f7bf7 0%, #4866e8 100%);
    color: #fff;
    padding: 40px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

/* Ensure hero search box stays above decorative overlays */
.hero-section .search-box {
    position: relative;
    z-index: 20;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.hero-section .subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 820px;
    opacity: 0.97;
}

.kf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 14px;
}

.kf-hero-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.search-box {
    background: #fff;
    border-radius: 999px;
    padding: 10px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.20);
    margin-top: 2rem;
}

.search-box select,
.search-box input {
    border: none !important;
    padding: 12px 18px;
    font-size: 1rem;
    background: transparent;
}

.search-box select {
    cursor: pointer;
    position: relative;
    z-index: 10;
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

.search-box select:focus,
.search-box input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.search-box .btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 700;
}

/* Service Categories */
.service-categories {
    background: #fff;
    padding: 42px 0;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.service-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.service-categories li {
    flex: 0 0 auto;
}

.service-categories li > div {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    min-width: 140px;
    transition: all 0.25s;
    position: relative;
    cursor: pointer;
}

.service-categories li > div:hover {
    border-color: rgba(74, 144, 226, 0.65);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(15,23,42,0.10);
}

.service-categories li img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    object-fit: contain;
}

.service-categories li h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.service-categories .fclick {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Why / Stats Section */
.stats-section {
    padding: 64px 0;
    background: var(--light-bg);
}

.kf-why-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.kf-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.10);
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.kf-why-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #111827;
}

.kf-why-text {
    color: #6b7280;
    line-height: 1.6;
}

/* Feature tiles */
.kf-feature-tile {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 18px 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: inherit;
}

.kf-feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
    border-color: rgba(74, 144, 226, 0.55);
}

.kf-feature-tile .icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.10);
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.kf-feature-tile .title {
    display: block;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.kf-feature-tile .text {
    display: block;
    color: #6b7280;
    line-height: 1.55;
}

/* Quick links */
.quick-links-section {
    padding: 64px 0;
    background: #fff;
}

.quick-link-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.quick-link-card h5 {
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.quick-link-card a {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
}

/* How it works */
.how-it-works-section {
    padding: 64px 0;
    background: var(--light-bg);
}

.step-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.12);
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 12px;
}

.step-card h4 {
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.step-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 64px 0 74px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .search-box {
        border-radius: 18px;
    }
}

/* Intent cards */
.kf-intent-card {
    display: block;
    height: 100%;
    border-radius: 18px;
    padding: 22px;
    text-decoration: none;
    color: #111827;
    background: #fff;
    border: 0px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kf-intent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    border-color: rgba(74, 144, 226, 0.35);
}

.kf-intent-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #0f172a;
    background: rgba(74, 144, 226, 0.12);
}

.kf-intent-title {
    font-weight: 900;
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.kf-intent-text {
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

.kf-intent-explore { background: linear-gradient(180deg, rgba(59,130,246,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-connect { background: linear-gradient(180deg, rgba(236,72,153,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-ratings { background: linear-gradient(180deg, rgba(250,204,21,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-sell { background: linear-gradient(180deg, rgba(245,158,11,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-ride { background: linear-gradient(180deg, rgba(16,185,129,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-travel { background: linear-gradient(180deg, rgba(14,165,233,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-business { background: linear-gradient(180deg, rgba(99,102,241,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-jobs { background: linear-gradient(180deg, rgba(34,197,94,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-freelance { background: linear-gradient(180deg, rgba(168,85,247,0.42), rgba(255,255,255,1) 60%); }
.kf-intent-services { background: linear-gradient(180deg, rgba(59,130,246,0.40), rgba(255,255,255,1) 60%); }
.kf-intent-earn { background: linear-gradient(180deg, rgba(34,197,94,0.40), rgba(255,255,255,1) 60%); }

/* Responsive hub tabs (in incfiles/_mainactivity.php) */
#responsiveTabs {
    white-space: nowrap;
}

/* Critical: prevent flexbox from shrinking items to fit (otherwise overflow never happens) */
#responsiveTabs .tab-item {
    flex: 0 0 auto;
}

#responsiveTabs .nav-link {
    white-space: nowrap;
}

#responsiveTabs .dropdown-menu {
    min-width: 180px;
}

/* Infographic cards */
.kf-flow-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    padding: 18px;
    height: 100%;
    box-shadow: 0 10px 26px rgba(15,23,42,0.06);
}

.kf-flow-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.12);
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.kf-flow-title {
    font-weight: 900;
    margin-bottom: 4px;
    color: #111827;
}

.kf-flow-text {
    color: #6b7280;
    line-height: 1.55;
}
