/* ================================================
   Edition Showcase Section Styles
   Shortcode: [gv_edition_showcase]
================================================ */

.gv-edition-showcase-container {
    display: flex;
    width: 100%;
    /* Adjust as needed */
    margin: 0 auto;
    background: transparent;
    /* Or #444 from image if not overlay */
    font-family: 'Inter', sans-serif;
    /* Assumption from context */
    /* overflow: hidden; Removed to prevent clipping of scaled cards/shadows */
}

/* --- Left Header Section (40%) --- */
.gv-es-header {
    flex: 0 0 45%;
    /* Updated from 35% */
    display: flex;
    flex-direction: column;
    padding-right: 40px;
    /* Added left padding */
    align-items: flex-end;
    /* Align children to left */
    text-align: left;
    /* Ensure text aligns left */
    position: relative;
    z-index: 2;
    /* Ensure header stays above if needed */
}

/* "EDITION" Title Wrapper */
.gv-es-title-container {
    width: 500px;
    padding: 0;
    margin: 0;
}

/* "EDITION" Title */
.gv-es-title-container h2 {
    font-size: 1.6rem;
    font-weight: 600;
    /* Match 'About' */
    color: #fff;
    /* text-transform: uppercase; Removed */
    margin-bottom: 0px;
    /* User requested 0 */
    letter-spacing: -0.5px;
    /* Match 'About' */
    margin-top: 0px;
    /* User requested 0 */
}

/* Description */
.gv-es-description {
    width: 500px;
    font-size: 14px;
    color: #7a7a7a;
    line-height: 1.6;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-right: 10px;
}

/* Glassy Box with Fade & Arrow */
.gv-es-glass-box {
    width: 500px;
    /* Clean container */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Dynamic Benefits Title */
.gv-es-benefits-title {
    margin: 0;
    padding: 13px 25px 5px 25px;
    /* Top padding, align left with list */
    font-size: 18px !important;
    font-weight: 600;
    color: #a7a7a7 !important;
    /* text-transform: uppercase; Removed */
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Separator */
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow width */
}

/* Scrollable List with Fade Mask */
.gv-es-benefits-list {
    list-style: none;
    width: 500px;
    padding: 0px 25px 10px 25px;
    margin: 0;
    color: #959595;
    font-size: 15px;
    font-weight: 500;

    /* Collapsed State (Default) */
    max-height: 190px;
    /* Shows approx 3 items */
    overflow: hidden;

    /* Fade Mask Effect */
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);

    transition: max-height 0.4s ease, mask-image 0.4s;

    /* Scrollbar hiding */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Expanded State */
.gv-es-glass-box.expanded .gv-es-benefits-list {
    max-height: 500px;
    /* Expanded limit */
    mask-image: none;
    -webkit-mask-image: none;
    overflow-y: auto;
}

.gv-es-benefits-list::-webkit-scrollbar {
    display: none;
}

/* Individual List Item */
.gv-es-benefits-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Thin divider */
}

.gv-es-benefits-list li:last-child {
    border-bottom: none;
    /* Extra space at bottom */
}

/* Short List State (No Expand Needed) */
.gv-es-glass-box.gv-short-list .gv-es-benefits-list {
    mask-image: none;
    -webkit-mask-image: none;
    /* Restore normal padding */
}

.gv-es-glass-box.gv-short-list .gv-es-arrow {
    display: none;
}

/* Bullet (Left) */
.gv-es-benefits-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    /* Circle bullet */
    margin-right: 15px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Checkmark (Right) */
.gv-es-benefits-list li::after {
    content: '✔';
    color: #00e676;
    /* Bright Green Match */
    margin-left: auto;
    margin-right: 8px;
    /* Push to right */
    font-weight: bold;
    font-size: 16px;
}

/* Clickable Arrow Container */
.gv-es-arrow {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 25px;
    /* Click area */
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

/* Chevron Icon */
.gv-es-arrow::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    transition: all 0.3s;
}

.gv-es-arrow:hover::after {
    border-color: #fff;
    transform: rotate(45deg) scale(1.1);
}

/* Rotate Arrow when Expanded */
.gv-es-glass-box.expanded .gv-es-arrow {
    transform: translateX(-50%) rotate(180deg);
}

/* No Benefits State */
.gv-es-benefits-list li.gv-no-benefits {
    justify-content: center;
    font-style: italic;
    color: #999;
    border-bottom: none;
}

.gv-es-benefits-list li.gv-no-benefits::before,
.gv-es-benefits-list li.gv-no-benefits::after {
    content: none;
}

