/* --- 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;
    transform: scale(0.7);
}

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

/* --- Base Card Styles --- */
.wd-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    
    /* Balanced shadow (all sides equal) */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
    
    /* Removed hover animation */
    transition: none;

    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Remove hover completely */
.wd-card:hover {
    transform: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}

.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;
}
/* Make main columns equal height */
.wd-video-wrap .wd-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

/* 50% layout fix */
.wd-video-wrap .wd-grid > .wd-column {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    display: flex; /* IMPORTANT */
}

/* LEFT COLUMN (author_info) */
.wd-video-wrap .author_info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ✅ Push to bottom + center */
.wd-video-wrap .author_info > .wd-grid {
    margin-top: auto;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
    text-align: center;
}

/* INNER GRID (image + text) */
.wd-video-wrap .author_info .wd-grid {
    display: flex;
    align-items: center;
    justify-content: center;   /* ADD THIS */
    gap: 15px;
}

/* Reset inner column width */
.wd-video-wrap .author_info .wd-grid .wd-column {
    flex: unset;
    max-width: unset;
    display: flex;             /* CHANGE */
    flex-direction: column;    /* ADD */
    align-items: center;       /* ADD (center content) */
}

/* VIDEO COLUMN FIX */
.wd-video-wrap .wd-video-wrapper {
    width: 100%;
    height: 100%;
}

.wd-video-wrap .wd-video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 12px;
}

/* MOBILE */
@media (max-width: 768px) {
    .wd-video-wrap .wd-grid > .wd-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Message container */
.wd-video-wrap .wd-message {
    position: relative;
    padding-left: 20px; /* space for icon */
}

/* SVG icon */
.wd-video-wrap .wd-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;

    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004FAD' viewBox='0 0 24 24'%3E%3Cpath d='M7.17 6A5.001 5.001 0 002 11v5a2 2 0 002 2h4a2 2 0 002-2v-4a2 2 0 00-2-2H6a3 3 0 013-3V6zm10 0A5.001 5.001 0 0012 11v5a2 2 0 002 2h4a2 2 0 002-2v-4a2 2 0 00-2-2h-2a3 3 0 013-3V6z'/%3E%3C/svg%3E") no-repeat center;

    background-size: contain;
    opacity: 0.8;
}
.video-swiper-slide{
    padding: 20px;
}