/* Trade-in bar */
.tradein-link {
    color: var(--font-color);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
}

.tradein-link:hover
{
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Desktop image height */
.carousel-img {
    /*height: 500px;*/
    /*object-fit: cover;*/
    /*object-position: center;*/
    border-radius: 18px;
}

/* Mobile image height */
.carousel-img-mobile {
    /*height: 260px;*/
    /*object-fit: cover;*/
    /*object-position: center;*/
    border-radius: 18px;
}

/* Make the <a> fill the slide — no gap under image */
.banner-link {
    line-height: 0;
}

/* Dots */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.5);
    margin: 0 4px;
}
.carousel-indicators .active { background: #fff; }

/* Dots sit ABOVE caption — don't intercept banner link */
.carousel-indicators {
    z-index: 20;
    pointer-events: auto; /* dots are clickable */
}

/* Arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 0.6;
    z-index: 20;
}
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; }

/* ══ Category pills ══ */
.mobile-trade-title {
    font-size: var(--section-heading-font-size);
    font-weight: var(--font-weight-700);
    text-align: center;
    color: var(--text);
    margin: 0;
}
.cat-pills-track {
    display: flex;
    gap: 10px;
    /* desktop: centered */
    justify-content: center;
    flex-wrap: wrap;
}
.cat-pill {
    border: 1.5px solid var(--border);
    border-radius: 5px;
    padding: 10px 22px;
    font-size: var(--sub-section-heading-font-size);
    font-weight: var(--font-weight-500);
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    text-decoration: none;
    transition: border-color .18s, background .18s, color .18s;
    white-space: nowrap;
    flex-shrink: 0;
}
.cat-pill:hover,
.cat-pill.active {
    border: 1.5px solid var(--border);
    background: var(--search-bg-input);
    color: var(--text);
}

/* ══ Section title ══ */
.section-title {
    font-size: var(--section-heading-font-size);
    font-weight: var(--font-weight-700);
    color: var(--text);
    margin-bottom: 20px;
}

/* ══ DEVICES CAROUSEL — DESKTOP ══ */

.devices-carousel-wrap {
    position: relative;
    margin: 0 72px;
}

.devices-track-outer { overflow: hidden; }

.devices-track {
    display: flex;
    gap: 20px;
    transition: transform .35s ease;
}

/* Desktop card */
.device-card {
    flex: 0 0 calc((100% - 5*20px) / 6);
    min-width: 0;
    background: transparent;
    border: none;
    padding: 0 0 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.device-card-img-wrap {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.device-card-img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

.device-card-name {
    font-size: var(--body-font-size);
    font-weight: var(--font-weight-700);
    color: var(--text);
    margin-bottom: 3px;
    line-height: 1.35;
    min-height: 40px;
}

.device-card-lbl {
    font-size: var(--body-font-size);
    color: var(--text);
    font-weight: var(--font-weight-300);
    margin-bottom: 2px;
}

.device-card-price {
    font-size: var(--section-heading-font-size);
    font-weight: var(--font-weight-600);
    color: var(--text);
    /*margin-bottom: 12px;*/
}

.btn-tradein {
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 9px 0;
    width: 100%;
    font-size: var(--body-font-size);
    font-weight: var(--font-weight-600);
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background .15s;
    margin-top: auto;
}
.btn-tradein:hover { background: var(--green-dark); color: var(--white); }

/* ══ ARROWS ══ */
.carousel-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 35px;
    height: 42px;
    border-radius: 10px;           /* more rounded corners */
    background: var(--bg-color);           /* light grey fill */
    border: none;                  /* no border */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: none;
    font-size: 1.1rem;
    color: var(--search-input-text);                   /* grey arrow symbol */
    transition: background .15s;
    line-height: 1;
}
.carousel-arrow:hover    { background: var(--bg-color);  }
.carousel-arrow.arr-prev { left: -60px; }
.carousel-arrow.arr-next { right: -60px; }
.carousel-arrow.disabled { opacity: .60; cursor: not-allowed; }
.carousel-arrow.disabled svg path { stroke: var(--search-input-text); }

/* ══ How it works ══ */
.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.how-step-label {
    font-size: var(--sub-section-heading-font-size);
    font-weight: var(--font-weight-700);
    color: var(--text);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.how-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.how-icon-wrap svg { width: 52px; height: 52px; }
.how-step-text {
    font-size: var(--sub-section-heading-font-size);
    font-weight: var(--font-weight-500);
    color: var(--text);
}

/* ── FAQ title ── */
.faq-title {
    font-size: var(--section-heading-font-size);
    font-weight: var(--font-weight-700);
    color: var(--text);
    margin-bottom: 24px;
}

/* ── Desktop tabs ── */
.faq-tabs-wrap { border-bottom: 2px solid #e0e0e0; }

.faq-tab-list {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.faq-tab-item {
    padding: 10px 20px;
    font-size: var(--sub-section-heading-font-size);
    font-weight: var(--font-weight-500);
    color: var(--text);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.faq-tab-item:first-child { padding-left: 0; }

.faq-tab-item:hover { color: var(--text); }

.faq-tab-item.active {
    color: var(--text);
    font-weight: var(--font-weight-700);
    border-bottom: 2px solid #1a56a0;
}

/* ── Desktop panels ── */
.faq-tab-panels { padding-top: 24px; }

.faq-panel { display: none; }
.faq-panel.active { display: block; }

.faq-panel-title {
    font-size: var(--sub-section-heading-font-size);
    font-weight: var(--font-weight-700);
    color: var(--text);
}

.faq-panel-text {
    font-size: var(--faq-content-font-size);
    color: var(--text);
    line-height: 1.813rem;
    margin-bottom: 8px;
}

/* ── FAQ table ── */
.faq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
    margin: 16px 0 20px;
    border: 1px solid #ddd;
}

.faq-table th {
    background: #f7f7f7;
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: .82rem;
}

.faq-table td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    color: var(--text);
}

/* ── Terms link ── */
.faq-terms-link {
    color: #1a56a0;
    font-size: .87rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}
.faq-terms-link:hover { text-decoration: underline; }

/* ── Mobile accordion ── */
.faq-acc-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-acc-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--sub-section-heading-font-size);
    font-weight: var(--font-weight-700);
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.faq-acc-icon {
    font-size: var(--sub-section-heading-font-size);
    color: var(--text);
    flex-shrink: 0;
    line-height: 1;
    transition: transform .2s;
}

.faq-acc-btn.open .faq-acc-icon { transform: rotate(45deg); }

.faq-acc-body {
    display: none;
    padding: 0 0 16px;
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.65;
}

.faq-acc-body p { margin-bottom: 8px; }
.faq-acc-body p:last-child { margin-bottom: 0; }
.faq-acc-body.open { display: block; }

/* ══ Why trade in with us ══ */
.why-title {
    font-size: var(--section-heading-font-size);
    font-weight: var(--font-weight-700);
    color: var(--text);
    margin-bottom: 20px;
}

.why-card {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 32px 24px;
}

.why-grid {
    display: flex;
    gap: 16px;
}

.why-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.why-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-item-name {
    font-size: var(--sub-section-heading-font-size);
    font-weight: var(--font-weight-600);
    color: var(--text);
    margin-bottom: 8px;
}

.why-item-desc {
    font-size: var(--body-font-size);
    color: var(--text);
    font-weight: var(--font-weight-400);
    line-height: 1.313;
    margin: 0;
}

/* ══ TrustPilot section ══ */
.tp-header {
    text-align: center;
    margin-bottom: 28px;
}

.tp-title {
    font-size: var(--section-heading-font-size);
    font-weight: var(--font-weight-700);
    color: var(--text);
    margin-bottom: 6px;
}

.tp-subtitle {
    font-size: var(--sub-section-heading-font-size);
    color: var(--text);
    margin: 0;
    font-weight: var(--font-weight-400);
}

/* Carousel wrapper */
.tp-carousel-wrap {
    position: relative;
    margin: 0 72px;
}

.tp-track-outer { overflow: hidden; }

.tp-track {
    display: flex;
    gap: 16px;
    transition: transform .35s ease;
}

/* Review card */
.tp-card {
    flex: 0 0 calc((100% - 3*16px) / 4);
    min-width: 0;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
}

.tp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tp-invited {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: var(--muted);
    white-space: nowrap;
}

.tp-review-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tp-review-text {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.tp-reviewer {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text);
    margin-top: auto;
}

.tp-reviewer span {
    font-weight: 400;
    color: var(--muted);
}

@media (max-width: 1200px) {
    .device-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}
@media (max-width: 768px) {
    .device-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}
/* ══ Mobile ══ */
@media (max-width: 767px) {
    .cat-pills-outer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cat-pills-outer::-webkit-scrollbar { display: none; }
    .cat-pills-track {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 4px;
    }
    .cat-pill { padding: 9px 18px; }
    .section-title {
        text-align: center;
        font-size: var(--section-heading-font-size);
        font-weight: var(--font-weight-700);
        color: var(--text);
    }

    .device-card {
        flex: 0 0 calc((100% - 20px) / 2);
        align-items: center;   /* centre on mobile like screenshot */
        text-align: center;
    }

    .device-card-name {
        min-height: auto;
    }

    .devices-carousel-wrap {
        margin: 0 40px; /* space for arrows */
    }

    /* Show arrows on mobile too */
    .carousel-arrow {
        display: flex;  /* override the d-none */
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .carousel-arrow.arr-prev { left: -40px; }
    .carousel-arrow.arr-next { right: -40px; }

    .devices-track-outer {
        overflow: hidden; /* back to hidden — JS handles sliding */
        cursor: default;
    }
    .devices-track { transition: transform .35s ease; }

    .faq-title { text-align: center; }
    .why-title { text-align: center;}
    .why-card  { padding: 24px 16px; border-radius: 10px; }
    .why-grid  { flex-wrap: wrap; gap: 24px 12px; }
    .why-item  { flex: 0 0 calc(50% - 6px); padding: 0; }
    .why-item-desc { display: none; } /* hidden on mobile like screenshot */
    .tp-carousel-wrap { margin: 0 48px; }
    .tp-card { flex: 0 0 calc((100% - 16px) / 2); }
    .tp-subtitle { display: block !important; }
}

@media (max-width: 480px) {
    .device-card { flex: 0 0 calc((100% - 20px) / 2); }
}
