/* --- Base Swiper adjustments --- */
.wd-swiper {
    padding-bottom: 50px;
    /* Space for pagination */
    padding-left: 10px;
    padding-right: 10px;
}

.wd-swiper .swiper-button-next,
.wd-swiper .swiper-button-prev {
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.wd-swiper .swiper-button-next::after,
.wd-swiper .swiper-button-prev::after {
    display: none !important;
}

.wd-swiper .swiper-button-next i,
.wd-swiper .swiper-button-prev i,
.wd-swiper .swiper-button-next svg,
.wd-swiper .swiper-button-prev svg {
    font-size: 20px;
}

.wd-swiper .swiper-pagination-bullet-active {
    background: #000;
}

.wd-swiper .swiper-wrapper {
    align-items: stretch !important;
}

.wd-swiper .swiper-slide {
    height: auto !important;
    display: flex;
}

/* --- Base Card Styles --- */
.wd-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.wd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.wd-img-wrap {
    margin-bottom: 20px;
}

.wd-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wd-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.wd-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.wd-message {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.wd-rating {
    color: #f1c40f;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.wd-author-info {
    margin-top: auto;
}

.wd-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 5px 0;
}

.wd-designation {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* --------------------------------------
   Layout 1: Classic (Center aligned)
   -------------------------------------- */
.wd-layout-1 .wd-card {
    text-align: center;
    align-items: center;
}

/* --------------------------------------
   Layout 2: Modern (Left aligned + Quote mark)
   -------------------------------------- */
.wd-layout-2 .wd-card {
    text-align: left;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #333;
}

.wd-layout-2 .wd-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    color: rgba(0, 0, 0, 0.04);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.wd-layout-2 .wd-card>* {
    position: relative;
    z-index: 1;
}

.wd-layout-2 .wd-author-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
}

/* --------------------------------------
   Layout 3: Minimal (No shadow, border)
   -------------------------------------- */
.wd-layout-3 .wd-card {
    box-shadow: none;
    border: 1px solid #eaeaea;
    background: transparent;
    text-align: center;
    align-items: center;
}

.wd-layout-3 .wd-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.wd-layout-3 .wd-rating {
    order: -1;
    /* Move rating above everything else */
    margin-bottom: 15px;
}

.wd-layout-3 .wd-img {
    border: none;
    box-shadow: none;
    width: 100px;
    height: 100px;
}

/* --------------------------------------
   Layout 4: Focused (Inline author & image)
   -------------------------------------- */
.wd-layout-4 .wd-card {
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "video video"
        "message message"
        "rating rating"
        "image author";
    column-gap: 15px;
    align-items: center;
    padding: 35px;
}

.wd-layout-4 .wd-video-wrapper {
    grid-area: video;
}

.wd-layout-4 .wd-message {
    grid-area: message;
    margin-bottom: 10px;
}

.wd-layout-4 .wd-rating {
    grid-area: rating;
    margin-bottom: 20px;
}

.wd-layout-4 .wd-img-wrap {
    grid-area: image;
    margin: 0;
}

.wd-layout-4 .wd-author-info {
    grid-area: author;
    margin: 0;
}

.wd-layout-4 .wd-img {
    width: 60px;
    height: 60px;
    margin: 0;
}

/* --- Company Details Styles --- */
.wd-company-wrap {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
}

.wd-company-logo {
    max-width: 80px;
    max-height: 25px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.wd-company-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.wd-company-name {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* Layout specific company alignment */
.wd-layout-1 .wd-company-wrap {
    justify-content: center;
    width: 100%;
}

.wd-layout-3 .wd-company-wrap {
    justify-content: center;
    width: 100%;
}

/* --------------------------------------
   Layout 5: Glassmorphic (Blured background)
   -------------------------------------- */
.wd-layout-5 .wd-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.06) !important;
    border-radius: 20px;
}

.wd-layout-5 .wd-card:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 20px 45px rgba(31, 38, 135, 0.1) !important;
}

/* --------------------------------------
   Layout 6: Floating Avatar (Avatar hangs on top)
   -------------------------------------- */
.wd-layout-6 .wd-card {
    position: relative;
    margin-top: 40px;
    padding-top: 50px !important;
    text-align: center;
    align-items: center;
    border: 1px solid #edf2f7;
    background: #ffffff;
}

