.mss-main-container {
    position: relative;
    width: 100%;
    height: 90vh;
    background: #000;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.mss-slide-list .mss-item {
    width: 180px;
    height: 260px;
    position: absolute;
    bottom: 50px;
    z-index: 1;
    background-size: cover;
    background-position: center;
    transition: 0.5s ease-in-out;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ১ ও ২ নাম্বার আইটেম ফুল স্ক্রিন - !important ব্যবহার করা হয়েছে যাতে কেউ ছোট করতে না পারে */
.mss-slide-list .mss-item:nth-child(1),
.mss-slide-list .mss-item:nth-child(2) {
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

/* ৩ নাম্বার কার্ডটিকে একটু বড় করা (Focus Effect) */
.mss-item:nth-child(3) { 
    left: calc(100% - 720px); 
    height: 320px;
    bottom: 20px;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
}

.mss-item:nth-child(4) { left: calc(100% - 510px); }
.mss-item:nth-child(5) { left: calc(100% - 310px); }
.mss-item:nth-child(6) { left: calc(100% - 110px); opacity: 0.8; }

.mss-item:nth-child(n+7) { left: 100%; opacity: 0; }

.mss-content {
    position: absolute;
    top: 50%;
    left: 80px;
    text-align: left;
    color: #fff;
    transform: translateY(-50%);
    display: none;
    z-index: 10;
    text-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

.mss-item:nth-child(2) .mss-content {
    display: block;
}

.mss-name {
    font-size: 80px;
    font-weight: 900;
    opacity: 0;
    animation: showcontent 0.8s ease-in-out 0.3s 1 forwards;
    line-height: 1;
    text-transform: uppercase;
}

.mss-des {
    margin: 20px 0;
    font-size: 18px;
    opacity: 0;
    animation: showcontent 0.8s ease-in-out 0.5s 1 forwards;
}

.mss-btn {
    padding: 12px 40px;
    background: #1a56db;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    font-weight: 700;
    opacity: 0;
    animation: showcontent 0.8s ease-in-out 0.7s 1 forwards;
    transition: 0.3s;
    text-transform: uppercase;
}

.mss-btn:hover {
    background: #fff;
    color: #1a56db;
    transform: scale(1.05);
}

@keyframes showcontent {
    from {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.mss-buttons {
    position: absolute;
    bottom: 50px;
    left: 80px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.mss-buttons button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    color: #fff;
    cursor: pointer;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mss-buttons button:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 1200px) {
    .mss-item:nth-child(3) { height: 280px; bottom: 40px; left: calc(100% - 620px); }
    .mss-item:nth-child(4) { left: calc(100% - 440px); }
    .mss-item:nth-child(5) { left: calc(100% - 270px); }
    .mss-item:nth-child(6) { left: calc(100% - 100px); }
}

@media (max-width: 768px) {
    .mss-item:nth-child(3), .mss-item:nth-child(4), .mss-item:nth-child(5), .mss-item:nth-child(6) {
        display: none;
    }
    .mss-name { font-size: 45px; }
    .mss-content { width: 80%; left: 40px; }
    .mss-buttons { left: 40px; }
}

/* --- Animated Button Styles --- */
.mss-anim-btn {
    display: inline-block;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.mss-anim-btn span {
    position: relative;
    z-index: 2;
}

/* 1. Pulse */
.mss-anim-pulse:hover {
    animation: mss-pulse 1s infinite;
}
@keyframes mss-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 2. Glow */
.mss-anim-glow:hover {
    box-shadow: 0 0 20px rgba(26, 86, 219, 0.6);
    filter: brightness(1.1);
}

/* 3. Shine */
.mss-anim-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
    z-index: 1;
}
.mss-anim-shine:hover::before {
    left: 150%;
}

/* 4. Lift */
.mss-anim-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* 5. Expand */
.mss-anim-expand::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    z-index: 0;
}
.mss-anim-expand:hover::after {
    width: 400px;
    height: 400px;
}

/* --- Timeline Styles --- */
.mss-timeline-wrapper {
    padding: 50px 0;
    overflow: hidden;
    background-color: transparent;
}

.mss-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.mss-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #1a56db;
    transform: translateX(-50%);
}

.mss-timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.mss-timeline-item.mss-left {
    left: 0;
    text-align: right;
    align-items: flex-end;
}

.mss-timeline-item.mss-right {
    left: 50%;
    text-align: left;
    align-items: flex-start;
}

.mss-timeline-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: 0.3s;
    width: 100%;
    max-width: 500px;
}

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

.mss-t-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.mss-t-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.mss-t-desc {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.mss-t-dot {
    position: absolute;
    top: 35px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: #1a56db;
    border-radius: 50%;
    z-index: 10;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.mss-right .mss-t-dot {
    left: -12px;
}

/* Responsive Timeline */
@media (max-width: 767px) {
    .mss-timeline::before {
        left: 20px;
        transform: none;
    }
    .mss-timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left !important;
        align-items: flex-start !important;
    }
    .mss-timeline-item.mss-right {
        left: 0;
    }
    .mss-t-dot {
        left: 8px !important;
    }
}

/* --- Video Popup Card Styles --- */
.mss-video-card {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
    z-index: 1;
}

.mss-vc-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s ease-in-out;
    z-index: 0;
}

.mss-video-card:hover .mss-vc-bg {
    transform: scale(1.1);
}

.mss-video-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Default color */
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 40%);
    mask-image: linear-gradient(to top, black 0%, transparent 40%);
    transition: 0.5s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.mss-video-card:hover::after {
    background-color: rgba(0,0,0,0.9); /* Hover color */
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 75%);
    mask-image: linear-gradient(to top, black 0%, transparent 75%);
}

