/* ==================================================
   SVFutureTechAI Language Switcher
================================================== */

.sv-header-language {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}


/* Language block */

.sv-language-switcher-block {
    position: relative;

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;
}


/* ==================================================
   Circle Button
================================================== */

.sv-language-trigger {
    position: relative;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    border: 1px solid #e2e8f0;
    border-radius: 50%;

    background: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    box-sizing: border-box;

    overflow: hidden;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}


/* Change English british to English only */

.sv-language-dropdown li[hreflang="en-gb"] a {
    font-size: 0;
}

.sv-language-dropdown li[hreflang="en-gb"] a::after {
    content: "English";
    font-size: 13px;
}


/* EN/HI/MR */

.sv-language-code {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    color: inherit;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    text-align: center;
}


.sv-language-trigger:hover {

    border-color: #2563eb;

    color: #2563eb;

    background: #f8fbff;

    box-shadow:
        0 4px 12px rgba(37, 99, 235, .15);
}


.sv-language-trigger[aria-expanded="true"] {

    border-color: #2563eb;

    color: #2563eb;

    background: #eff6ff;
}


/* ==================================================
   Dropdown
================================================== */

.sv-language-dropdown {

    position: absolute;

    top: calc(100% + 9px);

    right: 0;

    z-index: 99999;

    width: 170px;

    padding: 6px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, .15);

    box-sizing: border-box;
}


/* Drupal generated list */

.sv-language-dropdown ul,
.sv-language-dropdown ul.links {

    display: block;

    list-style: none;

    margin: 0;

    padding: 0;
}


.sv-language-dropdown li {

    display: block;

    margin: 0;

    padding: 0;
}


/* Language links */

.sv-language-dropdown a {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 38px;

    padding: 8px 10px 8px 38px;

    border-radius: 8px;

    color: #111827;

    font-size: 13px;

    font-weight: 500;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        background .2s ease,
        color .2s ease;
}


/* English flag */

.sv-language-dropdown li[hreflang="en-gb"] a::before,
.sv-language-dropdown li[hreflang="en"] a::before {

    content: "🇬🇧";

    position: absolute;

    left: 11px;

    font-size: 17px;
}


/* Hindi */

.sv-language-dropdown li[hreflang="hi"] a::before {

    content: "🇮🇳";

    position: absolute;

    left: 11px;

    font-size: 17px;
}


/* Marathi */

.sv-language-dropdown li[hreflang="mr"] a::before {

    content: "🇮🇳";

    position: absolute;

    left: 11px;

    font-size: 17px;
}


/* Hover */

.sv-language-dropdown a:hover {

    background: #eff6ff;

    color: #2563eb;
}


/* Current language */

.sv-language-dropdown li.is-active a {

    background: #eff6ff;

    color: #2563eb;

    font-weight: 700;
}


/* ==================================================
   Mobile
================================================== */

@media (max-width: 768px) {

    .sv-language-trigger {

        width: 36px;
        height: 36px;

        font-size: 10px;
    }

    .sv-language-dropdown {

        width: 160px;

        right: 0;
    }

}