/* --- Right Cards Section (65-70%) --- */
/* --- Right Cards Section (65-70%) --- */
.gv-es-cards {
    flex: 1;
    position: relative;
    /* Context for arrow */
    overflow: visible;
    /* Allow arrow/shadows to breathe outside mask if needed */
    padding: 0;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Mask Wrapper */
.gv-es-mask-wrapper {
    width: 100%;
    overflow-x: hidden;
    /* Hide scrollbar, mask handles visual edge */
    padding: 30px 0;
    /* Vertical padding for shadows */
    /* Mask applied only when overflow exists */
    mask-image: none;
    -webkit-mask-image: none;
}

/* Apply mask when overflow detected */
.gv-es-cards.gv-has-overflow .gv-es-mask-wrapper {
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 95%, transparent 100%);
}

/* The Track that moves */
.gv-es-cards-track {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    /* Horizontal padding inside mask to avoid cut-off */
    transition: transform 0.2s ease-out;
    /* Smooth slide */
    will-change: transform;
}

/* Navigation Arrow (Shared) */
.gv-es-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
    /* Hidden by default if no overflow */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    /* Hidden by default */
    transition: all 0.3s ease;
}

/* Show arrows ONLY when overflow exists */
.gv-es-cards.gv-has-overflow .gv-es-nav-arrow {
    display: flex;
}

/* Position Next */
.gv-es-nav-arrow.next {
    right: -20px;
}

/* Position Prev */
.gv-es-nav-arrow.prev {
    left: -20px;
}

/* Show on wrapper hover */
.gv-es-cards:hover .gv-es-nav-arrow.next {
    opacity: 1;
    right: 10px;
}

.gv-es-cards:hover .gv-es-nav-arrow.prev {
    opacity: 1;
    left: 10px;
}

.gv-es-nav-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Arrow Icon Shape (Shared Base) */
.gv-es-nav-arrow::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    transition: border-color 0.3s;
}

/* Next Icon Rotation */
.gv-es-nav-arrow.next::after {
    transform: rotate(45deg);
    margin-right: 2px;
}

/* Prev Icon Rotation */
.gv-es-nav-arrow.prev::after {
    transform: rotate(225deg);
    /* Points Left */
    margin-left: 2px;
}

.gv-es-nav-arrow:hover::after {
    border-color: #1a1a1a;
}

/* Detailed Card Style */
.gv-es-card {
    flex: 0 0 180px;
    /* Fixed width per card */
    height: 280px;
    /* Tall aspect ratio */
    border-radius: 18px;
    /* Reduced from 20px */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Gradient Border Trick */
    background: var(--gv-card-border, transparent);
    /* Fallback */
    padding: 3px;
    /* Thin Border Width */

    /* Flex to center inner content */
    display: flex;
}

/* Hover effect removed per user request */
/* .gv-es-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
} */

/* Inner Content (The actual card bg) */
.gv-es-card-inner {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    /* 18px - 3px padding */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional Overlay Content */
.gv-es-overlay-content {
    /* Styles for content on top of image, if any */
    display: block;
    /* Placeholder to avoid empty rule lint */
    width: 100%;
    height: 100%;
}

/* Edition Name Header */
.gv-es-name-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Background handled by pseudo-element for opacity */
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    padding: 1px;
    /* Restored to moderate size (1px seemed too small/error?) - User can adjust */
    font-size: 14px;
    z-index: 1;
    /* Ensure it respects the container's radius due to overflow:hidden on parent */
}

/* Semi-transparent background */
.gv-es-name-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gv-card-border, linear-gradient(135deg, #606c88, #3f4c6b));
    opacity: 0.7;
    /* "ad" hex transparency approx */
    z-index: -1;
}

/* Selected State Override if needed */
.gv-es-card.active {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    /* Enhanced glow */
    transform: scale(1.08);
    /* "A bit bigger" */
    z-index: 10;
    /* Ensure it stays on top */
}

/* Unselected State: Fade (Whole Card) */
.gv-es-card:not(.active) {
    opacity: 0.7;
    /* Increased from 0.2 */
    filter: brightness(100%) contrast(100%) saturate(60%) blur(0px) hue-rotate(0deg);
    /* B&W effect */
    transition: opacity 0.3s ease, transform 0.4s ease, filter 0.3s ease;
    /* User requested timing */
}

/* Unselected Hover: Clear & Grow */
.gv-es-card:not(.active):hover {
    opacity: 1;
    /* "Make it clear" */
    filter: brightness(100%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
    /* Restore Color */
    transform: scale(1.02);
    /* Reduced from 1.05 */
    /* "Grow" */
    z-index: 5;
}

/* Cleanup: Inner image stays clear always (opacity handled by parent) */
.gv-es-card:not(.active) .gv-es-card-inner {
    filter: none;
    transition: none;
}

/* Selected Hover: Shine Effect */
.gv-es-card-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
    transition: left 0.7s ease-in-out;
    /* Enable bidirectional shine */
}

