/* Style untuk Logo dan Nama Instansi */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.institution-name {
    display: flex;
    flex-direction: column;
}

.institution-name-1 {
    color: white;
}

.institution-name-1 h1 {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
}

.institution-name-1 p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.institution-name-2, .institution-name-3 {
    color: #1e3c72;
}

.institution-name-2 h1, .institution-name-3 h1 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.institution-name-2 p, .institution-name-3 p {
    font-size: 14px;
    margin: 0;
    color: #4a5568;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Style 1 - Modern dengan Gradient */
.header-1 {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-1 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.logo-1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.menu-1 {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu-1 .menu-item {
    position: relative;
}

.menu-1 .menu-item > a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
    display: inline-block;
}

.menu-1 .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.menu-1 .menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-1 .submenu a {
    color: #1e3c72;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: block;
    transition: background 0.3s;
}

.menu-1 .submenu a:hover {
    background: #f5f5f5;
}

.search-1 {
    position: relative;
    margin-left: 2rem;
}

.search-1 input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: rgb(255, 255, 255);
    width: 200px;
    transition: all 0.3s;
}

.search-1 input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-1 input:focus {
    background: white;
    color: #1e3c72;
    outline: none;
    width: 250px;
}

/* Header Style 2 - Clean dengan Border Bottom */
.header-2 {
    background: #ffffff;
    border-bottom: 3px solid #1e3c72;
    padding: 1rem 2rem;
}

.nav-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.logo-2 {
    color: #1e3c72;
    font-size: 24px;
    font-weight: bold;
}

.menu-2 {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.menu-2 .menu-item {
    position: relative;
}

.menu-2 .menu-item > a {
    color: #1e3c72;
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    display: inline-block;
}

.menu-2 .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e3c72;
    transition: width 0.3s;
}

.menu-2 .menu-item:hover > a::after {
    width: 100%;
}

.menu-2 .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.menu-2 .menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-2 .submenu a {
    color: #1e3c72;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: block;
    transition: background 0.3s;
}

.menu-2 .submenu a:hover {
    background: #f5f5f5;
}

.search-2 {
    position: relative;
    margin-left: 2rem;
}

.search-2 input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 200px;
    transition: all 0.3s;
}

.search-2 input:focus {
    border-color: #1e3c72;
    outline: none;
    width: 250px;
}

/* Header Style 3 - Modern dengan Background Putih */
.header-3 {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.logo-3 {
    color: #1e3c72;
    font-size: 24px;
    font-weight: bold;
}

.menu-3 {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-3 .menu-item {
    position: relative;
}

.menu-3 .menu-item > a {
    color: #1e3c72;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
}

.menu-3 .menu-item:hover > a {
    background: #1e3c72;
    color: white;
}

.menu-3 .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.menu-3 .menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-3 .submenu a {
    color: #1e3c72;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: block;
    transition: all 0.3s;
    border-radius: 4px;
    margin: 0.2rem;
}

.menu-3 .submenu a:hover {
    background: #f0f4ff;
}

.search-3 {
    position: relative;
    margin-left: 2rem;
}

.search-3 input {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 50px;
    background: #f0f4ff;
    width: 200px;
    transition: all 0.3s;
}

.search-3 input:focus {
    background: #e5eaff;
    outline: none;
    width: 250px;
}
.menu-1 .menu-item > a.has-submenu::after {
    content: '▾';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.menu-1 .menu-item:hover > a.has-submenu::after {
    transform: rotate(180deg);
}

.menu-2 .menu-item > a.has-submenu::after {
    content: '▾';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
    color: #1e3c72;
}

.menu-2 .menu-item:hover > a.has-submenu::after {
    transform: rotate(180deg);
}

.menu-3 .menu-item > a.has-submenu::after {
    content: '▾';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.menu-3 .menu-item:hover > a.has-submenu::after {
    transform: rotate(180deg);
}

/* Style untuk Language Selector */
.language-selector {
    /* margin-left: 20px; */
    position: relative;
    display: flex;
    align-items: center;
}

.language-selector .current-lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    gap: 5px;
}

/* Style untuk icon bendera */
.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    background-size: cover;
}

.flag-id {
    background: linear-gradient(180deg, #FF0000 50%, #FFFFFF 50%);
}

.flag-en {
    background: 
        linear-gradient(45deg, #012169 35%, transparent 35%),
        linear-gradient(-45deg, #012169 35%, transparent 35%),
        linear-gradient(135deg, #012169 35%, transparent 35%),
        linear-gradient(-135deg, #012169 35%, transparent 35%),
        linear-gradient(90deg, #C8102E 50%, white 50%);
    background-color: white;
}

/* Language dropdown */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    min-width: 120px;
    z-index: 1000;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-option:hover {
    background: #f5f5f5;
}

/* Specific styles for each header */
.header-1 .language-selector .current-lang {
    color: white;
    background: rgba(255,255,255,0.1);
}

.header-1 .language-selector:hover .current-lang {
    background: rgba(255,255,255,0.2);
}

.header-2 .language-selector .current-lang,
.header-3 .language-selector .current-lang {
    color: #1e3c72;
    background: #f0f4ff;
}

.header-2 .language-selector:hover .current-lang,
.header-3 .language-selector:hover .current-lang {
    background: #e5eaff;
}

.lang-text {
    font-size: 14px;
}