/* Modern Happening Design System */
.happening-section {
    overflow-x: hidden;
    background-color: #fff;
}

.happening-row {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.08) !important;
    background-color: #fff;
}

.happening-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Image Wrapper and Zoom Effect */
.happening-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 16 / 10;
}

.happening-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1);
}

/* Hover Effect: Zoom in image when the whole card/row is hovered */
.happening-row:hover .happening-image-wrapper img {
    transform: scale(1.1);
}

/* Content Styling */
.happening-small-title {
    display: block;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--theme-primary-color);
}

/* Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .happening-title {
        font-size: 2rem;
    }
    .happening-content {
        /* Padding handled by responsive utilities */
    }
}

@media (max-width: 767px) {
    .happening-row {
        margin-bottom: 60px;
    }
    .happening-row.flex-row-reverse {
        flex-direction: row !important; /* Reset zig-zag on mobile for better stacking */
    }
    .happening-title {
        font-size: 1.5rem;
    }
    .reveal-left, .reveal-right {
        transform: translateY(30px); /* Slide up instead of side on mobile */
    }
    .happening-image-wrapper img {
        min-height: 250px !important;
    }
}
