/* Align row items to stretch so columns have equal height */
.testimonial-wrapper .row.g-4 {
    display: flex;
    align-items: stretch;
}

.testimonial-wrapper .col-lg-4 {
    display: flex;
    flex-direction: column;
}

/* Force the image container to fill the entire column height */
.testimonia-image {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

/* Ensure the image covers the full height of its container */
.testimonia-image img.tp-anim-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
    border-radius: 15px;
}

.process-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    height: 100%;
}

.process-block {
    display: flex;
    align-items: center;
    padding: 25px;
    border-radius: 15px;
    color: #fff;
    transition: transform 0.3s ease;
    min-height: 140px;
    gap: 20px; /* Space between number and text */
}

.process-block:hover {
    transform: translateY(-5px);
}

.process-block.full-width {
    grid-column: span 2;
}

/* Colors from Theme */
.process-block.color-blue {
    background-color: var(--theme-2); /* Blue */
}

.process-block.color-red {
    background-color: var(--theme); /* Red */
}

.process-block.color-black {
    background-color: var(--header); /* Black/Dark */
}

/* Content Styling */
.process-number {
    flex: 0 0 60px;
    font-size: 40px;
    font-weight: 800;
    opacity: 0.3;
    line-height: 1;
}

.process-info {
    flex: 1;
}

.process-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.process-info p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 991px) {
    .testimonial-wrapper .row.g-4 {
        flex-direction: column;
    }
    
    .testimonia-image {
        height: 400px !important; /* Fixed height for tablet/mobile */
    }
}

@media (max-width: 767px) {
    .process-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    
    .process-block.full-width {
        grid-column: span 1;
    }
    
    .testimonia-image {
        height: 300px !important;
    }
}