.mss-vc-content {
    position: relative;
    z-index: 3; /* Above Overlay */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.mss-vc-content a, .mss-vc-content img {
    pointer-events: auto; /* Re-enable clicks for button and logo */
}

.mss-vc-logo img {
    max-width: 200px;
    height: auto;
}

.mss-vc-bottom {
    margin-top: auto;
}

.mss-vc-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 10px 25px 10px 10px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.15);
}

.mss-vc-play-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.mss-vc-play-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.4s;
    flex-shrink: 0;
}

.mss-vc-btn-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

/* Modal Styles */
.mss-video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.mss-video-modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    max-width: 900px;
}

.mss-video-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.mss-video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mss-video-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Review Marquee Styles */
.mss-review-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mss-marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.mss-marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 30px;
    padding: 10px 0;
    animation: marquee-scroll linear infinite;
}

.mss-marquee-container.right-to-left .mss-marquee-content {
    animation-direction: normal;
}

.mss-marquee-container.left-to-right .mss-marquee-content {
    animation-direction: reverse;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 15px)); }
}

/* Pause on hover */
.mss-marquee-container:hover .mss-marquee-content {
    animation-play-state: paused;
}

.mss-review-card {
    width: 400px;
    background: #f9f7f2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    transition: 0.3s;
}

.mss-review-card:hover {
    transform: translateY(-5px);
}

.mss-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mss-rating {
    color: #ffc107;
    font-size: 18px;
    letter-spacing: 2px;
}

.mss-quote-icon i {
    font-size: 30px;
    color: #ccc;
    opacity: 0.5;
}

.mss-review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    min-height: 80px;
}

.mss-card-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mss-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mss-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mss-user-avatar span {
    font-weight: bold;
    color: #888;
}

.mss-user-info h4 {
    margin: 0;
    font-size: 16px;
    color: #222;
}

.mss-user-info p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

@media (max-width: 768px) {
    .mss-review-card {
        width: 300px;
        padding: 20px;
    }
}

/* ================================================
   Image Hover Card Widget
   ================================================ */

.mss-ihc-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.mss-ihc-link {
    display: block !important;
    text-decoration: none !important;
}

/* Image container — clips overflow, holds background image */
.mss-ihc-image-wrap {
    position: relative !important;
    width: 100% !important;
    height: 400px; /* Overridden by Elementor */
    overflow: hidden !important;
    border-radius: 12px;
    z-index: 1 !important;
}

/* New inner image div for smooth zoom */
.mss-ihc-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.5s ease !important;
    z-index: 0 !important;
}

/* Zoom on hover */
.mss-ihc-zoom .mss-ihc-image-wrap:hover .mss-ihc-image {
    transform: scale(1.1) !important;
}

/* ================================================
   CENTER ICON — floats in middle of image
   ================================================ */
.mss-ihc-center-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.6) !important;
    z-index: 6 !important;
    opacity: 0 !important;
    transition: opacity 0.35s ease, transform 0.35s ease !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mss-ihc-image-wrap:hover .mss-ihc-center-icon {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto !important;
}

.mss-ihc-icon-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FEA401;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer !important;
}

.mss-ihc-image-wrap:hover .mss-ihc-icon-wrap {
    transform: rotate(8deg) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.mss-ihc-icon-wrap i,
.mss-ihc-icon-wrap svg {
    font-size: 22px !important;
    line-height: 1 !important;
    display: block !important;
    margin: 0 !important;
}

/* ================================================
   HOVER BAR — slides in from bottom/top
   Only left text + right text, no icon
   ================================================ */
.mss-ihc-bar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 20px;
    background-color: #ffffff;
    transition: transform 0.4s ease, opacity 0.4s ease !important;
    z-index: 5 !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

/* BOTTOM (default) — hidden below, slides up on hover */
.mss-ihc-bar-bottom .mss-ihc-bar {
    bottom: 0 !important;
    top: auto !important;
    transform: translateY(100%) !important;
    opacity: 0 !important;
}
.mss-ihc-bar-bottom .mss-ihc-image-wrap:hover .mss-ihc-bar {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* TOP — hidden above, slides down on hover */
.mss-ihc-bar-top .mss-ihc-bar {
    top: 0 !important;
    bottom: auto !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
}
.mss-ihc-bar-top .mss-ihc-image-wrap:hover .mss-ihc-bar {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Bar text */
.mss-ihc-left-text {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    white-space: nowrap !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mss-ihc-right-text {
    font-size: 14px;
    font-weight: 500;
    color: #555555;
    white-space: nowrap !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
}

@media (max-width: 480px) {
    .mss-ihc-left-text,
    .mss-ihc-right-text { font-size: 13px !important; }
    .mss-ihc-icon-wrap  { width: 46px !important; height: 46px !important; }
    .mss-ihc-icon-wrap i,
    .mss-ihc-icon-wrap svg { font-size: 18px !important; }
}
