/* components.css - Buttons, Cards, Inputs */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-main);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 90, 219, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--bg-light);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Section Titles */
.onepro-section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Cards */
.card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: #ffffff;
}

.testi-swiper {
    width: 100%;
    padding: 2rem 0;
    margin-top: 2rem;
}

.testi-swiper .swiper-wrapper {
    align-items: stretch; /* Đồng bộ chiều cao tất cả các slide */
}

.testimonial-card {
    width: 380px;
    height: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    background: #F8FAFC;
    border-radius: 16px;
    padding: 3rem;
    text-align: left;
    opacity: 0.3;
    transform: scale(0.85);
    box-sizing: border-box;
    box-shadow: none;
}

.testimonial-card.swiper-slide-active {
    width: 700px;
    opacity: 1;
    transform: scale(1);
    background: #F8FAFC;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.customer-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.customer-profile .company-logo {
    width: 100px;
    height: 60px;
    background: transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.customer-profile .company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.customer-info h4 {
    color: #3b82f6;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.customer-info span {
    font-size: 0.95rem;
    color: #6b7280;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: normal;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0;
}

.testi-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.testi-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C7D8FB;
    opacity: 1;
    transition: background 0.3s ease;
}

.testi-pagination .swiper-pagination-bullet-active {
    background: #3b82f6;
}


@media (max-width: 768px) {
    .testi-swiper {
        padding: 1rem 0;
    }
    
    .testimonial-card {
        width: 280px;
        padding: 1.5rem;
    }
    
    .testimonial-card.swiper-slide-active {
        width: 340px;
    }
    
}