.wd-layout-6 .wd-img-wrap {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.wd-layout-6 .wd-img {
    width: 80px;
    height: 80px;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.wd-layout-6 .wd-rating {
    margin-bottom: 15px;
}

/* --------------------------------------
   Layout 7: Left Accent (Minimalist Accent)
   -------------------------------------- */
.wd-layout-7 .wd-card {
    text-align: left;
    border-left: 5px solid #3498db !important;
    padding-left: 35px !important;
    background: #ffffff;
    align-items: flex-start;
}

.wd-layout-7 .wd-rating {
    margin-bottom: 10px;
}

.wd-layout-7 .wd-img-wrap {
    margin-bottom: 15px;
}

/* --------------------------------------
   Layout 8: Gradient Accent (Accent left line)
   -------------------------------------- */
.wd-layout-8 .wd-card {
    position: relative;
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    padding: 35px 35px 35px 45px !important;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.wd-layout-8 .wd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #6a11cb 0%, #2575fc 100%);
}

.wd-layout-8 .wd-rating {
    margin-bottom: 20px;
    color: #ff9f43;
}

.wd-layout-8 .wd-img {
    border-radius: 12px;
}

/* --- Custom Quote Icon Style --- */
.wd-quote-icon {
    color: #e2e8f0;
    transition: all 0.3s ease;
    display: inline-flex;
    line-height: 1;
}

.wd-quote-pos-top-left {
    position: absolute;
    top: 25px;
    left: 25px;
}

.wd-quote-pos-top-right {
    position: absolute;
    top: 25px;
    right: 25px;
}

.wd-quote-pos-bottom-right {
    position: absolute;
    bottom: 25px;
    right: 25px;
}

.wd-quote-pos-above-message {
    margin-bottom: 15px;
    display: flex;
}

/* --------------------------------------
   Layout 9: Glowing Glass (Frosted Glass - Pure & Clean)
   -------------------------------------- */
.wd-layout-9 .wd-card {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
    border-radius: 20px;
    text-align: center;
    align-items: center;
}

.wd-layout-9 .wd-card:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05) !important;
}

/* --------------------------------------
   Layout 10: Google Review Card (Clean & Verified)
   -------------------------------------- */
.wd-layout-10 .wd-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px;
    text-align: left;
    align-items: flex-start;
    position: relative;
    padding: 30px !important;
}

.wd-layout-10 .wd-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.wd-layout-10 .wd-google-g-logo {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 5;
}

.wd-layout-10 .wd-message {
    padding-right: 35px;
}

.wd-layout-10 .wd-rating {
    color: #fbbc05 !important;
}

.wd-layout-10 .wd-verified-badge,
.wd-layout-11 .wd-verified-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}

.wd-layout-10 .wd-verified-badge svg,
.wd-layout-11 .wd-verified-badge svg {
    display: block;
}

/* --------------------------------------
   Layout 11: Google Showcase (Split Colored Border)
   -------------------------------------- */
.wd-layout-11 .wd-card {
    background: #f8f9fa !important;
    border: 1px solid #dadce0 !important;
    box-shadow: none !important;
    border-radius: 16px;
    text-align: left;
    align-items: flex-start;
    position: relative;
    padding: 30px 30px 40px 30px !important;
    overflow: hidden;
}

.wd-layout-11 .wd-card:hover {
    background: #ffffff !important;
    border-color: #4285f4 !important;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.15) !important;
}

.wd-layout-11 .wd-rating {
    color: #fbbc05 !important;
}

.wd-layout-11 .wd-img-wrap {
    position: relative;
    display: inline-block;
}

.wd-layout-11 .wd-google-icon-inline {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ffffff;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.wd-layout-11 .wd-google-split-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    display: flex;
}

.wd-layout-11 .wd-google-split-line .wd-line-segment {
    flex: 1;
    height: 100%;
}

.wd-layout-11 .wd-google-split-line .wd-line-segment.blue {
    background-color: #4285f4;
}

.wd-layout-11 .wd-google-split-line .wd-line-segment.red {
    background-color: #ea4335;
}

.wd-layout-11 .wd-google-split-line .wd-line-segment.yellow {
    background-color: #fbbc05;
}

.wd-layout-11 .wd-google-split-line .wd-line-segment.green {
    background-color: #34a853;
}

/* --- Coverflow Blur & Glass Effect --- */
.wd-swiper[data-effect="coverflow"] .swiper-slide {
    transition: all 0.5s ease !important;
}

.wd-swiper[data-effect="coverflow"] .swiper-slide:not(.swiper-slide-active) {
    filter: blur(4px) grayscale(10%);
    opacity: 0.55;
    pointer-events: none;
}

.wd-swiper[data-effect="coverflow"] .swiper-slide:not(.swiper-slide-active) .wd-card {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) saturate(100%);
    -webkit-backdrop-filter: blur(10px) saturate(100%);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
}

.wd-swiper[data-effect="coverflow"] .swiper-slide-active {
    filter: none;
    opacity: 1;
    pointer-events: auto;
}