smart-switcher-container {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.smart-switcher-card-fa {
    direction: rtl;
    text-align: center;
}

.smart-switcher-card-en {
    direction: ltr;
    text-align: center;
}

.smart-switcher-card-left {
    left: 0;
    top: 50vh;
    position: fixed;
    z-index: 99999;
}

.smart-switcher-card-right {
    right: 0;
    top: 50vh;
    position: fixed;
    z-index: 99999;
}

.smart-switcher-card {
    position: relative;
    display: flex;
    justify-content: center;
    cursor: pointer;
    width: 22em;
    max-width: 80%;
    padding: 2em 0;
    background: var(--dark-accent);
    box-shadow: 0 4px 30px var(--shadow-7);
    transition: all 0.35s ease;
}

.smart-switcher-card:hover {
    background: linear-gradient(to right, var(--nav-bg-from) 0%, var(--nav-bg-to) 100%);
    transition: all 2s ease;
}

.smart-switcher-card::before, .smart-switcher-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--e-global-color-primary);
    height: 4px;
}

.smart-switcher-card::before {
    width: 0;
    opacity: 0;
    transition: opacity 0 ease, width 0 ease;
    transition-delay: 0.5s;
}

.smart-switcher-card::after {
    width: 100%;
    background: white;
    transition: width 0.5s ease;
}

.smart-switcher-card .content {
    width: 100%;
    padding: 4px;
}

.smart-switcher-card .logo {
    margin: 0 0 1em;
    width: 10.625em;
    transition: all 0.35s ease;
}

.smart-switcher-card h6 {
    color: #979797;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
}

.smart-switcher-card .hover_content {
    overflow: hidden;
    max-height: 0;
    transform: translateY(1em);
    transition: all 0.55s ease;
}

.smart-switcher-card .hover_content p {
    margin: 1.5em 0 0;
    color: #979797;
    line-height: 1.4em;
}

.smart-switcher-card:hover {
    width: 24em;
    box-shadow: 0 10px 20px 0 var(--shadow-7);

}

.smart-switcher-card:hover::before {
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease, width 0.5s ease;
    transition-delay: 0;
}

.smart-switcher-card:hover::after {
    width: 0;
    opacity: 0;
    transition: width 0 ease;
}

.smart-switcher-card:hover .logo {
    margin-bottom: 0.5em;
}

.smart-switcher-card:hover .hover_content {
    max-height: 10em;
    transform: none;
}

/* Responsive styles for tablets and smaller devices */
@media (max-width: 768px) {
    .smart-switcher-card {
        width: 18em;
    }

    .smart-switcher-card:hover {
        width: 20em;
    }

    .smart-switcher-card .logo {
        width: 8em;
    }

    .smart-switcher-card-left, .smart-switcher-card-right {
        bottom: 0;
    }
}

/* Responsive styles for mobile devices */
@media (max-width: 480px) {
    .smart-switcher-card {
        width: 100%;
        padding: 1em 0;
    }

    .smart-switcher-card:hover {
        width: 100%;
    }

    .smart-switcher-card:hover::before {
        width: 100%;
        opacity: 1;
        transition: opacity 0.5s ease, width 0.5s ease;
        transition-delay: 0;
    }

    .smart-switcher-card:hover::after {
        width: 0;
        opacity: 0;
        transition: width 0 ease;
    }

    .smart-switcher-card .logo {
        display: none;
    }

    .smart-switcher-card-left, .smart-switcher-card-right {
        bottom: 0;
    }
}

@media (min-width: 800px) {
    .smart-switcher-card-left {
        left: 0;
        top: 50vh; /* Middle of the screen vertically */
        transform: translateY(-50%); /* Center it perfectly in the middle */
        position: fixed;
    }

    .smart-switcher-card-right {
        right: 0;
        top: 50vh; /* Middle of the screen vertically */
        transform: translateY(-50%); /* Center it perfectly in the middle */
        position: fixed;
    }
}

/* For screens smaller than 800px */
@media (max-width: 800px) {
    .smart-switcher-card-left {
        bottom: 0; /* Position at the bottom */
        top: auto; /* Override the top positioning */
        left: 0; /* Center horizontally */
        right: auto;
    }

    .smart-switcher-card-right {
        bottom: 0; /* Position at the bottom */
        top: auto; /* Override the top positioning */
        right: 50%; /* Center horizontally */
        left: auto;
    }
}
