/* Enhanced Reviews Container */
.enhanced-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 00px;
    position: relative;
    overflow: hidden;
    margin-top: -65px;
}

div#review-modal span.modal-date {
    display: none;
}

.reviews-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    padding-top: 50px;
}

.reviews-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    transition: all 0.3s ease;
}

/* Staggered Animation for Review Cards */
.review-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
    cursor: pointer;
    padding: 50px 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for each card */
.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.15s; }
.review-card:nth-child(3) { animation-delay: 0.25s; }
.review-card:nth-child(4) { animation-delay: 0.35s; }
.review-card:nth-child(5) { animation-delay: 0.45s; }
.review-card:nth-child(6) { animation-delay: 0.55s; }
.review-card:nth-child(7) { animation-delay: 0.65s; }
.review-card:nth-child(8) { animation-delay: 0.75s; }
.review-card:nth-child(9) { animation-delay: 0.85s; }

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.review-thumbnail {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #fff;
}

.review-thumbnail img {
    width: 80px;
    height: 80px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 100% !important;
    margin-left: 20px;
}

.review-card:hover .review-thumbnail img {
    transform: scale(1.05);
}

.review-thumbnail.placeholder {
   
}

.review-thumbnail.placeholder img {
    width: 80px !important;
    height: 80px !important;
    border: 1px solid !important;
}

.placeholder-icon {
    font-size: 48px;
}

.review-content {
    padding: 0 20px;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4C1A0F;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #4C1A0F;
    margin-bottom: 5px;
    font-family: 'Canela', serif;
}

.review-source {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    background: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4C1A0F;
    z-index: 10;
}

.carousel-nav:hover {
    background: #007cba;
    color: #fff;
    transform: scale(1.05);
}

.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #4C1A0F;
    width: 30px;
    border-radius: 5px;
}

.dot:hover {
    background: #4C1A0F;
}

/* Drag/Swipe Indicators */
.drag-indicator {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #999;
    display: none;
}

.drag-indicator span {
    display: inline-block;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.review-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #4C1A0F;
}

/* Modal Content Styles */
.modal-review-container {
    padding: 30px;
}

.modal-thumbnail {
    height: 80px;
    overflow: hidden;
    border-radius: 12px;
    float: left;
    width: 80px;
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-family: 'Canela', serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: #4C1A0F;
    padding-left: 100px !important;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-meta span {
    font-size: 14px;
    color: #4C1A0F;
}

.modal-content-full {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #4C1A0F;
    margin-bottom: 20px;
}

.modal-link {
    text-align: center;
    margin-top: 20px;
}

.modal-link a {
    display: inline-block;
    padding: 10px 20px;
    background: #4C1A0F;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.modal-link a:hover {
    background: #005a8c;
}

/* No Reviews Message */
.no-reviews {
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
    font-family: 'Nunito', sans-serif;
    color: #4C1A0F;
}

/* Disable text selection while dragging */
.dragging {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Featured Review Badge */
.featured-review {
    position: relative;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #4C1A0F;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    font-family: 'Nunito', sans-serif;
}

/* Handwritten content styles */
.handwritten-content {
    margin: 20px 0;
    text-align: center;
}

.handwritten-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.handwritten-content iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

@media (max-width: 1024px) { 
	.reviews-grid {
		
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		
	}
}
/* Responsive Design */
@media (max-width: 768px) {
    .reviews-carousel-wrapper {
        gap: 10px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-review-container {
        padding: 20px;
    }
    
    .modal-thumbnail {
        height: 200px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .drag-indicator {
        display: block;
    }
}

@media (max-width: 480px) {
    .enhanced-reviews-container {
        padding: 20px 10px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Add to the end of your reviews.css */

/* Drag/Swipe cursor indicators */
#reviews-grid {
    cursor: grab;
    user-select: none;
}

#reviews-grid:active {
    cursor: grabbing;
}

/* Disable text selection while dragging */
#reviews-grid.dragging {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Touch devices - show swipe hint */
@media (max-width: 768px) {
    .reviews-grid {
        cursor: pointer;
        touch-action: pan-y pinch-zoom;
    }
}