/* ==========================================================================
   Premium Testimonials Grid - Frontend Styles
   ========================================================================== */

.pt-testimonial-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 60px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pt-testimonial-wrap *, 
.pt-testimonial-wrap *::before, 
.pt-testimonial-wrap *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header Section
   -------------------------------------------------------------------------- */
.pt-section-header {
    margin-bottom: 48px;
}

.pt-section-header.pt-align-center {
    text-align: center;
}

.pt-section-header.pt-align-left {
    text-align: left;
}

.pt-section-header.pt-align-right {
    text-align: right;
}

.pt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.pt-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pt-section-title {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 12px 0;
}

.pt-section-subtitle {
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    max-width: 620px;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Multi-Column Grid
   -------------------------------------------------------------------------- */
.pt-grid-columns {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.pt-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Responsive Column Breakdown */
@media (max-width: 960px) {
    .pt-grid-columns.pt-cols-3,
    .pt-grid-columns.pt-cols-4 {
        flex-wrap: wrap;
    }
    .pt-grid-columns.pt-cols-3 .pt-column,
    .pt-grid-columns.pt-cols-4 .pt-column {
        flex: 1 1 calc(50% - 24px);
    }
    .pt-section-title {
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .pt-grid-columns {
        flex-direction: column;
    }
    .pt-column {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .pt-section-title {
        font-size: 32px;
    }
    .pt-testimonial-wrap {
        padding: 40px 16px;
    }
}

/* --------------------------------------------------------------------------
   Cards Common Styles
   -------------------------------------------------------------------------- */
.pt-card {
    position: relative;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

/* --------------------------------------------------------------------------
   Standard Quote Card
   -------------------------------------------------------------------------- */
.pt-card-standard {
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.pt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.pt-author-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pt-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pt-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 16px;
}

.pt-author-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pt-author-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.pt-author-role {
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 400;
    word-break: break-word;
}

.pt-quote-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.pt-quote-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pt-star-rating {
    margin-bottom: 12px;
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
}

.pt-review-content p {
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* --------------------------------------------------------------------------
   Featured Video / Case Study Card
   -------------------------------------------------------------------------- */
.pt-card-featured {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    cursor: default;
}

.pt-card-featured.has-video {
    cursor: pointer;
}

.pt-feat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.pt-card-featured:hover .pt-feat-bg {
    transform: scale(1.05);
}

.pt-feat-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.pt-play-button {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.pt-play-button svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.pt-card-featured:hover .pt-play-button {
    transform: scale(1.12);
    background-color: rgba(255, 255, 255, 0.65);
}

.pt-feat-content {
    position: relative;
    z-index: 3;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pt-feat-logo-img {
    max-height: 28px;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 2px;
}

.pt-feat-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pt-brand-icon {
    width: 18px;
    height: 18px;
}

.pt-feat-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Lightbox Video Modal
   -------------------------------------------------------------------------- */
.pt-video-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pt-video-modal.pt-modal-active {
    opacity: 1;
}

.pt-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pt-modal-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pt-video-modal.pt-modal-active .pt-modal-inner {
    transform: scale(1);
}

.pt-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pt-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.pt-video-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.pt-video-frame-container iframe,
.pt-video-frame-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
