/* ==========================================
   ONE CONVEYANCING - TESTIMONIALS
   Navy Blue Theme (No Gold)
========================================== */

.oc-testimonials {
    --testimonial-navy: #0a1635;
    --testimonial-navy-dark: #060f24;
    --testimonial-navy-light: #12224a;
    --testimonial-navy-accent: #2a3f7a;
    --testimonial-white: #ffffff;
    --testimonial-text: rgba(255, 255, 255, 0.75);
    --testimonial-muted: rgba(255, 255, 255, 0.5);
    --testimonial-border: rgba(255, 255, 255, 0.12);
    --testimonial-ease: cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    isolation: isolate;
    padding: 110px 0;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--testimonial-navy-dark) 0%,
            var(--testimonial-navy) 55%,
            #0c1c42 100%
        );
}

/* Top White Line */
.oc-testimonials::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 2px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 22%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 78%,
        transparent 100%
    );
}

/* ===========================
   BACKGROUND DECORATION
=========================== */

.oc-testimonials__decor {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.oc-testimonials__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
}

.oc-testimonials__glow--left {
    top: -250px;
    left: -230px;
    width: 580px;
    height: 580px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
}

.oc-testimonials__glow--right {
    right: -260px;
    bottom: -280px;
    width: 620px;
    height: 620px;
    background: radial-gradient(
        circle,
        rgba(42, 63, 122, 0.4) 0%,
        transparent 68%
    );
}

.oc-testimonials__grid {
    position: absolute;
    top: 0;
    right: 7%;
    width: 300px;
    height: 100%;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    transform: skewX(-14deg);
}

/* ===========================
   HEADER
=========================== */

.oc-testimonials__header {
    max-width: 735px;
    margin: 0 auto 58px;
    text-align: center;
}

.oc-testimonials__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--testimonial-white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.oc-testimonials__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--testimonial-white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.oc-testimonials__heading {
    margin: 0;
    color: var(--testimonial-white);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.045em;
}

.oc-testimonials__heading span {
    color: var(--testimonial-white);
    position: relative;
    display: inline-block;
}

.oc-testimonials__heading span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.oc-testimonials__subtitle {
    max-width: 610px;
    margin: 20px auto 0;
    color: var(--testimonial-text);
    font-size: 1rem;
    line-height: 1.75;
}

/* ===========================
   TESTIMONIAL GRID
=========================== */

.oc-testimonials__grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

/* ===========================
   TESTIMONIAL CARD
=========================== */

.oc-testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 365px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--testimonial-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform 0.35s var(--testimonial-ease),
        background 0.35s var(--testimonial-ease),
        border-color 0.35s var(--testimonial-ease),
        box-shadow 0.35s var(--testimonial-ease);
}

/* Top hover line */
.oc-testimonial::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.4)
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--testimonial-ease);
}

/* Large Quote Watermark */
.oc-testimonial::after {
    position: absolute;
    top: 58px;
    right: 20px;
    color: rgba(255, 255, 255, 0.05);
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 13rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.oc-testimonial:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.oc-testimonial:hover::before {
    transform: scaleX(1);
}

/* Featured Middle Card */
.oc-testimonial--featured {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.07) 55%,
        rgba(42, 63, 122, 0.2) 100%
    );
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
    transform: translateY(-12px);
}

.oc-testimonial--featured::before {
    transform: scaleX(1);
}

.oc-testimonial--featured:hover {
    transform: translateY(-20px);
}

/* ===========================
   CARD TOP
=========================== */

.oc-testimonial__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.oc-testimonial__quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: var(--testimonial-white);
    color: var(--testimonial-navy);
    font-size: 1.1rem;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.35s var(--testimonial-ease),
        box-shadow 0.35s var(--testimonial-ease);
}

.oc-testimonial:hover .oc-testimonial__quote-icon {
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.15);
    transform: rotate(-7deg) scale(1.06);
}

.oc-testimonial__review-label {
    color: var(--testimonial-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* ===========================
   STARS
=========================== */

.oc-testimonial__stars {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.oc-testimonial__stars i {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.oc-testimonial__stars i.is-active {
    color: #ffd35c;
    text-shadow: 0 0 14px rgba(255, 211, 92, 0.35);
}

/* ===========================
   QUOTE TEXT
=========================== */

.oc-testimonial__quote {
    position: relative;
    z-index: 1;
    flex: 1;
    margin: 0;
}

.oc-testimonial__quote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.8;
}

/* ===========================
   AUTHOR
=========================== */

.oc-testimonial__author {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.oc-testimonial__avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition:
        border-color 0.35s var(--testimonial-ease),
        transform 0.35s var(--testimonial-ease);
}

.oc-testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oc-testimonial:hover .oc-testimonial__avatar {
    border-color: rgba(255, 255, 255, 0.55);
    transform: scale(1.05);
}

.oc-testimonial__author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.oc-testimonial__author-info h3 {
    margin: 0 0 3px;
    color: var(--testimonial-white);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.oc-testimonial__author-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.oc-testimonial__verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--testimonial-white);
    font-size: 0.78rem;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 991px) {
    .oc-testimonials {
        padding: 85px 0;
    }

    .oc-testimonials__grid-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oc-testimonial--featured {
        transform: none;
    }

    .oc-testimonial--featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 767px) {
    .oc-testimonials {
        padding: 65px 0;
    }

    .oc-testimonials__header {
        margin-bottom: 40px;
        text-align: left;
    }

    .oc-testimonials__subtitle {
        margin-left: 0;
    }

    .oc-testimonials__grid-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .oc-testimonial {
        min-height: auto;
        padding: 25px;
    }

    .oc-testimonial__quote p {
        font-size: 0.92rem;
    }
}

@media (max-width: 420px) {
    .oc-testimonial {
        padding: 22px;
        border-radius: 16px;
    }

    .oc-testimonial__quote-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }

    .oc-testimonial__review-label {
        font-size: 0.62rem;
    }

    .oc-testimonial__avatar {
        width: 44px;
        height: 44px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .oc-testimonial,
    .oc-testimonial::before,
    .oc-testimonial__quote-icon,
    .oc-testimonial__avatar {
        transition: none;
    }
}