:root {
    --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
        "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
        "Source Han Sans CN", sans-serif;
}

.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.header-top {
    width: 100%;
    height: 118px;
    background: #519CFF;
    display: flex;
}

.header-school-logo {
    width: 69px;
    height: 106px;
    margin-top: 6px;
    margin-left: 41px;
    background: url(./assets/images/school-logo.png) no-repeat center;
    background-size: cover;
}

.header-school-name {
    margin-top: 22px;
    margin-left: 24px;
    font-family: Inter, var(--default-font-family);
    font-size: 32px;
    font-weight: 800;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    margin-left: auto;
    margin-right: 58px;
    width: 114px;
    height: 38px;
    cursor: pointer;
    background: #FFC300;
    font-family: Inter, var(--default-font-family);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.6px;
    border-radius: 10px;
}

.header-bottom {
    width: 100%;
    height: 68px;
    background: #FFC300;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, var(--default-font-family);
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
}

.header-button:hover {
    background-color: #E6A800;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-button:active {
    background-color: #CC8C00;
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-button .header-button {
    margin-right: 10px;
}

.dropdown-arrow {
    font-size: 25px;
}

.indonesian-flag-top {
    width: 18px;
    height: 6.5px;
    margin: 2.5px 0 0 0;
    background: url(./assets/images/indonesian-flag-top.png) no-repeat center;
    background-size: cover;
}

.indonesian-flag-bottom {
    width: 18px;
    height: 6.5px;
    background: url(./assets/images/indonesian-flag-bottom.png) no-repeat center;
    background-size: cover;
}

.ppdb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 63px;
    height: 34px;
    cursor: pointer;
    border: 1px solid #0C3879;
    font-family: Inter, var(--default-font-family);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.9px;
    border-radius: 10px;
}

.no-underline {
    text-decoration: none;
}

.header {
    position: relative;
    z-index: 10;
    /* Pastikan header di atas elemen lainnya */
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}



.box-header {
    position: relative;
    /* Memastikan dropdown ditempatkan relatif terhadap box-header */
    z-index: 20;
    /* Pastikan box-header memiliki prioritas lebih tinggi */
}

.dropdown-menu-right {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    /* Posisi dropdown dari sisi kanan */
    background-color: #509cff;
    border: 1px solid #509cff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    white-space: nowrap;
    /* Konten tetap dalam satu baris */
    padding: 10px 0;
    overflow: hidden;
    /* Hindari konten keluar dari kotak */
}

.dropdown-menu-right .dropdown-item {
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    display: block;
    overflow: hidden;
    /* Hindari teks keluar */
}

.dropdown-menu-right .dropdown-item:hover {
    background-color: #0c3879;
    color: white;
    border-radius: 5px;
}


.box-header-right {
    position: relative;
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #509cff;
    border: 1px solid #509cff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050 !important;
    /* Pastikan dropdown di atas elemen lainnya */
    white-space: nowrap;
    /* Mencegah teks terpotong */
    transform-origin: top right;
    /* Menentukan titik referensi animasi */
    max-width: calc(100vw - 20px);
    /* Mencegah dropdown melebihi lebar layar */

}

.dropdown-menu.adjust-left {
    left: auto;
    /* Hilangkan posisi default */
    right: 0;
    /* Dropdown muncul dari sisi kanan */
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-menu-right.show {
    display: block !important;
}

.owl-carousel {
    z-index: 1;
    /* Pastikan carousel berada di bawah dropdown */
}

.box-header:hover .dropdown-menu {
    display: block !important;
    /* Pastikan dropdown tetap muncul saat hover */
}

.box-header-right:hover .dropdown-menu-right {
    display: block !important;
    /* Untuk dropdown bahasa */
}

.dropdown-item {
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    display: block;
}

.dropdown-item:hover {
    background-color: #0c3879;
    color: white;
    border: 1px solid #ffffff;
    border-radius: 5px;
    position: relative;
    margin: 0 auto;

}

.box-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    font-family: Inter, var(--default-font-family);
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-right: 46px;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid black;
}

.box-header:hover {
    background-color: #E6A800;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.box-header:active {
    background-color: #CC8C00;
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.box-header .box-header {
    margin-right: 10px;
}

.bottom {
    width: 100%;
    height: 68px;
    background: #FFC300;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-school-name {
    margin-top: 40px;
    /* nilai lebih besar dari sebelumnya (22px) */
    margin-left: 24px;
    font-family: Inter, var(--default-font-family);
    font-size: 32px;
    font-weight: 800;
}