/* ================================
   Reviews Section Styling
   ================================ */

   .reviews-section {
    /* padding: var(--spacing-2xl) 0; */
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.reviews-section.enable-bg-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.reviews-section .container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

.reviews-section .section-inner-wrap {
    position: relative;
    z-index: 2;
}

/* Section Title Styling */
.reviews-section .section-title {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.reviews-section .section-title .h3-md {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
}

.reviews-section .section-title .p-md {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid Layout */
.reviews-section .vc_row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-md));
}

.reviews-section .wpb_column {
    padding: 0 var(--spacing-md);
    flex: 1;
}

.reviews-section .vc_col-sm-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.reviews-section .vc_col-sm-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.reviews-section .vc_col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.reviews-section .vc_col-sm-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.reviews-section .vc_col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Review Box Styling */
.review-2 {
    background: var(--bg-primary);
    padding: var(--spacing-lg) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.review-2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color-dark);
}

.review-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-blue));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.review-2:hover::before {
    transform: scaleX(1);
}

/* Review Header */
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: var(--spacing-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.review-author-title {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.review-rating {
    display: flex;
    gap: var(--spacing-xs);
}

.star {
    color: var(--accent-yellow);
    font-size: var(--text-sm);
}

/* Review Content */
.review-content {
    margin-bottom: var(--spacing-md);
}

.review-text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Review Footer */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.review-date {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.review-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.review-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.review-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reviews-section {
        padding: var(--spacing-xl) 0;
    }
    
    .reviews-section .section-title .h3-md {
        font-size: var(--text-2xl);
    }
    
    .review-2 {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: var(--spacing-lg) 0;
        background-attachment: scroll;
    }
    
    .reviews-section .section-title {
        margin-bottom: var(--spacing-lg);
    }
    
    .reviews-section .section-title .h3-md {
        font-size: var(--text-xl);
    }
    
    .reviews-section .section-title .p-md {
        font-size: var(--text-base);
    }
    
    .review-2 {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .review-avatar {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .review-footer {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: var(--spacing-md) 0;
    }
    
    .reviews-section .section-title .h3-md {
        font-size: var(--text-lg);
    }
    
    .review-2 {
        padding: var(--spacing-sm);
    }
    
    .review-avatar {
        width: 50px;
        height: 50px;
    }
    
    .review-author-name {
        font-size: var(--text-base);
    }
    
    .review-text {
        font-size: var(--text-sm);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .reviews-section {
        background-color: var(--bg-dark-secondary);
    }
    
    .review-2 {
        background: var(--bg-dark);
        border-color: var(--border-color-dark);
    }
    
    .review-author-name {
        color: var(--text-light);
    }
    
    .review-text {
        color: var(--text-muted);
    }
    
    .review-footer {
        border-top-color: var(--border-color-dark);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .review-2 {
        border-width: 2px;
        border-color: var(--text-primary);
    }
    
    .review-2::before {
        height: 6px;
        background: var(--text-primary);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .review-2:hover {
        transform: none;
    }
    
    .review-2 {
        transition: none;
    }
    
    .review-2::before {
        transition: none;
    }
    
    .review-2:hover::before {
        transform: scaleX(0);
    }
    
    .review-action-btn {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .reviews-section {
        background: white !important;
        padding: var(--spacing-md) 0;
    }
    
    .review-2 {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .review-2::before {
        display: none;
    }
    
    .review-footer {
        border-top-color: #ccc;
    }
}
