/* ===================================================
   Prototypes Carousel Section
   =================================================== */

body {
    font-family: polymath-display, sans-serif;
}

/* Section wrapper */
.prototypes-section {
    padding: 60px 0;
    background-color: #FAFAFA;
}

/* Heading */
.prototypes-section__heading {
    font-family: polymath-display, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-secondary);
    margin-bottom: 40px;
    line-height: 1.4;
}

.prototypes-section__heading strong {
    font-weight: 700;
    color: var(--color-primary);
}

/* ===================================================
   Carousel
   =================================================== */

.prototypes-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.prototypes-carousel::-webkit-scrollbar {
    display: none;
}

.prototypes-carousel__track {
    display: flex;
    gap: 16px;
}

/* Carousel item — scrollable on mobile */
.prototypes-carousel__item {
    flex: 0 0 80%;
    min-width: 0;
}

/* ===================================================
   Card
   =================================================== */

.prototypes-card {
    background: #ffffff;
    border-radius: 35px;
    border: 1px solid var(--color-primary);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card image */
.prototypes-card__image {
    padding: 12px 12px 0;
}

.prototypes-card__image img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

/* Card body */
.prototypes-card__body {
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title */
.prototypes-card__title {
    font-family: polymath-display, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* Characteristics */
.prototypes-card__characteristics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--color-secondary);
}

.prototypes-card__char {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.prototypes-card__char i {
    color: var(--color-primary);
    font-size: 0.7rem;
}

.prototypes-card__separator {
    color: #cccccc;
    font-weight: 300;
}

/* Description */
.prototypes-card__description {
    font-size: 0.85rem;
    color: var(--color-secondary);
    line-height: 1.4;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Actions (CTAs) */
.prototypes-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.prototypes-card__actions .dv-cta--primary {
    display: none;
}

/* ===================================================
   Scroll Indicator (desktop only)
   =================================================== */

.prototypes-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

/* Mobile CTA (below carousel) */
.prototypes-section__mobile-cta {
    margin-top: 24px;
    text-align: center;
}

.prototypes-indicator__line {
    height: 3px;
    width: 40px;
    background-color: #d9d9d9;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.prototypes-indicator__line.active {
    height: 5px;
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

/* ===================================================
   Tablet and up (≥ 768px)
   =================================================== */

@media (min-width: 768px) {
    .prototypes-section {
        padding: 80px 0;
    }

    .prototypes-section__heading {
        font-size: 2rem;
    }

    /* 2 items per view on tablet */
    .prototypes-carousel__item {
        flex: 0 0 50%;
    }

    .prototypes-card__actions .dv-cta--primary {
        display: inline-flex;
    }

    .prototypes-section__mobile-cta {
        display: none;
    }

    .prototypes-card__body {
        padding: 20px 20px 24px;
    }

    .prototypes-card__title {
        font-size: 1.4rem;
    }
}

/* ===================================================
   Desktop and up (≥ 992px)
   =================================================== */

@media (min-width: 992px) {
    .prototypes-section {
        padding: 100px 0;
    }

    .prototypes-section__heading {
        font-size: 2.25rem;
        margin-bottom: 50px;
    }

    /* 3 items per view on desktop — paginated */
    .prototypes-carousel {
        overflow: hidden;
    }

    .prototypes-carousel__track {
        gap: 0;
        transition: transform 0.5s ease;
    }

    .prototypes-carousel__item {
        flex: 0 0 33.3333%;
        padding: 0 14px;
        box-sizing: border-box;
    }

    .prototypes-indicator {
        display: flex;
    }

    .prototypes-card__image {
        padding: 16px 16px 0;
    }

    .prototypes-card__title {
        font-size: 1.5rem;
    }

    .prototypes-card__characteristics {
        font-size: 0.85rem;
    }

    .prototypes-card__description {
        font-size: 0.9rem;
    }

    .prototypes-indicator__line {
        width: 60px;
    }
}

/* ===================================================
   Large desktop (≥ 1200px)
   =================================================== */

@media (min-width: 1200px) {
    .prototypes-section__heading {
        font-size: 2.5rem;
    }
}
