@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ==========================================================================
   Trusted Brands, Testimonial & Recognition Section Styles
   (Fully Responsive Desktop, Laptop, Tablet & Mobile Implementation)
   ========================================================================== */



.ttr-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.ttr-grid {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* ==========================================================================
   CARD 1: Trusted by Global Brands
   width: 534px | height: 490px | padding: 70px 60px
   ========================================================================== */
.ttr-brands-card {
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    background-color: #fff;
    width: 534px;
    min-width: 534px;
}

.ttr-card-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 34px;
    color: #0F172A;
    margin: 0 0 24px 0;
}

.ttr-brands-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 139.064px);
    grid-template-rows: repeat(2, 139.064px);
    gap: 6px;
    width: 100%;
}

.ttr-red-logo-box {
    background-color: #E3001D;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ttr-red-logo-box:hover {
    transform: translateY(-2px);
    background-color: #d1001a;
}

.ttr-red-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* ==========================================================================
   CARD 2: Testimonial Card (Grey Column + White Inner Box)
   width: 533px | height: 489px | color: #5E6470 | padding: 70px 60px
   ========================================================================== */
.ttr-testimonial-grey-card {
    width: 533px;
    min-width: 533px;
    height: 489px;
    background-color: #5E6470;
    padding: 70px 60px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.ttr-testimonial-white-box {
    background-color: #ffffff;
    width: 417px;
    height: 345px;
    flex-shrink: 0;
    border-radius: 1px;
    padding: 48px 32px 32px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.ttr-red {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.ttr-red-quote-mark {
    width: 12px;
    height: 20px;
    background-color: #E3001D;
    margin-bottom: 16px;
}

.ttr-testimonial-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    color: #1F2937;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ttr-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.ttr-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

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

.ttr-author-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 23px;
    color: #0F172A;
    margin: 0;
}

.ttr-author-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #91949D;
    margin-top: 3px;
}

/* ==========================================================================
   CARD 3: Recognized for Excellence (Dark Navy Column)
   width: 532px | height: 489px | padding: 70px 60px
   ========================================================================== */
.ttr-recognition-dark-card {
    width: 532px;
    min-width: 532px;
    height: 489px;
    background-color: #0B111E;
    padding: 70px 60px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.ttr-red-pill-tag {
    width: 109px;
    height: 26px;
    border-radius: 1px;
    padding: 8px;
    gap: 10px;
    background-color: #E3001D;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.ttr-card-title-light {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 34px;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.ttr-recognition-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 10px 0;
    overflow: hidden;
}

.ttr-wreath-container {
    position: relative;
    width: 100%;
    max-width: 250px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ttr-laurel-wreath {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ttr-wreath-logo-inside {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttr-wreath-logo-inside img,
.goodfirms-white-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.ttr-award-subtext-light {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    color: #94A3B8;
    max-width: 240px;
    margin: 0 auto;
    margin-top: 14px;
}

/* Capsule Navigation Arrows */
.ttr-pill-navigation {
    width: 112px;
    height: 44px;
    border-radius: 999px;
    gap: 32px;
    padding: 12px 16px;
    background-color: #3F4555;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 8px;
}

.ttr-pill-navigation.dark-pill {
    background-color: #1B2434;
}

.ttr-pill-arrow {
    background: transparent;
    border: none;
    color: #9CA3AF;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    outline: none;
}

.ttr-pill-arrow:hover:not(.disabled) {
    color: #ffffff;
    transform: scale(1.15);
}

.ttr-pill-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.ttr-pill-arrow svg {
    width: 8px;
    height: 14px;
}

/* Slider Active/Inactive States */
.ttr-testimonial-slide,
.ttr-award-slide {
    display: none;
}

.ttr-award-slide.active {
    display: block;
    animation: smoothSlideFadeIn 0.4s ease-out forwards;
}

.ttr-testimonial-slider {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ttr-testimonial-slide.active {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    animation: smoothSlideFadeIn 0.4s ease-out forwards;
}

@keyframes smoothSlideFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Pixel-Perfect across all screen sizes)
   ========================================================================== */

/* Laptop / Mid Desktop Scaling (1025px - 1599px) */
@media (max-width: 1599px) and (min-width: 1025px) {
    .ttr-container {
        padding: 0 20px;
    }

    .ttr-brands-card {
        width: 35%;
        min-width: 0;
        padding: 50px 30px;
    }

    .ttr-testimonial-grey-card {
        width: 33.5%;
        min-width: 0;
        padding: 50px 30px;
    }

    .ttr-recognition-dark-card {
        width: 31.5%;
        min-width: 0;
        padding: 50px 30px;
    }

    .ttr-brands-grid-3col {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 6px;
    }

    .ttr-red-logo-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        padding: 10px;
    }

    .ttr-testimonial-white-box {
        width: 100%;
        height: auto;
        min-height: 330px;
        padding: 44px 24px 24px 24px;
    }

    .ttr-testimonial-text {
        font-size: 18px;
        line-height: 22px;
        margin-bottom: 30px;
    }
}

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {
    .ttr-section {
        padding: 60px 0;
    }

    .ttr-container {
        padding: 0 20px;
    }

    .ttr-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ttr-brands-card,
    .ttr-testimonial-grey-card,
    .ttr-recognition-dark-card {
        width: 100%;
        min-width: 100%;
        height: auto;
        padding: 50px 40px;
    }

    .ttr-brands-card {
        align-items: center;
    }

    .ttr-card-title {
        text-align: center;
    }

    .ttr-brands-grid-3col {
        grid-template-columns: repeat(3, minmax(0, 140px));
        grid-template-rows: auto;
        justify-content: center;
        gap: 10px;
    }

    .ttr-red-logo-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .ttr-testimonial-white-box {
        width: 100%;
        max-width: 520px;
        height: auto;
        padding: 48px 32px 28px 32px;
        margin: 0 auto;
    }

    .ttr-testimonial-text {
        margin-bottom: 30px;
    }
}

/* Mobile View (<= 767px) */
@media (max-width: 767px) {
    .ttr-section {
        padding: 40px 0;
    }

    .ttr-container {
        padding: 0 16px;
        box-sizing: border-box;
    }

    .ttr-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .ttr-brands-card,
    .ttr-testimonial-grey-card,
    .ttr-recognition-dark-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 36px 20px 24px 20px !important;
        box-sizing: border-box !important;
        border-radius: 4px;
    }

    .ttr-card-title,
    .ttr-card-title-light {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
        text-align: center;
    }

    .ttr-brands-grid-3col {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .ttr-red-logo-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .ttr-red-logo-box img,
    .ttr-red-logo-box img.logo-white {
        max-width: 85%;
        max-height: 55%;
        object-fit: contain;
    }

    .ttr-testimonial-grey-card {
        padding: 36px 16px 24px 16px !important;
    }

    .ttr-testimonial-white-box {
        width: 100%;
        height: auto;
        padding: 44px 20px 20px 20px !important;
        box-sizing: border-box;
    }

    .ttr-red {
        top: 14px;
        left: 14px;
    }

    .ttr-testimonial-text {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 24px;
    }

    .ttr-author-avatar {
        width: 40px;
        height: 40px;
    }

    .ttr-author-name {
        font-size: 17px;
        line-height: 21px;
    }

    .ttr-author-title {
        font-size: 13px;
        line-height: 16px;
    }

    .ttr-recognition-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .ttr-recognition-body {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 16px 0;
        min-height: 140px;
        overflow: hidden;
    }

    .ttr-wreath-logo-inside {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ttr-wreath-logo-inside img,
    .goodfirms-white-logo {
        max-width: 200px;
        height: auto;
        max-height: 100px;
        object-fit: contain;
    }

    .ttr-award-subtext-light {
        font-size: 13px;
        line-height: 18px;
        color: #94A3B8;
        max-width: 240px;
        margin-top: 12px;
        text-align: center;
    }

    .ttr-pill-navigation {
        margin-top: 16px;
    }
}

/* Extra Small Mobile View (<= 420px) */
@media (max-width: 420px) {
    .ttr-container {
        padding: 0 12px;
    }

    .ttr-brands-card,
    .ttr-testimonial-grey-card,
    .ttr-recognition-dark-card {
        padding: 28px 12px 20px 12px !important;
    }

    .ttr-card-title,
    .ttr-card-title-light {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 16px;
    }

    .ttr-brands-grid-3col {
        gap: 6px;
    }

    .ttr-red-logo-box {
        padding: 6px;
    }

    .ttr-testimonial-white-box {
        padding: 40px 14px 16px 14px !important;
    }

    .ttr-testimonial-text {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 16px;
    }
}