/* ─── Feature Preview Card Row ─── */

.fp-section {
    max-width: 1200px;
    margin: 0 auto 2.5em;
    padding: 0 1rem;
}

.fp-heading {
    text-align: center;
    color: #1a237e;
    font-size: 1.6em;
    margin-bottom: 0.8em;
}

/* Horizontal scroll container */
.fp-scroll-row {
    display: flex;
    gap: 1.2em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5em;
}

/* Scrollbar */
.fp-scroll-row::-webkit-scrollbar {
    height: 6px;
}
.fp-scroll-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Individual card */
.fp-card {
    flex: 0 0 calc(33.333% - 0.8em);
    min-width: 260px;
    scroll-snap-align: start;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.fp-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    color: inherit;
}

/* Card image — phone screenshots shown in full */
.fp-card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf2 100%);
    padding: 12px;
    box-sizing: border-box;
}

/* NEW badge */
.fp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 1;
}

/* Card body */
.fp-card-body {
    padding: 1em 1.2em;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fp-date {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 0.3em;
}

.fp-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #1a237e;
    margin: 0 0 0.4em;
    line-height: 1.4;
}

.fp-excerpt {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* Footer link */
.fp-footer {
    text-align: center;
    margin-top: 1em;
}

.fp-view-all {
    display: inline-block;
    color: #1a237e;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95em;
    padding: 0.5em 1.5em;
    border: 2px solid #1a237e;
    border-radius: 6px;
    transition: all 0.2s;
}

.fp-view-all:hover {
    background: #1a237e;
    color: #fff;
}

/* ─── Dot indicators ─── */
.fp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1em;
}

.fp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #1a237e;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.fp-dot.active {
    background: #1a237e;
    transform: scale(1.25);
}

.fp-dot:hover {
    background: rgba(26, 35, 126, 0.4);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .fp-card {
        flex: 0 0 85%;
        min-width: 0;
    }

    .fp-heading {
        font-size: 1.3em;
    }

    .fp-card-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .fp-section {
        padding: 0 0.5rem;
    }

    .fp-card {
        flex: 0 0 90%;
    }
}
