/* =========================================================
   ASE CUSTOMER REVIEWS - V2
   Minimal responsive carousel
   ========================================================= */

.ase-review-section,
.ase-review-section * {
    box-sizing: border-box;
}

.ase-review-section {
    width: 100%;
}



/* Header */
.ase-review-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.ase-review-heading {
    max-width: 760px;
}

.ase-review-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: #d17e00;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.ase-review-header h2 {
    margin: 0 0 8px;
    color: #011733;
    font-size: clamp(28px, 2.7vw, 40px);
    font-weight: 700;
    line-height: 1.12;
}

.ase-review-header p {
    max-width: 720px;
    margin: 0;
    color: #667381;
    font-size: 14px;
    line-height: 1.6;
}

/* Google badge */
.ase-review-google-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    background: #fff;
    border: 1px solid #e2e7eb;
    border-radius: 8px;
}

.ase-google-badge-copy strong,
.ase-google-badge-copy small {
    display: block;
}

.ase-google-badge-copy strong {
    color: #011733;
    font-size: 13px;
    line-height: 1.2;
}

.ase-google-badge-copy small {
    margin-top: 2px;
    color: #8b949e;
    font-size: 10px;
    line-height: 1.3;
}

.ase-google-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #e2e7eb;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.ase-google-mark-large {
    width: 34px;
    height: 34px;
    font-size: 17px;
}

/* Carousel */
.ase-review-carousel {
    position: relative;
    width: 100%;
}

.ase-review-viewport {
    width: 100%;
    overflow: hidden;
}

.ase-review-track {
    display: flex;
    gap: 18px;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
}

.ase-review-slide {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
}

/* Review card */
.ase-review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 220px;
    height: 100%;
    padding: 20px 20px 7px;
    background: #fff;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ase-review-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 40px;
    height: 3px;
    background: #d17e00;
}

.ase-review-card:hover {
    transform: translateY(-3px);
    border-color: #d4dbe1;
    box-shadow: 0 12px 28px rgba(1, 23, 51, .07);
}

.ase-review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ase-review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ase-review-avatar {
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #011733;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ase-review-user-info {
    min-width: 0;
}

.ase-review-user strong {
    display: block;
    overflow: hidden;
    color: #011733;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ase-review-user span {
    display: block;
    margin-top: 2px;
    color: #8b949e;
    font-size: 11px;
    line-height: 1.3;
}

.ase-review-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 11px;
}

.ase-review-stars span {
    color: #d7dce1;
    font-size: 16px;
    line-height: 1;
}

.ase-review-stars span.is-active {
    color: #f5aa00;
}

.ase-review-text {
    flex: 1;
    color: #3f4b58;
    font-size: 14px;
    line-height: 1.65;
}

.ase-review-text p {
    margin: 0 0 0px;
    color: #002454c7;
    font-size: 14px;
}

.ase-review-text p:last-child {
    margin-bottom: 0;
}

.ase-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding-top: 7px;
    /* border-top: 1px solid #edf0f2; */
    color: #8a939d;
    font-size: 11px;
}

.ase-review-meta a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d17e00;
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
}
time {
    font-size: 12px;
    color: #666;
}
.ase-review-meta a:hover {
    color: #011733;
}

/* Controls */
.ase-review-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 36px;
    margin-top: 15px;
}

.ase-review-controls.is-hidden {
    display: none;
}

.ase-review-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
}

.ase-review-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #aab2ba;
    opacity: .5;
    cursor: pointer;
    transition: width .25s ease, opacity .25s ease, background .25s ease;
}

.ase-review-dot.is-active {
    width: 20px;
    background: #d17e00;
    opacity: 1;
}

.ase-review-arrows {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ase-review-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #dce2e7;
    border-radius: 50%;
    background: #fff;
    color: #011733;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}


button.ase-review-arrow.ase-review-prev span {
    font-size: 0px;
}
button.ase-review-arrow.ase-review-next span {
    font-size: 0px;
}
button.ase-review-arrow.ase-review-next span:before {
    content: "\f178";
    font-size: 15px;
    font-family: 'FontAwesome';
}
button.ase-review-arrow.ase-review-prev span:before {
    content: "\f177";
    font-family: 'FontAwesome';
    font-size: 15px;
}


.ase-review-arrow:hover:not(:disabled) {
    background: #011733;
    border-color: #011733;
    color: #fff;
}

.ase-review-arrow:hover:not(:disabled) span:before{
    color: #fff;
}


.ase-review-arrow:disabled {
    opacity: .35;
    cursor: default;
}

/* Footer */
.ase-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e7eb61;
}

.ase-review-footer p {
    margin: 0;
    color: #6a7682;
    font-size: 12px;
    line-height: 1.5;
}

.ase-review-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 4px;
    background: #011733;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.ase-review-btn:hover {
    background: #d17e00;
}

.ase-review-btn span {
    font-size: 15px;
}

/* When only one or two reviews exist, keep cards aligned left without huge gaps */
.ase-review-section[data-ase-review-count="1"] .ase-review-track,
.ase-review-section[data-ase-review-count="2"] .ase-review-track {
    justify-content: flex-start;
}

/* Tablet */
@media (max-width: 1024px) {
    .ase-review-section {
        padding: 42px 0;
    }

    .ase-review-slide {
        flex-basis: calc((100% - 18px) / 2);
    }

    .ase-review-header {
        align-items: flex-start;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .ase-review-section {
        padding: 36px 0;
    }

    .ase-review-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 19px;
    }

    .ase-review-header h2 {
        font-size: 27px;
    }

    .ase-review-header p {
        font-size: 13px;
    }

    .ase-review-google-badge {
        width: max-content;
        max-width: 100%;
    }

    .ase-review-slide {
        flex-basis: 100%;
    }

    .ase-review-card {
        min-height: 240px;
        padding: 18px;
    }

    .ase-review-card::before {
        left: 18px;
    }

    .ase-review-controls {
        margin-top: 13px;
    }

    .ase-review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ase-review-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ase-review-header h2 {
        font-size: 25px;
    }

    .ase-review-user strong {
        max-width: 185px;
    }

    .ase-review-meta {
        flex-wrap: wrap;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ase-review-track,
    .ase-review-card,
    .ase-review-dot,
    .ase-review-arrow,
    .ase-review-btn {
        transition: none !important;
    }
}
