#container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    padding: 0.75rem;
    border-radius: 0.5rem;
}
#container .btn {
    flex: 1 1 auto;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.4rem;
    line-height: normal;
    cursor: pointer;
}
/* مگا‌منو */
.megaMenu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    padding: 2rem 1rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
    .megaMenu.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    /* ساختار ستون‌ها */ /* ساختار ستون‌ها */
    .megaMenu .row {
        display: flex;
        flex-wrap: wrap;
        direction: rtl; /* مهم برای راست‌به‌چپ */
        margin: 0 -0.5rem; /* جبران فاصله داخلی ستون‌ها */
    }
        /* ستون‌ها */
        .megaMenu .row > .mega-col {
            flex: 0 0 25%;
            max-width: 25%;
            white-space: nowrap;
            padding-right: 1rem; /* به جای padding-left */
            border-right: none; /* به جای border-left */
        }
            /* ستون‌هایی که بعد از ستون دیگر می‌آیند جداکننده دارند */
            .megaMenu .row > .mega-col + .mega-col {
                border-right: 1px solid #eee; /* جداکننده سمت راست برای RTL */
            }
    /* تیتر ستون */
    .megaMenu h6 {
        border-bottom: 2px solid #ddd;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
        font-weight: bold;
        font-size: 1rem;
    }
    /* لینک‌ها */
    .megaMenu a {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.25rem 0;
        color: #212529;
        text-decoration: none;
        transition: color 0.2s ease;
    }
        .megaMenu a:hover {
            color: #007bff;
            text-decoration: underline;
        }
/* Responsive */
@media (max-width: 992px) {
    .megaMenu .row > .mega-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 576px) {
    .megaMenu .row > .mega-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0.5rem;
    }
}
