/**
 * Component: Creativity Feature
 *
 * Styles for the mini-hero element on the homepage.
 */

.creativity-feature-section {
    padding: var(--space-3xl) var(--space-lg); /* Extra padding to create space */
    text-align: center;
}

.creativity-feature-section .section-title {
    margin-bottom: var(--space-xl);
}

.creativity-card {
    display: block;
    position: relative;
    width: 100%;
    max-width: 500px; /* Controls the max size */
    margin: 0 auto;
    aspect-ratio: 1 / 1; /* Enforces a perfect square shape */
    border-radius: 8px; /* Slightly rounded edges */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-decoration: none;
}

.creativity-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scales the image to cover the square area */
    object-position: center 25%; /* Crops to the 'upper middle' section */
    transition: transform 0.6s ease;
}

.creativity-card:hover .creativity-card-image {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.creativity-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: #fff;
    transition: opacity 0.4s ease;
}

.creativity-card:hover .creativity-card-overlay {
    opacity: 0; /* Text disappears on hover */
}