/* Testimonials Grid Block - Frontend Styles */

.taskipfb-testimonials-grid {
    width: 100%;
    position: relative;
}

.taskipfb-tg-container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.taskipfb-tg-header {
    text-align: center;
    margin-bottom: 60px;
}

.taskipfb-tg-label {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.taskipfb-tg-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* Testimonials Grid */
.taskipfb-tg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    width: 100%;
}

.taskipfb-tg-card {
    padding: 40px;
    border-radius: 10px;
    border: 1px solid transparent; /* Default transparent, let inline styles take over */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-width: 0; /* Prevents grid blowout */
}

/* Card Width Classes - Using !important to ensure priority */
.taskipfb-tg-card.taskipfb-tg-card-small {
    grid-column: span 1 !important; /* 25% width */
}

.taskipfb-tg-card.taskipfb-tg-card-large {
    grid-column: span 2 !important; /* 50% width */
    background-color: #FAFAFA !important; /* Default background for all 50% boxes */
    border: 1px solid #E4E4E7 !important; /* Default border for all 50% boxes */
}

.taskipfb-tg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stat Card Styles */
.taskipfb-tg-card-stat .taskipfb-tg-stat-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 16px 0;
    color: #111827;
}

.taskipfb-tg-card-stat .taskipfb-tg-stat-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 40px 0;
    color: #111827;
}

/* Quote Card Styles */
.taskipfb-tg-card-quote .taskipfb-tg-quote {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 32px 0;
    color: #374151;
}

/* Author Section */
.taskipfb-tg-author-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.taskipfb-tg-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.taskipfb-tg-author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.taskipfb-tg-author-text {
    display: flex;
    flex-direction: column;
}

.taskipfb-tg-author-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 4px 0;
}

.taskipfb-tg-author-title {
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
    margin: 0;
}

.taskipfb-tg-company-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    flex-shrink: 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .taskipfb-tg-heading {
        font-size: 36px;
    }

    .taskipfb-tg-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .taskipfb-tg-card-small,
    .taskipfb-tg-card-large {
        grid-column: span 1; /* Full width on tablet */
    }

    .taskipfb-tg-card {
        padding: 30px;
    }

    .taskipfb-tg-card-stat .taskipfb-tg-stat-number {
        font-size: 52px;
    }

    .taskipfb-tg-card-stat .taskipfb-tg-stat-title {
        font-size: 18px;
    }

    .taskipfb-tg-card-quote .taskipfb-tg-quote {
        font-size: 16px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .taskipfb-tg-heading {
        font-size: 28px;
    }

    .taskipfb-tg-header {
        margin-bottom: 40px;
    }

    .taskipfb-tg-label {
        font-size: 14px;
    }

    .taskipfb-tg-grid {
        grid-template-columns: 1fr !important;
    }

    .taskipfb-tg-card-small,
    .taskipfb-tg-card-large {
        grid-column: span 1; /* Full width on mobile */
    }

    .taskipfb-tg-card {
        padding: 24px;
    }

    .taskipfb-tg-card-stat .taskipfb-tg-stat-number {
        font-size: 48px;
    }

    .taskipfb-tg-card-stat .taskipfb-tg-stat-title {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .taskipfb-tg-card-quote .taskipfb-tg-quote {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .taskipfb-tg-author-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .taskipfb-tg-author-name {
        font-size: 15px;
    }

    .taskipfb-tg-author-title {
        font-size: 13px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .taskipfb-tg-heading {
        font-size: 24px;
    }

    .taskipfb-tg-card {
        padding: 20px;
    }

    .taskipfb-tg-card-stat .taskipfb-tg-stat-number {
        font-size: 42px;
    }
}
