.irm-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 5%;
    transition: background-image 0.5s ease-in-out;
    overflow: hidden;
}

.irm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for better text contrast */
    z-index: 1;
    pointer-events: none;
}

.irm-menu {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.irm-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.irm-menu-item {
    margin: 0;
    padding: 0;
}

.irm-menu-item-link {
    display: inline-block;
    font-size: 3rem; /* Default size, overrideable via typography controls */
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    line-height: 1.2;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.irm-menu-item-link:hover {
    text-decoration: none;
}

/* Underline animation */
.irm-menu-item-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px; /* Thickness of underline */
    bottom: 0;
    left: 0;
    background-color: #fff; /* Default, overrideable */
    transition: width 0.3s ease;
}

.irm-menu-item-link:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .irm-menu-item-link {
        font-size: 2rem;
    }
    
    .irm-container {
        padding: 0 20px;
        min-height: 60vh; /* Allow it to be smaller on mobile */
    }
}
