@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Plus+Jakarta+Sans:wght@400;600&display=swap');

.melora-grid-wrap-df64726f {
    width: 100%;
    padding: 100px 0;
    box-sizing: border-box;
}

.melora-grid-inner-df64726f {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.mg-header-df64726f {
    margin-bottom: 60px;
    text-align: left;
}

.mg-eyebrow-df64726f {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.mg-heading-df64726f {
    font-family: 'Instrument Serif', serif;
    font-size: 72px;
    line-height: 0.95;
    margin: 0;
    font-weight: normal;
}

.mg-grid-df64726f {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    width: 100%;
}

.mg-card-df64726f {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    cursor: pointer;
    background: #000;
}

/* Base height variables for scale mapping */
.mg-card-size-1, .mg-card-size-2, .mg-card-size-3 {
    grid-column: span 4;
    height: 480px; /* Row 1 - Large Feature Cards */
}

.mg-card-size-4, .mg-card-size-5, .mg-card-size-6, .mg-card-size-7 {
    grid-column: span 3;
    height: 320px; /* Row 2 - Smaller Cards */
}

.mg-card-size-8, .mg-card-size-9 {
    grid-column: span 6;
    height: 400px; /* Row 3 - Wide Horizontal Cards */
}

.mg-card-bg-df64726f {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.45s ease-out;
    z-index: 1;
}

.mg-card-overlay-df64726f {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(36,21,21,0) 0%, rgba(36,21,21,0.85) 100%);
    z-index: 2;
    transition: opacity 0.45s ease;
}

.mg-card-content-df64726f {
    position: relative;
    z-index: 3;
    padding: 30px;
    transition: transform 0.45s ease-out;
    transform: translateY(0);
}

.mg-cat-title-df64726f {
    font-family: 'Instrument Serif', serif;
    font-size: 26px;
    font-weight: normal;
    margin: 0 0 8px 0;
}

.mg-btn-df64726f {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    transition: transform 0.45s ease-out;
    transform: translateX(0);
}

/* Hover Effects */
.mg-card-df64726f:hover .mg-card-bg-df64726f {
    transform: scale(1.04);
}

.mg-card-df64726f:hover .mg-card-content-df64726f {
    transform: translateY(-4px);
}

.mg-card-df64726f:hover .mg-btn-df64726f {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .mg-grid-df64726f {
        gap: 20px;
    }
    
    .mg-heading-df64726f {
        font-size: 56px;
    }
    
    .mg-card-size-1, .mg-card-size-2, .mg-card-size-3 {
        grid-column: span 6;
        height: 400px;
    }
    .mg-card-size-3 {
        grid-column: span 12;
    }

    .mg-card-size-4, .mg-card-size-5, .mg-card-size-6, .mg-card-size-7 {
        grid-column: span 6;
        height: 280px;
    }
    
    .mg-card-size-8, .mg-card-size-9 {
        grid-column: span 12;
        height: 340px;
    }
}

@media (max-width: 767px) {
    .mg-grid-df64726f {
        grid-template-columns: 1fr;
    }
    
    .mg-card-df64726f {
        grid-column: span 1 !important;
        height: 360px !important;
    }
    
    .mg-heading-df64726f {
        font-size: 42px;
    }
}
