/* Customer Reviews Page Styles - Matches News & Events */

.reviews-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

/* Reviews Header */
.reviews-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #FFA500 0%, #FF9F00 100%);
    color: white;
}

.reviews-header h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.reviews-header p {
    font-size: 1.2em;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Reviews Container - 3 columns desktop, 2 tablet, 1 mobile */
.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1199px) {
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Review Section - Image-first card */
.review-section {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Review Header Section - Below image */
.review-header-section {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-header-content {
    text-align: left;
}

.review-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA500 0%, #e59400 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-author-info {
    flex: 1;
    min-width: 0;
}

.review-customer-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.review-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #FFA500;
}

/* Quote-style description */
.review-description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin: 12px 0 0;
    padding: 14px 16px 14px 36px;
    border-left: 4px solid #FFA500;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.quote-icon {
    position: absolute;
    left: 10px;
    top: 12px;
    font-size: 1.5em;
    color: #FFA500;
    opacity: 0.5;
    font-family: Georgia, serif;
}

.review-description p {
    margin-bottom: 8px;
}

.review-description p:last-child {
    margin-bottom: 0;
}

/* Media Gallery */
.review-media-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Main Media Container */
.review-media-gallery .main-media-container {
    position: relative;
    width: 100%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #000;
}

/* Media navigation arrows */
.review-media-gallery .media-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.review-media-gallery .media-nav-btn:hover {
    background: #fff;
    color: #FFA500;
}

.review-media-gallery .media-nav-prev {
    left: 8px;
}

.review-media-gallery .media-nav-next {
    right: 8px;
}

.review-media-gallery .main-media-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    transition: opacity 0.2s ease;
}

.review-media-gallery .main-media-wrapper:has(img) {
    aspect-ratio: 16 / 10;
    width: 100%;
}

.main-media-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.main-media-image-wrap img.main-media-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.main-media-image-wrap:hover img.main-media-content {
    transform: scale(1.05);
}

.image-enlarge-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-media-image-wrap:hover .image-enlarge-hint {
    opacity: 1;
}

/* Videos: 4:3 frame */
.review-media-gallery .main-media-wrapper:has(.video-container),
.review-media-gallery .main-media-wrapper:has(video) {
    aspect-ratio: 4 / 3;
    width: 100%;
}

.review-media-gallery .main-media-wrapper .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.review-media-gallery .main-media-wrapper .video-container iframe,
.review-media-gallery .main-media-wrapper > video.main-media-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    display: block;
}

.review-media-gallery .main-media-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 8px;
    color: white;
}

.review-media-gallery .main-media-text-overlay p {
    margin: 0;
    font-size: 0.8em;
    line-height: 1.4;
}

/* Thumbnail strip */
.media-thumbnails {
    display: flex;
    gap: 6px;
    padding: 8px 4px;
    justify-content: center;
    flex-wrap: wrap;
    background: #f8f9fa;
}

.media-thumbnails:has(.media-thumb:only-child) {
    display: none;
}

.media-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, opacity 0.2s;
}

.media-thumb:hover {
    opacity: 0.9;
}

.media-thumb.active {
    border-color: #FFA500;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
}

.media-thumb-video i {
    font-size: 16px;
    color: #6c757d;
}

/* No Reviews */
.no-reviews {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.no-reviews-content {
    text-align: center;
    max-width: 500px;
}

.no-reviews-content i {
    font-size: 5em;
    color: #ddd;
    margin-bottom: 20px;
}

.no-reviews-content h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
}

.no-reviews-content p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

/* Lightbox */
.reviews-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reviews-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.reviews-lightbox .lightbox-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.reviews-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.reviews-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
