





.feature-card {
    cursor: pointer;
    overflow: hidden;
}


.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 2px 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(var(--primary-rgb), 0.03), transparent);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    width: 60px;
}

@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }

    .feature-card:hover::after {
        opacity: 0;
    }
}

.feature-card.card-expanded::after {
    opacity: 0;
}


.feature-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 32px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                margin-bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon svg {
    width: 44px;
    height: 44px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


@media (hover: hover) {
    .feature-card:hover .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    
    .feature-card:hover .feature-icon svg {
        width: 22px;
        height: 22px;
    }
}

.feature-card.card-expanded .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.feature-card.card-expanded .feature-icon svg {
    width: 22px;
    height: 22px;
}


.feature-card p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                margin-top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .feature-card:hover p {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 14px;
    }
}

.feature-card.card-expanded p {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 14px;
}


.expand-hint {
    display: none;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
    flex-shrink: 0;
}

@media (hover: none) {
    .expand-hint {
        display: block;
    }
}



.event-card {
    cursor: pointer;
}

@media (hover: hover) {
    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }
}


.event-image {
    height: 240px;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


@media (hover: hover) {
    .event-card:hover .event-image {
        height: 170px;
    }
}

.event-card.card-expanded .event-image {
    height: 170px;
}


.event-image img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .event-card:hover .event-image img {
        transform: scale(1.05);
    }
}


.event-body h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

@media (hover: hover) {
    .event-card:hover .event-body h4::after {
        width: 60px;
    }
}

.event-card.card-expanded .event-body h4::after {
    width: 60px;
}


.event-body p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(15px);
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                margin-top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .event-card:hover .event-body p {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 10px;
    }
}

.event-card.card-expanded .event-body p {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
}


.feature-card:focus,
.event-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.feature-card:focus:not(:focus-visible),
.event-card:focus:not(:focus-visible) {
    outline: none;
}


@media (max-width: 768px) {
    
    .feature-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 28px;
    }
    
    .feature-icon svg {
        width: 36px;
        height: 36px;
    }

    @media (hover: hover) {
        .feature-card:hover .feature-icon {
            width: 40px;
            height: 40px;
            margin-bottom: 12px;
        }
        
        .feature-card:hover .feature-icon svg {
            width: 18px;
            height: 18px;
        }
    }

    .feature-card.card-expanded .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .feature-card.card-expanded .feature-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    
    .event-image {
        height: 200px;
    }

    @media (hover: hover) {
        .event-card:hover .event-image {
            height: 140px;
        }
    }

    .event-card.card-expanded .event-image {
        height: 140px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-card::before,
    .feature-card::after,
    .feature-icon,
    .feature-icon svg,
    .feature-card p,
    .event-card,
    .event-image,
    .event-image img,
    .event-body h4::after,
    .event-body p {
        transition: none !important;
    }
}
