:root {
    --ed-gold: var(--e-global-color-accent, #F5BD64);
}

.ed-grid-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 24px 28px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.ed-card-item {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none !important;
    transform-style: preserve-3d;
    box-sizing: border-box;
    outline: none;
    height: 100%;
    
    /* Global Transitions */\n    transition: 
        transform 350ms cubic-bezier(.22, .61, .36, 1),
        border-color 350ms cubic-bezier(.22, .61, .36, 1),
        box-shadow 350ms cubic-bezier(.22, .61, .36, 1),
        opacity 250ms ease,
        outline 150ms ease;

    /* Hidden start for scroll cascade animation */
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
}

/* Sibling card dimming logic */
.ed-grid-container.has-active-hover .ed-card-item:not(.is-hovered) {
    opacity: 0.85;
    transform: scale(0.985);
    transition: opacity 250ms ease, transform 250ms ease;
}

/* Base states & animations */
.ed-card-item.is-visible {
    animation: edCascadeIn 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 90ms);
}

@keyframes edCascadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Interactive hover of hovered item */
.ed-card-item:hover,
.ed-card-item.is-hovered {
    transform: translateY(-6px);
    border-color: var(--ed-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Accessibility Focus Visible */
.ed-card-item:focus-visible {
    outline: 2px solid var(--ed-gold);
    outline-offset: 4px;
    transform: translateY(-4px);
}

/* Custom glare / lighting reflection layer */
.ed-card-reflection {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
    mix-blend-mode: overlay;
    z-index: 5;
}

.ed-card-item:hover .ed-card-reflection {
    opacity: 1;
}

/* Number styles */
.ed-card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--ed-gold);
    color: var(--ed-gold);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 32px;
    transition: transform 350ms cubic-bezier(.22, .61, .36, 1);
    transform-style: preserve-3d;
}

.ed-card-item:hover .ed-card-number {
    transform: rotate(8deg);
}

/* Headline Typography styling */
.ed-card-headline {
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.45;
    color: #36414B;
    margin: 0 0 24px 0;
    text-align: left;
    transition: color 350ms ease;
}

/* Divider animation */
.ed-card-divider {
    width: 40px;
    height: 1px;
    background-color: var(--ed-gold);
    margin-bottom: 24px;
    transition: width 300ms cubic-bezier(.22, .61, .36, 1);
}

.ed-card-item:hover .ed-card-divider {
    width: 70px;
}

/* Description Text */
.ed-card-description {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #707A84;
    margin: 0;
    margin-top: auto;
    text-align: left;
}

/* Click feedback Animation */
.ed-card-item:active {
    transform: translateY(-3px) scale(0.99) !important;
    transition: transform 120ms ease !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {\n    .ed-grid-container {\n        grid-template-columns: repeat(2, 1fr);\n        gap: 24px;\n    }\n}\n\n@media (max-width: 767px) {\n    .ed-grid-container {\n        grid-template-columns: 1fr;\n        gap: 20px;\n    }\n    \n    .ed-card-item {\n        padding: 30px;\n        opacity: 1;\n        transform: none;\n        filter: none;\n    }\n\n    .ed-card-item.is-visible {\n        animation: none;\n    }\n}\n