/* =============================================================
   1. VARIABLES & BASE
   ============================================================= */
:root {
    --la-primary: #0f172a;
    --la-blue: #2563eb;
    --la-gold: #fbbf24;
    --la-bg: #f8fafc;
    --la-white: #ffffff;
    --la-text: #334155;
    --la-text-mute: #64748b;
    --la-border: #e2e8f0;
    --la-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --la-radius: 12px;
}

.la-modern-reviews-section {
    padding: 60px 0;
    /* background-color: var(--la-bg);
    font-family: 'Inter', sans-serif; */
}

/* =============================================================
   2. SUMMARY CARD (Left Side)
   ============================================================= */
.la-summary-card {
    background: var(--la-white);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--la-shadow);
    border: 1px solid var(--la-border);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.la-summary-card:hover {
    transform: translateY(-3px);
}

.la-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
}

.la-google-logo-main {
    width: 40px;
    margin-bottom: 8px;
}

.la-summary-header h5,
.la-summary-header .la-summary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--la-primary);
    margin: 0;
}

.la-summary-stars i {
    color: var(--la-gold);
    font-size: 14px;
    margin: 0 1px;
}

.la-rating-score {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--la-primary);
    line-height: 1.2;
}

.la-rating-total {
    font-size: 13px;
    color: var(--la-text-mute);
}

.la-btn-view-all {
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--la-border);
    color: var(--la-text);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.la-btn-view-all:hover {
    background: var(--la-primary);
    color: #fff;
    border-color: var(--la-primary);
}

/* =============================================================
   3. CAROUSEL CARDS
   ============================================================= */
.la-carousel-wrapper {
    position: relative;
    padding: 10px;
}

.la-review-card {
    background: var(--la-white);
    border-radius: var(--la-radius);
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    /* Content গুলোকে উপর-নিচে সাজাবে */
    height: 250px !important;
    /* Fixed Height */
    justify-content: space-between;
    /* Header এবং Footer কে দুই প্রান্তে রাখবে */
}

.la-card-body {
    flex-grow: 1;
    /* এটি মাঝখানের সব ফাঁকা জায়গা দখল করবে */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* টেক্সট সবসময় উপর থেকে শুরু হবে */
    overflow: hidden;
    /* অতিরিক্ত টেক্সট হাইড করার জন্য */
}

.la-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.la-star-rating i {
    color: var(--la-gold);
    font-size: 13px;
}

.la-verified-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    color: #059669;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.la-verified-badge img {
    width: 12px;
}

.la-review-title {
    font-size: 15px !important;
    font-weight: 500;
    color: var(--la-primary);
    margin: 0 0 6px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

.la-review-desc {
    font-size: 14px !important;
    color: var(--la-text-mute);
    line-height: 1.5;
    margin: 0;
    /* নিচের লাইনগুলো টেক্সট লিমিট করার জন্য */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* ৪ লাইনের বেশি হলে ডট ডট দেখাবে */
    -webkit-box-orient: vertical;
}

.la-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    /* এটিই মেইন ম্যাজিক - ফুটারকে একদম নিচে নামিয়ে দেবে */
    padding-top: 15px;
    border-top: 1px solid #f8fafc;
    flex-shrink: 0;
    /* ফুটার যেন চ্যাপ্টা না হয়ে যায় */
}

.la-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.la-author-avatar {
    width: 28px;
    height: 28px;
    background: #e2e8f0;
    color: var(--la-text-mute);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.la-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--la-text);
}

.la-google-icon-small img {
    width: 16px;
    opacity: 0.5;
}

/* Swiper Nav */
.la-swiper-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.la-nav-btn {
    pointer-events: auto;
    width: 40px !important;
    height: 40px !important;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--la-primary) !important;
    position: absolute;
    cursor: pointer;
    border: 1px solid var(--la-border) !important;
}

.la-nav-btn:hover {
    background: var(--la-primary) !important;
    color: #fff !important;
}

.swiper-button-prev.la-nav-btn {
    left: -20px !important;
}

.swiper-button-next.la-nav-btn {
    right: -20px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: none !important;
}

/* =============================================================
   4. MODERN POPUP STYLES (Fixed)
   ============================================================= */
.la-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.la-popup-modal {
    background: #fff;
    width: 600px;
    max-width: 90%;
    height: 80vh;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    animation: laPopupIn 0.3s ease-out;
}

@keyframes laPopupIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.la-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0px 10px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    z-index: 2;
}

.la-popup-close:hover {
    background: #e2e8f0;
    color: #ef4444;
}

.la-popup-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.la-popup-logo-area {
    padding: 20px;
    border-bottom: 1px solid var(--la-border);
    text-align: center;
    background: #122e31;
    border-radius: 16px 16px 0 0;
}

.la-popup-logo-area img {
    height: 40px;
    margin-bottom: 5px;
}

.la-popup-logo-area h4 {
    font-size: 16px;
    margin: 0;
    color: var(--la-text);
}

.la-popup-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

/* Popup Review Item */
.google-review-popup-box {
    background: #fff;
    border: 1px solid var(--la-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.la-popup-review-row {
    display: flex;
    gap: 15px;
}

.la-popup-avatar-col {
    flex-shrink: 0;
}

.google-review-user-img img,
.popup-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.popup-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--la-blue);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.la-popup-content-col {
    flex-grow: 1;
}

.la-popup-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.la-popup-header-flex h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--la-primary);
}

.la-popup-g-icon {
    width: 18px;
    opacity: 0.6;
}

.google-review-popup-star-icon {
    margin-bottom: 8px;
}

.google-review-popup-star-icon i {
    color: var(--la-gold);
    font-size: 12px;
}

.la-popup-content-col p {
    font-size: 14px;
    color: var(--la-text);
    line-height: 1.5;
    margin: 0;
}

/* Load More Button */
button#la-popup-load-more {
    width: 100%;
    padding: 12px;
    background: var(--la-white);
    border: 1px dashed var(--la-blue);
    color: var(--la-blue);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

button#la-popup-load-more:hover {
    background: #eff6ff;
}

button#la-popup-load-more:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-name {
    width: 120px;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-stars {
    width: 80px;
    height: 12px;
    margin-bottom: 10px;
}

.skeleton-text {
    width: 100%;
    height: 12px;
    margin-bottom: 6px;
}

.skeleton-text.short {
    width: 70%;
}

/* Tooltip */
.la-body-tooltip {
    position: fixed;
    z-index: 10000;
    background: var(--la-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    transform: translate(-50%, 0);
}

.la-body-tooltip.la-visible {
    opacity: 1;
}

.la-body-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--la-primary) transparent transparent;
}

/* Mobile */
@media (max-width: 768px) {
    .la-swiper-controls {
        display: none;
    }

    .la-popup-modal {
        width: 95%;
        height: 90vh;
    }
}