/*
Theme Name: pearl child
Author:
Description: Your description goes here
Version: 1.0
Template: pearl

This is the child theme for Pearl theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

.single-post .site-content ul li a {
    color: unset;
}

.single-post .site-content ul li:before,
.single-post .site-content ol li:before {
    color: unset !important;
    font-weight: 500;
}

.single-post .wpb_text_column ol li {
    display: block;
}

/* ── Testimonial Carousel — Brand-matched to ansibytecode.com ─── */

:root {
    --brand-navy:      #0c1b48;   /* primary dark navy */
    --brand-teal:      #0c4958;   /* deep teal */
    --brand-teal-mid:  #0e6479;   /* mid teal */
    --brand-red:       #ec1111;   /* red highlight */
    --radius-lg:       10px;
    --radius-sm:       14px;
    --transition-time: 220ms ease;
}

.unique-iframe-layer,
.unique-video-cover {
    transition: opacity var(--transition-time);
}

/* ── Outer container ── */
.unique-testimonial-container {
    background: #fff;
    padding: 0px;
    display: flex;
    justify-content: center;
}

/* ── Page wrapper ── */
.unique-page {
    width: min(1100px, 85%);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Title ── */
.unique-title {
    text-align: center;
    margin-bottom: 20px;
}

.unique-title h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brand-navy);
}

.unique-title p {
    color: #555;
    font-size: 17px;
    text-align: center;
}

/* ── Hero ── */
.unique-hero {
    position: relative;
    background: linear-gradient(135deg, rgb(12 25 72 / 6%), rgb(12 73 88 / 4%));
    border: 2px solid var(--brand-navy);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 50px -10px rgb(12 25 72 / 25%);
    width: 100%;
}

.unique-video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #060d1f;
    aspect-ratio: 16 / 9;
    isolation: isolate;
    border: 1px solid rgb(12 25 72 / 30%);
}

.unique-video-wrapper:hover {
    transform: scale(1.005);
}

.unique-video-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

.unique-video-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(12 25 72 / 15%), rgb(4 4 12 / 78%));
}

.unique-iframe-layer,
.unique-player-slot {
    background: transparent;
    position: absolute;
    inset: 0;
}

.unique-iframe-layer {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 0 32px 32px;
    z-index: 2;
    pointer-events: auto;
}

.unique-video-wrapper.active-video .unique-iframe-layer {
    opacity: 1;
}

.unique-player-slot {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 1;
}

.unique-player-slot iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-lg);
    display: block;
}

.unique-video-wrapper.active-video .unique-play-btn,
.unique-video-wrapper.active-video .unique-video-cover {
    opacity: 0;
    pointer-events: none;
}

/* ── Play button — red ── */
@keyframes playBlink {
    0%   { box-shadow: 0 0 0 0   rgba(236, 17, 17, 0.7); transform: translate(-50%, -50%) scale(1); }
    50%  { box-shadow: 0 0 0 22px transparent;            transform: translate(-50%, -50%) scale(1.05); }
    100% { box-shadow: 0 0 0 0   transparent;             transform: translate(-50%, -50%) scale(1); }
}

.unique-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ec1111, #c20d0d);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 28px rgba(236, 17, 17, 0.55);
    z-index: 3;
    animation: 1.8s infinite playBlink;
}

.unique-play-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.unique-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 36px rgba(236, 17, 17, 0.75);
}

/* ── Overlay info ── */
.unique-overlay-info {
    position: relative;
    padding: 34px;
    background: linear-gradient(45deg, rgb(12 25 72 / 10%), transparent);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 3;
    width: min(60%, 600px);
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    margin-left: 24px;
}

.unique-video-wrapper.active-video .unique-overlay-info {
    opacity: 0;
    transition: opacity var(--transition-time);
}

/* ── Close button ── */
.unique-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(0 0 0 / 65%);
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.unique-video-wrapper.active-video .unique-close-btn {
    display: flex;
}

.unique-close-btn:hover {
    background: rgb(0 0 0 / 90%);
}

/* ── Navigation (mobile/tablet) ── */
.unique-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 0;
}

.unique-arrow {
    background: transparent;
    border: 1.5px solid var(--brand-navy);
    color: var(--brand-navy);
    font-size: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.unique-arrow:hover {
    background: var(--brand-navy);
    color: #fff;
}

/* ── Dots ── */
.unique-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.unique-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(12 25 72 / 20%);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: 0.3s;
}

