/* Apple-Style Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    min-height: 0;
    /* Allow content to dictate size */
    width: 100%;
    margin: 0;
    /* Ensure no overlap with next section */
    height: auto;
    align-items: stretch;
}

.bento-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

/* Base Premium Card */
.bento-card-premium {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    /* Ensure card takes up height in stack/grid */
    flex: 1;
}

.bento-card-premium:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

/* Card Visuals (Images) */
.premium-visual {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.premium-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bento-card-premium:hover .premium-visual img {
    transform: scale(1.06);
}

/* Card Content */
.premium-content {
    padding: 2.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.premium-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.premium-content p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

/* Floating Badge (Top Right) */
.premium-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
    transition: transform 0.3s ease;
}

.premium-badge i {
    width: 24px;
    height: 24px;
}

.bento-card-premium:hover .premium-badge {
    transform: rotate(10deg) scale(1.1);
}

/* THEME 1: Gold (The Hero Left - Manufacturing) */
.theme-gold {
    background-color: var(--color-laser);
    color: var(--color-woodsmoke);
}

.theme-gold .premium-content {
    padding-top: 4rem;
    /* Space for content */
    flex-shrink: 0;
    /* Keep content size natural */
}

.theme-gold .premium-visual {
    flex-grow: 1;
    min-height: 250px;
    margin: 0;
    /* Remove margin for full bleed */
    width: 100%;
    /* Full width */
    /* Remove inner border radius so it flows to card edge */
    border-radius: 0;
}

.theme-gold .premium-badge {
    color: var(--color-laser);
}

/* THEME 2: Dark (Top Right - Construction) */
.theme-dark {
    background-color: var(--color-chambray);
    color: white;
}

.theme-dark .premium-visual {
    height: 180px;
    /* Fixed height visual strip */
    flex-shrink: 0;
}

.theme-dark .premium-badge {
    color: var(--color-chambray);
}

/* THEME 3: Light (Bottom Right - Training) */
.theme-light {
    background-color: white;
    color: var(--color-woodsmoke);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.theme-light .premium-visual {
    height: 150px;
    flex-shrink: 0;
    margin-top: auto;
    /* Push to bottom */
}

.theme-light .premium-badge {
    background: var(--color-woodsmoke);
    color: white;
}

/* Action Link */
.premium-action {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .bento-card-premium {
        min-height: 400px;
        /* Ensure mobile cards have presence */
    }
}