.transformations-grid-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.transformations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive Grid */
@media screen and (max-width: 1024px) {
    .transformations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .transformations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Card Styling */
.transformation-card {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Header Styling */
.transformation-card-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.transformation-card-logo {
    height: 40px !important;
    width: auto !important;
    margin-right: 15px;
}

.transformation-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px;
    /* Align text block height with logo */
}

.transformation-card-static-text {
    font-size: 12px;
    line-height: 16px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.transformation-card-program {
    font-size: 18px;
    line-height: 20px;
    color: #29282d;
    font-weight: 700;
}

/* Body Styling */
.transformation-card-body {
    display: flex;
    padding: 10px;
    gap: 10px;
    /* Gap between before/after images */
}

.transformation-image-wrap {
    flex: 1;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.transformation-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Badges */
.transformation-badge {
    position: absolute;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.badge-before {
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom-right-radius: 4px;
}

.badge-after {
    bottom: 0;
    right: 0;
    background-color: rgba(209, 17, 32, 0.8);
    /* Brand Red */
    border-top-left-radius: 4px;
}

/* Load More Button Wrapper */
.transformations-load-more-wrap {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.transformations-load-more-btn {
    display: inline-block;
    padding: 18px 45px;
    background-color: #D11120;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.transformations-load-more-btn:hover {
    background-color: #b80f1c;
}

.transformations-load-more-btn:disabled,
.transformations-load-more-btn.loading {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loader */
.transformations-loader {
    display: none;
    margin: 20px auto;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D11120;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}