.unique-dot.active {
    background: var(--brand-navy);
    width: 30px;
    border-radius: 15px;
    box-shadow: 0 0 12px rgb(12 25 72 / 40%);
    transform: scale(1.1);
}

.unique-dot:hover:not(.active) {
    background: rgb(12 25 72 / 45%);
    transform: scale(1.1);
}

/* ── Card Scroller ── */
.unique-scroller {
    margin-top: 8px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 6px 20px;
    cursor: grab;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    justify-content: center;
}

.unique-scroller.dragging {
    cursor: grabbing;
    user-select: none;
}

.unique-scroller::-webkit-scrollbar { height: 6px; }
.unique-scroller::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 4px;
}
.unique-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c0392b, #7b0f0f);
    border-radius: 4px;
}
.unique-scroller::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ec1111, #a01010);
}

/* ── Cards ── */
.unique-card {
    position: relative;
    flex: 0 0 260px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-time), border-color var(--transition-time),
        box-shadow var(--transition-time);
    scroll-snap-align: start;
    border: 2px solid #dde1ea;
    background: #f7f8fb;
}

.unique-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-navy);
    box-shadow: 0 10px 28px rgb(12 25 72 / 22%);
}

.unique-card.active {
    border-color: var(--brand-navy);
    box-shadow: 0 8px 24px rgb(12 25 72 / 28%);
}

.unique-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    filter: saturate(1.05);
    transition: transform var(--transition-time);
}

.unique-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgb(12 25 72 / 65%));
    pointer-events: none;
}

@keyframes cardPlayPulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(236, 17, 17, 0.6); }
    70%  { transform: scale(1.08); box-shadow: 0 0 0 20px transparent; }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   transparent; }
}

.unique-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(12 25 72 / 40%);
    backdrop-filter: blur(1px);
    opacity: 0;
    transform: scale(0.85);
    transition: 0.35s;
    z-index: 2;
}

.unique-card-play svg {
    width: 50px;
    height: 50px;
    fill: #fff;
    background: linear-gradient(135deg, #ec1111, #c20d0d);
    padding: 14px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(236, 17, 17, 0.55);
}

.unique-card:hover .unique-card-play {
    opacity: 1;
    transform: scale(1);
}

.unique-card:hover .unique-card-play svg {
    animation: 1.6s infinite cardPlayPulse;
}

/* ── Responsive ── */
@media (max-width: 575.98px) {
    .unique-testimonial-container { padding: 36px 14px; }
    .unique-page { width: 100%; gap: 14px; }
    .unique-hero { border-width: 1.5px; }
    .unique-title { margin-bottom: 6px; }
    .unique-title h2 { font-size: 22px; }
    .unique-title p { font-size: 14px; }
    .unique-video-wrapper { border-radius: 12px; aspect-ratio: 16 / 9; }
    .unique-overlay-info { display: none; }
    .unique-play-btn {
        top: 50%; left: 50%; right: auto;
        width: 54px; height: 54px;
        transform: translate(-50%, -50%);
    }
    .unique-play-btn svg { width: 22px; height: 22px; }
    .unique-scroller { display: none !important; }
    .unique-close-btn { width: 28px; height: 28px; font-size: 13px; top: 8px; right: 8px; }
    .unique-dot, .unique-dot.active { width: 9px; height: 9px; }
    .unique-dot.active { border-radius: 6px; width: 22px; }
    .unique-card-play svg { width: 36px; height: 36px; padding: 10px; }
    .unique-arrow { width: 36px; height: 36px; font-size: 16px; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .unique-page { width: 100%; }
    .unique-scroller { display: none !important; }
    .unique-play-btn { width: 64px; height: 64px; top: 50%; left: 50%; }
    .unique-play-btn svg { width: 26px; height: 26px; }
}

@media (min-width: 992px) {
    .unique-scroller { display: flex !important; }
    .unique-nav      { display: none !important; }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .unique-play-btn { width: 70px; height: 70px; top: 50%; left: 50%; }
    .unique-close-btn { width: 30px; height: 30px; font-size: 17px; }
}

@media (max-width: 991px) {
    .unique-nav { display: flex; }
}

.unique-title {
    display: none;
}

.page-id-262 .unique-testimonial-container {
    margin-top: 0;
    padding-top: 0;
}

.unique-page {
    gap: 0;
}

@media (min-width: 992px) {
    .unique-page { width: 75%; }
}
