{% extends 'expat_life/base.html' %}
{% load static %}

{% block title %}Sri Lanka Service Partners | Trusted Drivers, Helpers, Translators & Local Assistants{% endblock %}

{% block content %}

<style>
    .service-home-page {
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.07), transparent 28%),
            radial-gradient(circle at 88% 18%, rgba(13, 110, 253, 0.09), transparent 30%),
            linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #eef6ff 100%);
        overflow: hidden;
    }

    /* =========================
       HERO - MORE BLUE TOUCH
       ========================= */
    .service-hero-section {
        position: relative;
        min-height: 100vh;
        padding: 6rem 0;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.18), transparent 30%),
            radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.28), transparent 38%),
            linear-gradient(135deg, rgba(8, 24, 35, 0.96), rgba(13, 55, 95, 0.90)),
            url("{% static 'expat_life/images/service_partners_hero.webp' %}") center/cover no-repeat;
        color: #fff;
        overflow: hidden;
    }

    .service-hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(8, 24, 35, 0.50), rgba(8, 24, 35, 0.15)),
            radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.11), transparent 28%);
        pointer-events: none;
    }

    .service-hero-section::after {
        content: "";
        position: absolute;
        right: -170px;
        bottom: -190px;
        width: 540px;
        height: 540px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        pointer-events: none;
    }

    .service-hero-section .container {
        position: relative;
        z-index: 2;
    }

    .service-mini-title {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        padding: .48rem .95rem;
        border-radius: 999px;
        background: rgba(255, 193, 7, 0.18);
        border: 1px solid rgba(255, 193, 7, 0.35);
        color: #ffc107;
        font-size: .82rem;
        font-weight: 850;
        letter-spacing: .08em;
        text-transform: uppercase;
        margin-bottom: 1rem;
        backdrop-filter: blur(8px);
    }

    .service-mini-title::before {
        content: "\F47E";
        font-family: "bootstrap-icons";
        color: #ffc107;
        font-size: .95rem;
    }

    .service-hero-section h1 {
        color: #fff;
        font-size: clamp(2.5rem, 4.7vw, 4.7rem);
        font-weight: 950;
        line-height: 1.04;
        letter-spacing: -0.05em;
    }

    .service-hero-section .lead {
        color: rgba(255, 255, 255, 0.88) !important;
        font-size: 1.15rem;
        line-height: 1.85;
        max-width: 880px;
    }

    .service-hero-actions .btn,
    .service-hero-section .btn {
        border-radius: 999px;
        font-weight: 850;
        padding: .9rem 1.45rem;
        transition: all .22s ease;
    }

    .service-hero-section .btn-primary {
        border: none;
        background: linear-gradient(135deg, #ffc107, #f59e0b);
        color: #422006;
        box-shadow: 0 20px 38px rgba(255, 193, 7, 0.24);
    }

    .service-hero-section .btn-primary:hover {
        background: linear-gradient(135deg, #ffd966, #f59e0b);
        color: #422006;
        transform: translateY(-2px);
        box-shadow: 0 26px 46px rgba(255, 193, 7, 0.34);
    }

    .service-hero-section .btn-outline-dark {
        border: 1px solid rgba(255, 255, 255, 0.48);
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        backdrop-filter: blur(8px);
    }

    .service-hero-section .btn-outline-dark:hover {
        background: #fff;
        color: #0d6efd;
        border-color: #fff;
        transform: translateY(-2px);
    }

    .service-stat-box {
        border-radius: 24px !important;
        padding: 1.2rem !important;
        background: rgba(255, 255, 255, 0.13) !important;
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(10px);
        box-shadow: none !important;
    }

    .service-stat-box .fw-bold {
        color: #ffc107 !important;
        font-size: 1.18rem !important;
        line-height: 1.3;
        margin-bottom: .45rem;
    }

    .service-stat-box .text-muted {
        color: rgba(255, 255, 255, 0.82) !important;
        line-height: 1.6;
    }

    /* =========================
       HERO SIDE CARD
       ========================= */
    .service-hero-card {
        border-radius: 34px !important;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.97) !important;
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 36px 90px rgba(0, 0, 0, 0.30) !important;
        backdrop-filter: blur(14px);
    }

    .service-hero-card img {
        height: 320px;
        object-fit: cover;
        display: block;
    }

    .service-hero-card .p-4 {
        padding: 1.7rem !important;
    }

    .service-hero-card h4 {
        color: #0f172a;
        font-weight: 950;
        letter-spacing: -0.025em;
    }

    .service-hero-card strong {
        color: #0f172a;
    }

    .service-hero-card .text-muted {
        color: #64748b !important;
        line-height: 1.65;
    }

    .service-benefit-item {
        display: flex;
        gap: .9rem;
        margin-bottom: 1rem;
    }

    .service-benefit-item:last-child {
        margin-bottom: 0;
    }

    .service-benefit-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #0d6efd, #0b3f74);
        color: #fff;
        font-size: .9rem;
        font-weight: 900;
        margin-top: .1rem;
    }

    /* =========================
       TRUST STRIP
       ========================= */
    .service-trust-strip {
        position: relative;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.07), transparent 26%),
            radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.08), transparent 28%),
            #ffffff;
        border-top: none !important;
        border-bottom: none !important;
        padding: 2.1rem 0 !important;
    }

    .service-trust-item {
        height: 100%;
        border-radius: 22px;
        padding: 1rem 1.1rem;
        background: #ffffff;
        border: 1px solid #dbeafe;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
        color: #0f172a;
        font-weight: 850;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .65rem;
    }

    .service-trust-item i {
        color: #0d6efd;
        font-size: 1.1rem;
    }

    /* =========================
       SHARED SECTION STYLE
       ========================= */
    .service-types-section,
    .service-process-section {
        position: relative;
        padding: 5rem 0;
        background:
            radial-gradient(circle at 7% 18%, rgba(13, 110, 253, 0.06), transparent 26%),
            radial-gradient(circle at 92% 80%, rgba(255, 193, 7, 0.06), transparent 28%),
            #f8fbff;
    }

    .featured-service-section,
    .latest-service-section {
        position: relative;
        padding: 5rem 0;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.06), transparent 28%),
            radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.07), transparent 30%),
            #ffffff;
    }

    .service-section-kicker,
    .featured-service-kicker,
    .service-process-kicker,
    .latest-service-kicker {
        display: inline-block;
        background: rgba(13, 110, 253, 0.10);
        color: #0d6efd !important;
        border: 1px solid rgba(13, 110, 253, 0.16);
        font-size: .78rem;
        font-weight: 900 !important;
        text-transform: uppercase;
        letter-spacing: .08em;
        padding: .45rem .85rem;
        border-radius: 999px;
    }

    .service-types-section h2,
    .featured-service-section h2,
    .service-process-section h2,
    .latest-service-section h2 {
        color: #0f172a;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .service-types-section p,
    .featured-service-section p,
    .service-process-section p,
    .latest-service-section p {
        line-height: 1.75;
    }

    /* =========================
       SERVICE CATEGORIES
       ========================= */
    .service-category-card {
        position: relative;
        height: 100%;
        border-radius: 30px;
        border: 1px solid #dbeafe;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
        padding: 1.6rem 1.45rem;
        transition: all .28s ease;
    }

    .service-category-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 34px 82px rgba(15, 23, 42, 0.16);
        border-color: rgba(13, 110, 253, 0.30);
    }

    .service-category-icon {
        width: 62px;
        height: 62px;
        border-radius: 22px;
        background:
            linear-gradient(135deg, rgba(13, 110, 253, 0.13), rgba(255, 193, 7, 0.16));
        color: #0d6efd;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }

    .service-category-card h5 {
        color: #0f172a;
        font-weight: 900;
        margin-bottom: .65rem;
    }

    .service-category-card .text-muted {
        color: #64748b !important;
        line-height: 1.75;
    }

    /* =========================
       PROFILE CARDS
       ========================= */
    .service-profile-card {
        border-radius: 32px !important;
        border: 1px solid #dbeafe !important;
        box-shadow: 0 26px 68px rgba(15, 23, 42, 0.11) !important;
        overflow: hidden;
        transition: all .28s ease;
        background: rgba(255, 255, 255, 0.98);
    }

    .service-profile-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 38px 92px rgba(15, 23, 42, 0.18) !important;
        border-color: rgba(13, 110, 253, 0.30) !important;
    }

    .service-profile-card .card-img-top {
        height: 295px !important;
        object-fit: cover;
    }

    .service-profile-card .badge {
        border: 1px solid rgba(13, 110, 253, 0.18);
        background: rgba(255, 255, 255, 0.94) !important;
        color: #0d6efd !important;
        font-weight: 850;
        backdrop-filter: blur(8px);
    }

    .service-profile-card .card-body {
        padding: 1.5rem !important;
    }

    .service-profile-card h5 {
        color: #0f172a;
        font-weight: 950;
        letter-spacing: -0.02em;
    }

    .service-profile-card .text-muted {
        color: #64748b !important;
    }

    .service-profile-card .btn-primary {
        border: none;
        border-radius: 999px;
        background: linear-gradient(135deg, #0d6efd, #0b3f74);
        font-weight: 850;
        padding: .72rem 1rem;
        box-shadow: 0 16px 30px rgba(13, 110, 253, 0.20);
    }

    .service-profile-card .btn-primary:hover {
        background: linear-gradient(135deg, #0b5ed7, #082f5f);
    }

    .empty-featured-service-card,
    .empty-latest-service-card {
        border-radius: 30px !important;
        background: #ffffff !important;
        border: 1px solid #dbeafe;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09) !important;
    }

    /* =========================
       HOW IT WORKS
       ========================= */
    .service-step-card {
        height: 100%;
        border-radius: 30px !important;
        border: 1px solid #dbeafe;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10) !important;
        padding: 1.8rem 1.45rem !important;
        transition: all .28s ease;
    }

    .service-step-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 34px 82px rgba(15, 23, 42, 0.16) !important;
        border-color: rgba(13, 110, 253, 0.30);
    }

    .service-step-number {
        width: 72px;
        height: 72px;
        margin: 0 auto 1.1rem;
        border-radius: 26px;
        background: linear-gradient(135deg, #ffc107, #0d6efd);
        color: #fff !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem !important;
        font-weight: 950 !important;
        box-shadow: 0 20px 38px rgba(13, 110, 253, 0.22);
    }

    .service-step-card h5 {
        color: #0f172a;
        font-weight: 900;
    }

    .service-step-card .text-muted {
        color: #64748b !important;
        line-height: 1.75;
    }

    /* =========================
       LATEST PROFILES
       ========================= */
    .latest-service-card {
        height: 100%;
        border-radius: 28px !important;
        border: 1px solid #dbeafe !important;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 22px 58px rgba(15, 23, 42, 0.10) !important;
        overflow: hidden;
        transition: all .28s ease;
    }

    .latest-service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 32px 78px rgba(15, 23, 42, 0.15) !important;
        border-color: rgba(13, 110, 253, 0.28) !important;
    }

    .latest-service-card .card-img-top {
        height: 230px !important;
        object-fit: cover;
    }

    .latest-service-card .card-body {
        padding: 1.1rem 1.15rem !important;
    }

    .latest-service-card h6 {
        color: #0f172a;
        font-weight: 900;
    }

    .latest-service-card .text-muted {
        color: #64748b !important;
        line-height: 1.6;
    }

    /* =========================
       FINAL CTA
       ========================= */
    .final-service-section {
        position: relative;
        padding: 5rem 0;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.10), transparent 30%),
            radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.12), transparent 34%),
            #f8fbff;
    }

    .final-service-cta {
        position: relative;
        overflow: hidden;
        border-radius: 38px !important;
        padding: 3.3rem 2.2rem !important;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.15), transparent 32%),
            linear-gradient(135deg, #0d1f2a 0%, #0d6efd 100%) !important;
        box-shadow: 0 34px 90px rgba(13, 110, 253, 0.20);
    }

    .final-service-cta::after {
        content: "";
        position: absolute;
        right: -110px;
        bottom: -140px;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .final-service-cta > * {
        position: relative;
        z-index: 2;
    }

    .final-service-cta h2 {
        font-size: clamp(2rem, 3vw, 3rem);
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .final-service-cta .lead {
        color: rgba(255, 255, 255, 0.86);
        line-height: 1.82;
    }

    .final-service-cta .btn {
        border-radius: 999px;
        font-weight: 850;
        padding: .88rem 1.4rem;
    }

    .final-service-cta .btn-warning {
        background: linear-gradient(135deg, #ffc107, #f59e0b);
        border: none;
        color: #422006;
    }

    .final-service-cta .btn-light:hover {
        color: #0d6efd;
    }

    @media (max-width: 991.98px) {
        .service-hero-section {
            min-height: auto;
            padding: 4.5rem 0;
        }

        .service-hero-card {
            border-radius: 28px !important;
        }

        .final-service-cta {
            padding: 2.5rem 1.5rem !important;
        }
    }

    @media (max-width: 575.98px) {
        .service-hero-section {
            padding: 3.5rem 0;
        }

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

        .service-hero-card,
        .service-category-card,
        .service-profile-card,
        .service-step-card,
        .latest-service-card,
        .final-service-cta,
        .empty-featured-service-card,
        .empty-latest-service-card {
            border-radius: 24px !important;
        }

        .service-stat-box,
        .service-trust-item {
            border-radius: 20px !important;
        }

        .final-service-cta {
            padding: 2.2rem 1.25rem !important;
        }
    }
</style>

<div class="service-home-page">

    <!-- HERO -->
    <section class="service-hero-section">
        <div class="container">
            <div class="row align-items-center g-5">
                <div class="col-lg-7">
                    <span class="service-mini-title">Trusted Local Support</span>

                    <h1 class="display-4 fw-bold mt-2 mb-3">
                        Find Reliable Local Service Partners in Sri Lanka
                    </h1>

                    <p class="lead text-muted mb-4">
                        Connect with approved drivers, housekeepers, helpers, translators, and local assistants
                        ready to support your lifestyle in Sri Lanka. Ideal for Guests, digital nomads,
                        retirees, and long-stay visitors who need dependable local assistance.
                    </p>

                    <div class="d-flex gap-3 flex-wrap mt-4 service-hero-actions">
                        <a href="{% url 'expat_life:public_assistant_list' %}" class="btn btn-primary btn-lg px-4">
                            Browse Services
                        </a>

                        {% if is_foreigner_user %}
                            <a href="{% url 'expat_life:foreigner_dashboard' %}" class="btn btn-outline-dark btn-lg px-4">
                                My Guest Dashboard
                            </a>
                        {% else %}
                            <a href="{% url 'expat_life:foreigner_signup' %}" class="btn btn-outline-dark btn-lg px-4">
                                Free Guest Signup
                            </a>
                        {% endif %}
                    </div>

                    <div class="row g-3 mt-3">
                        <div class="col-sm-4">
                            <div class="service-stat-box h-100">
                                <div class="fw-bold text-primary fs-5 mb-1">Verified</div>
                                <div class="small text-muted">Profiles reviewed before public visibility</div>
                            </div>
                        </div>

                        <div class="col-sm-4">
                            <div class="service-stat-box h-100">
                                <div class="fw-bold text-primary fs-5 mb-1">Flexible</div>
                                <div class="small text-muted">Part-time, full-time, and lifestyle-friendly support</div>
                            </div>
                        </div>

                        <div class="col-sm-4">
                            <div class="service-stat-box h-100">
                                <div class="fw-bold text-primary fs-5 mb-1">Practical</div>
                                <div class="small text-muted">Useful help for daily life, travel, and relocation</div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-lg-5">
                    <div class="service-hero-card overflow-hidden">
                        <img src="{% static 'expat_life/images/service_partners_hero.webp' %}"
                             alt="Local service support in Sri Lanka"
                             class="img-fluid w-100">

                        <div class="p-4">
                            <h4 class="fw-bold mb-3">Why this section matters</h4>

                            <div class="service-benefit-item">
                                <div class="service-benefit-icon">
                                    <i class="bi bi-check-lg"></i>
                                </div>
                                <div>
                                    <strong>Support for easier living</strong>
                                    <p class="text-muted mb-0 small">
                                        Helpful for transport, household support, language assistance, and local coordination.
                                    </p>
                                </div>
                            </div>

                            <div class="service-benefit-item">
                                <div class="service-benefit-icon">
                                    <i class="bi bi-check-lg"></i>
                                </div>
                                <div>
                                    <strong>Ideal for Guests in Sri Lanka</strong>
                                    <p class="text-muted mb-0 small">
                                        Especially useful for new arrivals, long-stay visitors, retirees, and remote workers.
                                    </p>
                                </div>
                            </div>

                            <div class="service-benefit-item">
                                <div class="service-benefit-icon">
                                    <i class="bi bi-check-lg"></i>
                                </div>
                                <div>
                                    <strong>Better trust and structure</strong>
                                    <p class="text-muted mb-0 small">
                                        A more guided way to discover dependable local support instead of searching randomly.
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- TRUST STRIP -->
    <section class="service-trust-strip">
        <div class="container">
            <div class="row text-center g-4">
                <div class="col-md-3">
                    <div class="service-trust-item">
                        <i class="bi bi-patch-check-fill"></i>
                        <span>Reviewed Profiles</span>
                    </div>
                </div>

                <div class="col-md-3">
                    <div class="service-trust-item">
                        <i class="bi bi-grid-1x2-fill"></i>
                        <span>Multiple Service Types</span>
                    </div>
                </div>

                <div class="col-md-3">
                    <div class="service-trust-item">
                        <i class="bi bi-house-heart-fill"></i>
                        <span>Daily Lifestyle Support</span>
                    </div>
                </div>

                <div class="col-md-3">
                    <div class="service-trust-item">
                        <i class="bi bi-person-hearts"></i>
                        <span>Guest-Friendly Assistance</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- SERVICE TYPES -->
    <section class="service-types-section">
        <div class="container">
            <div class="text-center mb-5">
                <span class="service-section-kicker">Service Categories</span>
                <h2 class="fw-bold mt-3">Local Support You Can Explore</h2>
                <p class="text-muted mb-0">
                    A premium local assistance section for everyday convenience in Sri Lanka.
                </p>
            </div>

            <div class="row g-4">
                <div class="col-md-6 col-lg-4">
                    <div class="service-category-card">
                        <div class="service-category-icon">
                            <i class="bi bi-car-front-fill"></i>
                        </div>
                        <h5 class="fw-bold mb-2">Drivers</h5>
                        <p class="text-muted mb-0">
                            Find local driving support for airport pickups, private transport, routine travel, and lifestyle mobility.
                        </p>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4">
                    <div class="service-category-card">
                        <div class="service-category-icon">
                            <i class="bi bi-house-heart-fill"></i>
                        </div>
                        <h5 class="fw-bold mb-2">Housekeepers</h5>
                        <p class="text-muted mb-0">
                            Explore trusted housekeeping support for comfort, cleanliness, and easier daily living.
                        </p>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4">
                    <div class="service-category-card">
                        <div class="service-category-icon">
                            <i class="bi bi-hand-thumbs-up-fill"></i>
                        </div>
                        <h5 class="fw-bold mb-2">Helpers</h5>
                        <p class="text-muted mb-0">
                            General support for errands, local coordination, home-related help, and practical assistance.
                        </p>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4">
                    <div class="service-category-card">
                        <div class="service-category-icon">
                            <i class="bi bi-translate"></i>
                        </div>
                        <h5 class="fw-bold mb-2">Translators</h5>
                        <p class="text-muted mb-0">
                            Useful for local communication, document assistance, travel situations, and cultural understanding.
                        </p>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4">
                    <div class="service-category-card">
                        <div class="service-category-icon">
                            <i class="bi bi-person-badge-fill"></i>
                        </div>
                        <h5 class="fw-bold mb-2">Local Assistants</h5>
                        <p class="text-muted mb-0">
                            Practical personal support for appointments, everyday tasks, settling in, and local navigation.
                        </p>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4">
                    <div class="service-category-card">
                        <div class="service-category-icon">
                            <i class="bi bi-clock-history"></i>
                        </div>
                        <h5 class="fw-bold mb-2">Flexible Availability</h5>
                        <p class="text-muted mb-0">
                            Depending on the partner, you may find short-term, part-time, or ongoing support options.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- FEATURED -->
    <section id="featured-services" class="featured-service-section">
        <div class="container">
            <div class="d-flex flex-column flex-lg-row justify-content-between align-items-lg-end mb-4">
                <div>
                    <span class="featured-service-kicker">Featured Local Professionals</span>
                    <h2 class="fw-bold mt-3 mb-2">Featured Service Partners</h2>
                    <p class="text-muted mb-0">
                        Selected local profiles prepared to support Guests with practical and dependable assistance.
                    </p>
                </div>
            </div>

            <div class="row g-4">
                {% for profile in featured_profiles %}
                    <div class="col-md-6 col-xl-4">
                        <div class="card service-profile-card h-100">
                            <div class="position-relative">
                                {% if profile.profile_photo %}
                                    <img src="{{ profile.profile_photo.url }}"
                                         class="card-img-top"
                                         alt="{{ profile.full_name }}">
                                {% else %}
                                    <img src="{% static 'expat_life/images/default-profile-neutral.png' %}"
                                         class="card-img-top"
                                         alt="Service Partner">
                                {% endif %}

                                <div class="position-absolute top-0 start-0 m-3">
                                    <span class="badge rounded-pill px-3 py-2 shadow-sm">
                                        Verified Partner
                                    </span>
                                </div>
                            </div>

                            <div class="card-body d-flex flex-column">
                                <h5 class="fw-bold mb-1">{{ profile.full_name }}</h5>

                                <p class="text-muted mb-3">
                                    {{ profile.get_service_type_display }}{% if profile.city %} | {{ profile.city }}{% endif %}
                                </p>

                                <div class="mt-auto">
                                    <a href="{% url 'expat_life:public_assistant_detail' profile.pk %}" class="btn btn-primary px-3">
                                        View Profile
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                {% empty %}
                    <div class="col-12">
                        <div class="empty-featured-service-card p-5 text-center">
                            <h5 class="fw-bold mb-2">Featured partners will appear here soon</h5>
                            <p class="text-muted mb-0">
                                We are preparing approved local service profiles for Guests looking for trusted assistance in Sri Lanka.
                            </p>
                        </div>
                    </div>
                {% endfor %}
            </div>
        </div>
    </section>

    <!-- HOW IT WORKS -->
    <section class="service-process-section">
        <div class="container">
            <div class="text-center mb-5">
                <span class="service-process-kicker">Simple Guided Process</span>
                <h2 class="fw-bold mt-3">How It Works</h2>
                <p class="text-muted mb-0">
                    A smoother way to discover local support for life in Sri Lanka.
                </p>
            </div>

            <div class="row g-4">
                <div class="col-md-4">
                    <div class="service-step-card text-center h-100">
                        <div class="service-step-number">01</div>
                        <h5 class="fw-bold">Browse Service Profiles</h5>
                        <p class="text-muted mb-0">
                            Explore local support categories such as drivers, translators, helpers, housekeepers, and assistants.
                        </p>
                    </div>
                </div>

                <div class="col-md-4">
                    <div class="service-step-card text-center h-100">
                        <div class="service-step-number">02</div>
                        <h5 class="fw-bold">Create Your Guest Profile</h5>
                        <p class="text-muted mb-0">
                            Register to begin your guided Sri Lanka journey with better access to support-related services.
                        </p>
                    </div>
                </div>

                <div class="col-md-4">
                    <div class="service-step-card text-center h-100">
                        <div class="service-step-number">03</div>
                        <h5 class="fw-bold">Move Forward with Local Support</h5>
                        <p class="text-muted mb-0">
                            Build a more comfortable and manageable daily routine with trusted local assistance.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- LATEST -->
    <section class="latest-service-section">
        <div class="container">
            <div class="mb-4">
                <span class="latest-service-kicker">Recently Added</span>
                <h2 class="fw-bold mt-3 mb-1">Latest Service Partners</h2>
                <p class="text-muted mb-0">New local support profiles added to the platform.</p>
            </div>

            <div class="row g-4">
                {% for profile in latest_profiles %}
                    <div class="col-md-6 col-lg-3">
                        <div class="card latest-service-card h-100">
                            {% if profile.profile_photo %}
                                <img src="{{ profile.profile_photo.url }}"
                                     class="card-img-top"
                                     alt="{{ profile.full_name }}">
                            {% else %}
                                <img src="{% static 'expat_life/images/default-profile-neutral.png' %}"
                                     class="card-img-top"
                                     alt="Service Partner">
                            {% endif %}

                            <div class="card-body">
                                <h6 class="fw-bold mb-1">{{ profile.full_name }}</h6>
                                <small class="text-muted d-block">
                                    {{ profile.get_service_type_display }}
                                </small>
                                {% if profile.city %}
                                    <small class="text-muted">{{ profile.city }}</small>
                                {% endif %}
                            </div>
                        </div>
                    </div>
                {% empty %}
                    <div class="col-12">
                        <div class="empty-latest-service-card p-4 text-center">
                            <p class="mb-0 text-muted">Latest service partners will appear here soon.</p>
                        </div>
                    </div>
                {% endfor %}
            </div>
        </div>
    </section>

    <!-- FINAL CTA -->
    <section class="final-service-section">
        <div class="container">
            <div class="final-service-cta text-white">
                <div class="row align-items-center g-4">
                    <div class="col-lg-8">
                        <h2 class="fw-bold mb-3">Make Life in Sri Lanka Easier with Trusted Local Support</h2>
                        <p class="lead mb-0">
                            Explore local service partners, create your Guest profile, and build a more comfortable and supported lifestyle in Sri Lanka.
                        </p>
                    </div>

                    <div class="col-lg-4 text-lg-end">
                        <div class="hero-action-buttons d-grid gap-3 d-lg-flex justify-content-lg-end">
                            <a href="{% url 'expat_life:public_assistant_list' %}" class="btn btn-warning btn-lg w-100">
                                Browse Services
                            </a>

                            {% if is_foreigner_user %}
                                <a href="{% url 'expat_life:foreigner_dashboard' %}" class="btn btn-light btn-lg w-100">
                                    My Guest Dashboard
                                </a>
                            {% else %}
                                <a href="{% url 'expat_life:foreigner_signup' %}" class="btn btn-light btn-lg w-100">
                                    Free Guest Signup
                                </a>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

</div>

{% endblock %}