/* Reviews Section Styles */

.reviews-section {
    background: white;
    width: 100%;
}

.reviews-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Main Layout - 2 columns */
.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px; /* Match Features section gap */
    position: relative;
    align-items: start;
}

/* Divider line between columns */
.reviews-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: #e0e0e0;
    z-index: 10;
}

/* Primary Story - Left Column */
.reviews-primary {
    width: 100%;
}

.reviews-primary-story {
    display: flex;
    align-items: stretch; /* Make both columns same height */
    gap: 32px;
    width: 100%;
    min-height: 0; /* Allow flexbox to work properly */
}

.reviews-primary-image {
    flex: 0 0 40%;
    aspect-ratio: 4/5 !important; /* Portrait aspect ratio */
    position: relative;
    min-height: 0; /* Ensure aspect-ratio works with flexbox */
    height: auto !important; /* Let aspect-ratio control height */
    padding: 15px; /* Space for shadow */
}

.reviews-primary-image img {
    width: calc(100% - 30px); /* Account for padding */
    height: calc(100% - 30px); /* Account for padding */
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    position: absolute;
    top: 15px;
    left: 15px;
}

.reviews-primary-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Remove height: 100% - let it match the image height via align-items: stretch */
}

/* Primary story text styling - matches Features section primary story */
.reviews-primary-headline {
    font-family: var(--compressed-font);
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    font-size: 96px;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    color: #000;
}

.reviews-primary-standfirst {
    font-family: var(--serif-font);
    font-size: calc(20px * 1.23); /* 24.6px when scaled */
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 2rem 0;
    color: #808080;
}

.reviews-primary-meta {
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: #808080;
}

.reviews-primary-meta::after {
    content: " →";
}

.reviews-primary-meta i {
    color: #000;
}

/* Secondary Stories - Right Column */
.reviews-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.reviews-secondary-story {
    width: 100%;
}

.reviews-secondary-image {
    width: 100%;
    aspect-ratio: 4/5 !important; /* Portrait aspect ratio */
    margin-bottom: 12px;
    height: auto !important; /* Let aspect-ratio control height */
    position: relative;
    padding: 15px; /* Space for shadow */
}

.reviews-secondary-image img {
    width: calc(100% - 30px); /* Account for padding */
    height: calc(100% - 30px); /* Account for padding */
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    position: absolute;
    top: 15px;
    left: 15px;
}

.reviews-secondary-content {
    text-align: left;
}

.reviews-secondary-headline {
    font-family: var(--serif-font);
    font-size: calc(24px * 1.23);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    color: #000;
}

.reviews-secondary-meta {
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: #808080;
}

.reviews-secondary-meta::after {
    content: " →";
}

.reviews-secondary-meta i {
    color: #000;
}

/* Link styling */
.reviews-primary-image-link,
.reviews-primary-text-link,
.reviews-secondary-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.reviews-primary-text-link:hover .reviews-primary-headline,
.reviews-secondary-link:hover .reviews-secondary-headline {
    color: var(--highlight-color);
}

/* Tablet Responsive */
@media (max-width: 1200px) {
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .reviews-layout::before {
        display: none;
    }
    
    /* Primary story becomes horizontal on tablet */
    .reviews-primary-story {
        flex-direction: row;
        gap: 24px;
    }
    
    .reviews-primary-image {
        flex: 0 0 45%;
    }
    
    .reviews-primary-content {
        text-align: left;
    }
    
    
    .reviews-primary-standfirst {
        font-size: calc(18px * 1.23);
    }
    
    /* Secondary stories become 2 columns on tablet */
    .reviews-secondary {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Additional specificity to ensure styles apply */
.reviews-section .reviews-primary-image img,
.reviews-section .reviews-secondary-image img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.reviews-section .reviews-primary-image,
.reviews-section .reviews-secondary-image {
    aspect-ratio: 4/5 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reviews-layout {
        gap: 32px;
    }
    
    /* Primary story stacks vertically on mobile */
    .reviews-primary-story {
        flex-direction: column;
        gap: 16px;
    }
    
    .reviews-primary-image {
        flex: none;
        width: 60%;
        margin: 0 auto;
    }
    
    .reviews-primary-content {
        text-align: center;
    }
    
    .reviews-primary-headline {
        font-size: 64px; /* Primary story headline - compressed font */
        margin-bottom: 1rem;
    }
    
    .reviews-primary-standfirst {
        font-size: calc(16px * 1.23);
        margin-bottom: 1.5rem;
    }
    
    .reviews-primary-meta {
        font-size: 16px;
    }
    
    /* Secondary stories become single column on mobile */
    .reviews-secondary {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .reviews-secondary-image {
        width: 60%;
        margin: 0 auto 12px auto;
    }
    
    .reviews-secondary-content {
        text-align: center;
    }
    
    .reviews-secondary-headline {
        font-size: calc(20px * 1.23);
    }
}
