/* ============================================
   TESTIMONIAL SLIDER - Premium Education Style
   assets/css/testimonial.css
   ============================================ */

.bh-testimonial-section {
    position: relative;
    padding: 0;
}

/* Header Row */
.bh-testimonial-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
}

.bh-testimonial-header .bh-section-title__sub {
    margin-bottom: 4px;
}

.bh-testimonial-header .bh-section-title__main {
    font-size: 30px;
    margin-bottom: 0;
}

.bh-testimonial-count {
    font-size: 14px;
    color: var(--bh-gray-500);
    margin-top: 6px;
}

.bh-testimonial-count strong {
    color: var(--bh-orange);
    font-size: 18px;
}

/* Navigation Arrows */
.bh-testimonial-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bh-testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--bh-gray-300);
    background: var(--bh-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--bh-dark);
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.bh-testimonial-arrow:hover {
    border-color: var(--bh-orange);
    color: var(--bh-orange);
    background: var(--bh-orange-light);
}

.bh-testimonial-arrow:active {
    transform: scale(0.92);
}

.bh-testimonial-indicator {
    font-size: 14px;
    font-weight: 600;
    color: var(--bh-gray-700);
    min-width: 50px;
    text-align: center;
}

.bh-testimonial-indicator [data-current] {
    color: var(--bh-orange);
    font-size: 18px;
    font-weight: 800;
}

/* Viewport & Track */
.bh-testimonial-viewport {
    overflow: hidden;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.bh-testimonial-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

/* Card */
.bh-testimonial-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    background: var(--bh-white);
    border: 1px solid var(--bh-gray-200);
    border-radius: 16px;
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.bh-testimonial-card::before {
    content: '"';
    position: absolute;
    top: -8px;
    right: 16px;
    font-size: 80px;
    font-weight: 900;
    color: var(--bh-orange);
    opacity: 0.07;
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}

.bh-testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--bh-orange);
}

/* Profile */
.bh-testimonial-card__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bh-testimonial-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bh-orange), #FF8C42);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.bh-testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-testimonial-card__avatar span {
    font-size: 20px;
    font-weight: 800;
    color: var(--bh-white);
}

.bh-testimonial-card__meta {
    flex: 1;
    min-width: 0;
}

.bh-testimonial-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--bh-black);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bh-testimonial-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bh-testimonial-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.bh-testimonial-tag--year {
    background: var(--bh-orange-light);
    color: var(--bh-orange);
}

.bh-testimonial-tag--type {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Stars */
.bh-testimonial-card__rating {
    margin-bottom: 14px;
    display: flex;
    gap: 2px;
}

.bh-star {
    font-size: 16px;
    color: var(--bh-gray-300);
    line-height: 1;
}

.bh-star--filled {
    color: #FFB800;
}

/* Body */
.bh-testimonial-card__body {
    flex: 1;
    margin-bottom: 16px;
}

.bh-testimonial-card__body p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--bh-gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.bh-testimonial-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--bh-gray-200);
}

.bh-testimonial-card__date {
    font-size: 12px;
    color: var(--bh-gray-500);
}

.bh-testimonial-card__link {
    font-size: 13px;
    color: var(--bh-orange);
    font-weight: 600;
    transition: color 0.2s;
}

.bh-testimonial-card__link:hover {
    color: var(--bh-orange-hover);
}

/* Dots */
.bh-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.bh-testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--bh-gray-300);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.bh-testimonial-dot--active {
    background: var(--bh-orange);
    width: 28px;
    border-radius: 5px;
}

.bh-testimonial-dot:hover:not(.bh-testimonial-dot--active) {
    background: var(--bh-gray-500);
}

/* CTA */
.bh-testimonial-cta {
    text-align: center;
    margin-top: 32px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .bh-testimonial-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .bh-testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
    }

    .bh-testimonial-header .bh-section-title__main {
        font-size: 22px;
    }

    .bh-testimonial-nav {
        align-self: flex-end;
    }

    .bh-testimonial-arrow {
        width: 38px;
        height: 38px;
    }

    .bh-testimonial-card {
        flex: 0 0 calc(100% - 0px);
        padding: 22px 18px 16px;
    }

    .bh-testimonial-card__avatar {
        width: 44px;
        height: 44px;
    }

    .bh-testimonial-card__avatar span {
        font-size: 17px;
    }

    .bh-testimonial-card__name {
        font-size: 15px;
    }

    .bh-testimonial-card__body p {
        -webkit-line-clamp: 4;
        font-size: 14px;
    }

    .bh-testimonial-dots {
        margin-top: 20px;
        gap: 6px;
    }

    .bh-testimonial-dot {
        width: 8px;
        height: 8px;
    }

    .bh-testimonial-dot--active {
        width: 24px;
    }

    .bh-testimonial-track {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .bh-testimonial-card {
        padding: 18px 16px 14px;
    }

    .bh-testimonial-card__body p {
        -webkit-line-clamp: 3;
        font-size: 13px;
    }
}

/* ============================================
   FULL-WIDTH PHOTO GRID VARIANT
   (for exam-info page behind slider)
   ============================================ */
.bh-testimonial-with-photos {
    position: relative;
}

.bh-testimonial-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 3px;
    margin-bottom: 36px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 240px;
    opacity: 0.25;
}

.bh-testimonial-photo-grid__item {
    aspect-ratio: 1;
    background: var(--bh-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-gray-400);
    font-size: 24px;
    overflow: hidden;
}

.bh-testimonial-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-testimonial-photo-overlay {
    text-align: center;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.bh-testimonial-photo-overlay__badge {
    display: inline-block;
    background: var(--bh-orange);
    color: var(--bh-white);
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(232, 96, 28, 0.3);
}

@media (max-width: 768px) {
    .bh-testimonial-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
        max-height: 160px;
    }

    .bh-testimonial-photo-overlay__badge {
        font-size: 13px;
        padding: 8px 20px;
    }
}
