/* ---------- Layout ---------- */
.offer-grid,
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Cards ---------- */
.offer-card,
.benefit {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    flex: 1 1 280px;
    max-width: 320px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover,
.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ---------- Card Titles ---------- */
.offer-card h3,
.benefit h3 {
    color: #264653;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}




.offer-card h3 i,
.benefit i {
    color: #2a9d8f;
    margin-right: 10px;
    font-size: 1.3rem;
}



/* ---------- Lists & Paragraphs ---------- */
.offer-card ul {
    padding-left: 1rem;
}

.offer-card ul li,
.offer-card p,
.intro-text {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

/* ---------- Benefits ---------- */


.benefit i {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* ---------- Sections ---------- */
.offer-section,
.benefits-section {
    padding: 60px 20px;
    text-align: center;
}

.offer-section h2,
.benefits-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #264653;
}

/* ---------- Examples / Portfolio ---------- */
.examples-section {
    padding: 60px 20px;
    text-align: center;
}

.examples-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #264653;
}

/* Carousel wrapper */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
}

/* Carousel grid */
.examples-grid {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    max-width: 100%;
    margin: 0 auto;
    scroll-snap-type: x mandatory;
    position: relative;
}

/* Cards */
.example-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    flex: 0 0 300px;
    /* fixed width for carousel */
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.example-card h3 {
    color: #2a9d8f;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.example-details {
    font-size: 0.95rem;
    color: #555;
}

.example-details ul {
    margin: 5px 0 0 1rem;
    padding: 0;
}

.example-details ul li {
    margin-bottom: 5px;
}

/* Carousel arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(42, 157, 143, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.carousel-arrow:hover {
    background: rgba(42, 157, 143, 1);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {

    .offer-grid,
    .benefits-grid {
        flex-direction: column;
        align-items: center;
    }

    /* Mobile hint gradient */
    .examples-grid::after {
        content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 15px;  /* smaller so it doesn't block second card */
            height: 100%;
            pointer-events: none;
            background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
            display: block;
    }


    .offer-card,
    .benefit {
        max-width: 90%;
    }

    .examples-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .example-card {
        flex: 0 0 80%;
        margin-right: 20px;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-container {
        position: relative;     /* needed for gradient hint */
    }

        .carousel-container::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 20px;
            /* smaller so it doesn’t cover card content */
            height: 100%;
            pointer-events: none;
            background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
            display: block;
            z-index: 2;
        }
    
        /* Only show gradient if overflow exists */
        .carousel-container:not(:has(.example-card:last-child))::after {
            display: none;
        }




}




@media (min-width: 769px) {
    .examples-grid::after {
        display: none;
    }
}