/* ===================================================
   HPB Media - Modern Testimonials Section
   Design System: Clean, Ultra-Smooth, B2B High-End
   =================================================== */

.hpt-section {
    position: relative;
    padding: 80px 0 85px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
    overflow: hidden;
}

.hpt-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Header */
.hpt-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 46px;
}

.hpt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 100px;
    color: #1a56db;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hpt-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.2);
}

.hpt-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hpt-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #64748b;
    margin: 0 auto 28px;
    max-width: 620px;
}

/* Trust stats bar */
.hpt-trust-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 12px 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.05);
}

.hpt-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #334155;
}

.hpt-stars-gold {
    color: #f59e0b;
    font-size: 15px;
    letter-spacing: 2px;
}

.hpt-trust-num {
    font-weight: 800;
    color: #1a56db;
    font-size: 16px;
}

.hpt-trust-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
}

/* Grid Cards */
.hpt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 46px;
}

.hpt-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 20px;
    padding: 32px 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.04), 0 0 1px 1px rgba(15, 23, 42, 0.02);
    overflow: hidden;
}

/* Subtle top line highlight on hover */
.hpt-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a56db, #6366f1);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hpt-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 35px -8px rgba(26, 86, 219, 0.12), 0 4px 10px -2px rgba(26, 86, 219, 0.04);
}

.hpt-card:hover::before {
    opacity: 1;
}

/* Card Header */
.hpt-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.hpt-service-tag {
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    background: #f0f7ff;
    color: #1a56db;
    border: 1px solid #dbeafe;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.hpt-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
    flex-shrink: 0;
}

/* Quote Reset - Overriding Flatsome blockquote styles */
.hpt-card blockquote,
.hpt-card .hpt-quote-text {
    border: none !important;
    border-left: none !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
    font-style: normal !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #334155 !important;
    flex-grow: 1;
    position: relative;
    background: transparent !important;
}

/* Author block */
.hpt-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.hpt-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.hpt-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #ffffff;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #e0e7ff;
}

.hpt-author-info {
    min-width: 0;
    flex: 1;
}

.hpt-author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.hpt-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.hpt-vcheck {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    background: #1a56db;
    color: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
}

.hpt-vcheck svg {
    width: 10px;
    height: 10px;
    fill: #ffffff;
}

.hpt-author-role {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Bottom CTA Banner */
.hpt-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 34px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #ffffff;
    box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.25);
}

.hpt-cta-text h3 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.hpt-cta-text p {
    color: #94a3b8;
    font-size: 14.5px;
    margin: 0;
    line-height: 1.5;
}

.hpt-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hpt-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a56db;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(26, 86, 219, 0.35);
}

.hpt-btn-primary:hover {
    background: #1e40af;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26, 86, 219, 0.45);
}

.hpt-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}

.hpt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .hpt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hpt-card:last-child {
        grid-column: span 2;
    }
    .hpt-cta {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .hpt-section {
        padding: 50px 0 60px;
    }
    .hpt-title {
        font-size: 24px;
    }
    .hpt-desc {
        font-size: 14.5px;
        margin-bottom: 22px;
    }
    .hpt-trust-bar {
        flex-direction: column;
        gap: 10px;
        border-radius: 18px;
        padding: 16px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .hpt-trust-divider {
        display: none;
    }
    .hpt-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 12px;
        margin: 0 -24px 32px;
        padding-left: 24px;
        padding-right: 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hpt-grid::-webkit-scrollbar {
        display: none;
    }
    .hpt-card {
        min-width: 86%;
        max-width: 86%;
        scroll-snap-align: center;
        padding: 24px 20px 22px;
        border-radius: 18px;
    }
    .hpt-card:last-child {
        grid-column: auto;
    }
    .hpt-cta {
        flex-direction: column;
        text-align: center;
        padding: 26px 20px;
        gap: 18px;
    }
    .hpt-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .hpt-btn-primary, .hpt-btn-secondary {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}