.gv-es-card.active:hover .gv-es-card-inner::after {
    left: 150%;
    /* Target position on hover */
}

/* Placeholder for 'x' or content */
.gv-es-card-content {
    color: #448aff;
    font-size: 20px;
}

/* ================================================
   Entrance Animations
   Triggers when .gv-in-view is added to container
================================================ */

/* Initial Hidden States */
.gv-es-title-container h2,
.gv-es-description,
.gv-es-benefits-list li,
.gv-es-card,
.gv-es-card:not(.active) {
    opacity: 0;
    /* will-change: transform, opacity; Optimization */
}

/* Keyframes */
@keyframes gvFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gvSlideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: var(--gv-card-opacity, 0.7);
        transform: translateX(0);
    }
}

@keyframes gvSlideInRightActive {
    from {
        opacity: 0;
        transform: translateX(50px) scale(1.08);
        /* Start scaled */
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1.08);
        /* End scaled */
    }
}

@keyframes gvFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Trigger Animations --- */

/* Title & Description */
.gv-edition-showcase-container.gv-in-view .gv-es-title-container h2 {
    animation: gvFadeInUp 0.6s ease-out forwards;
}

.gv-edition-showcase-container.gv-in-view .gv-es-description {
    animation: gvFadeInUp 0.6s ease-out 0.2s forwards;
}

/* Benefits Title */
.gv-edition-showcase-container.gv-in-view .gv-es-benefits-title {
    opacity: 0;
    animation: gvFadeInUp 0.6s ease-out 0.25s forwards;
}

/* Benefits List (Staggered Bottom Up) */
.gv-edition-showcase-container.gv-in-view .gv-es-benefits-list li {
    animation: gvFadeInUp 0.5s ease-out forwards;
}

/* Stagger List Items (up to 10) */
.gv-edition-showcase-container.gv-in-view .gv-es-benefits-list li:nth-child(1) {
    animation-delay: 0.3s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-benefits-list li:nth-child(2) {
    animation-delay: 0.4s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-benefits-list li:nth-child(3) {
    animation-delay: 0.5s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-benefits-list li:nth-child(4) {
    animation-delay: 0.6s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-benefits-list li:nth-child(5) {
    animation-delay: 0.7s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-benefits-list li:nth-child(n+6) {
    animation-delay: 0.8s;
}

/* Cards */
.gv-edition-showcase-container.gv-in-view .gv-es-card {
    /* Default animation for inactive cards */
    --gv-card-opacity: 0.7;
    animation: gvSlideInRight 0.6s ease-out forwards;
}

/* Active Card Animation */
.gv-edition-showcase-container.gv-in-view .gv-es-card.active {
    --gv-card-opacity: 1;
    animation: gvSlideInRightActive 0.6s ease-out forwards;
}

/* Single Card Case: Fade Only */
.gv-edition-showcase-container.gv-in-view .gv-es-card:only-child {
    animation: gvFadeIn 0.8s ease-out forwards;
    transform: none !important;
    /* Reset any shift */
}

/* Stagger Cards */
.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(1) {
    animation-delay: 0.2s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(2) {
    animation-delay: 0.35s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(3) {
    animation-delay: 0.5s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(4) {
    animation-delay: 0.65s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(5) {
    animation-delay: 0.8s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(6) {
    animation-delay: 0.95s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(7) {
    animation-delay: 1.1s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(8) {
    animation-delay: 1.25s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(9) {
    animation-delay: 1.4s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(10) {
    animation-delay: 1.55s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(11) {
    animation-delay: 1.7s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(12) {
    animation-delay: 1.85s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(13) {
    animation-delay: 2.0s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(14) {
    animation-delay: 2.15s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(15) {
    animation-delay: 2.3s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(16) {
    animation-delay: 2.45s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(17) {
    animation-delay: 2.6s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(18) {
    animation-delay: 2.75s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(19) {
    animation-delay: 2.9s;
}

.gv-edition-showcase-container.gv-in-view .gv-es-card:nth-child(20) {
    animation-delay: 3.05s;
}

/* --- Lock Animation State --- */
.gv-edition-showcase-container.gv-animations-done .gv-es-title-container h2,
.gv-edition-showcase-container.gv-animations-done .gv-es-description,
.gv-edition-showcase-container.gv-animations-done .gv-es-benefits-title,
.gv-edition-showcase-container.gv-animations-done .gv-es-benefits-list li {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

.gv-edition-showcase-container.gv-animations-done .gv-es-card {
    animation: none !important;
    /* Reset base opacity to visible so static rules take over */
    opacity: 0.7;
}

.gv-edition-showcase-container.gv-animations-done .gv-es-card.active {
    opacity: 1;
}