/* Language Switcher Styles */
.lang-switcher {
    position: relative;
    display: inline-block;
    margin: 0px;
    z-index: 100;
    vertical-align: middle;
}

.current-lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.current-lang:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.current-lang img {
    width: 20px;
    height: 15px;
    margin-right: 5px;
}

.current-lang span {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 5px;
}

.current-lang i {
    font-size: 12px;
    color: var(--primary-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 0px;
    list-style: none;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.lang-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.lang-dropdown li {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    padding: 10px 15px;
}

/* Specific styles for the English option */
.lang-dropdown li[data-lang="en"] {
    padding: 5px 15px;
}

/* Specific styles for the Lao option */
.lang-dropdown li[data-lang="lo"] {
    padding: 5px 15px;
}

.lang-dropdown li:last-child {
    border-bottom: none;
}

.lang-dropdown li:hover {
    background-color: #f5f5f5;
}

.lang-dropdown li img {
    width: 20px;
    height: 15px;
    margin-right: 10px;
}

.lang-dropdown li span {
    font-size: 14px;
    color: #333;
}

/* Media Queries */
@media screen and (max-width: 767px) {
    .lang-switcher {
        margin: 0 8px;
    }
    
    .current-lang span {
        display: none;
    }
    
    .current-lang img {
        margin-right: 0;
    }
    
    .lang-dropdown {
        right: 0;
        left: auto;
    }
}

/* Adjust for specific position in menu */
.menu-right-item .lang-switcher {
    display: inline-flex;
    align-items: center;
}

.menu-right-item .current-lang {
    height: 42px;
    display: flex;
    align-items: center;
}

/* Lao language font support */
.lao-lang, .lao-lang * {
  font-family: 'Phetsarath', serif !important;
}

/* Ensure icons are properly reloaded */
.lao-lang .las,
.lao-lang .lab,
.lao-lang .fa-brands,
.lao-lang .fa-solid {
  font-family: 'Line Awesome Free', 'Font Awesome 6 Brands', 'Font Awesome 6 Free' !important;
  font-weight: 900;
}

.phetsarath-regular {
  font-family: 'Phetsarath', serif;
  font-weight: 400;
  font-style: normal;
}

.phetsarath-bold {
  font-family: 'Phetsarath', serif;
  font-weight: 700;
  font-style: normal;
} 