/* =========================================================
   ROOT
========================================================= */

:root {
    --primary: #0057b8;
    --primary-dark: #003f86;
    --primary-soft: #eef6ff;

    --yellow: #ffc400;
    --yellow-dark: #e5aa00;

    --navy: #082b52;
    --navy-dark: #051f3c;

    --text: #172033;
    --muted: #667085;

    --border: #e5e7eb;

    --white: #ffffff;
    --page: #f7f9fc;

    --header-height: 126px;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--page);
    color: var(--text);
    padding-top: var(--header-height);
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(1320px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   HEADER
========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(16, 24, 40, .06);
    width: 100%;
}

/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    height: 54px;
    background: var(--navy);
    color: #ffffff;
    overflow: hidden;
    max-height: 54px;
    opacity: 1;
    transition: max-height .25s ease, opacity .25s ease;
}

.top-bar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-message {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.top-message i {
    color: var(--yellow);
    font-size: 18px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================================================
   SEARCH BUTTON
========================================================= */

.search-box {
    width: min(400px, 32vw);
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #ffffff;
    color: #667085;
    border-radius: 13px;
    cursor: pointer;
    transition: .2s ease;
}

.search-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.search-box i {
    margin-right: 10px;
    color: var(--primary);
}

.search-box span {
    font-size: 14px;
    font-weight: 500;
}

/* =========================================================
   SOCIAL
========================================================= */

.social-pill {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--primary);
    border-radius: 12px;
    text-decoration: none;
    font-size: 17px;
    transition: .2s ease;
}

.social-pill:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: #ffffff;
}

/* =========================================================
   INFORMASI BUTTON
========================================================= */

.help-number {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    color: #ffffff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.help-number:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-1px);
}

.help-number i {
    color: var(--yellow);
}

/* =========================================================
   LANGUAGE
========================================================= */

.lang {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-weight: 700;
}

/* =========================================================
   HIDE TOPBAR
========================================================= */

header.hide-topbar .top-bar {
    max-height: 0;
    opacity: 0;
}

/* =========================================================
   MAIN HEADER
========================================================= */

.main-header {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #eef0f3;
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo img {
    width: auto;
    height: 54px;
    object-fit: contain;
}

/* =========================================================
   MENU
========================================================= */

.menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.5vw, 34px);
}

.menu a {
    position: relative;
    padding: 26px 0;
    color: #344054;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.menu a:hover,
.menu a.active {
    color: var(--primary);
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
}

/* =========================================================
   NAVBAR ICONS & CHEVRON
========================================================= */

.menu a > i:first-child {
    font-size: 13px;
    color: #667085;
    transition: color .2s ease, transform .2s ease;
}

.menu a:hover > i:first-child,
.menu a.active > i:first-child {
    color: var(--primary);
}

.menu .menu-chevron {
    margin-left: -2px;
    font-size: 9px;
    color: #98a2b3;
}

.menu a:hover .menu-chevron,
.menu a.active .menu-chevron {
    color: var(--primary);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
}

.mobile-nav a i {
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
    color: var(--primary);
    font-size: 16px;
}

.mobile-nav a span {
    display: inline-block;
}

/* =========================================================
   PORTAL BUTTON
========================================================= */

.btn-ut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 13px;
    background: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s ease;
}

.btn-ut:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================================================
   MOBILE ACTION
========================================================= */

.mobile-actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.mobile-btn {
    color: var(--primary);
    font-size: 23px;
    padding: 6px;
    cursor: pointer;
}

.mobile-portal-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
}

/* =========================================================
   MOBILE NAV OVERLAY & NAV
========================================================= */

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -310px;
    width: 300px;
    height: 100vh;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0,0,0,.14);
    transition: right .28s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-header span {
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
}

.close-btn {
    color: #344054;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav a {
    padding: 15px 20px;
    color: #344054;
    text-decoration: none;
    border-bottom: 1px solid #f1f2f4;
    font-weight: 600;
}

.mobile-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* =========================================================
   SEARCH MODAL
========================================================= */

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 90px 20px 30px;
    background: rgba(5,31,60,.68);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-box {
    width: min(760px, 100%);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
    transform: translateY(-15px);
    transition: .25s ease;
}

.search-modal.active .search-modal-box {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.search-modal-title {
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
}

.search-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f2f4f7;
    color: #344054;
    cursor: pointer;
    font-size: 18px;
}

.search-close:hover {
    background: #e4e7ec;
    color: #000000;
}

.search-form {
    display: flex;
    gap: 10px;
    padding: 20px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

#searchInput {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 45px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: .2s ease;
}

#searchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,87,184,.10);
}

.search-submit {
    min-width: 110px;
    height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.search-submit:hover {
    background: var(--primary-dark);
}

.search-results {
    padding: 0 20px 20px;
}

.search-empty {
    padding: 35px 20px;
    text-align: center;
    color: var(--muted);
}

.search-empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 35px;
    color: #98a2b3;
}

.search-result-item {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 13px;
    text-decoration: none;
    transition: .2s ease;
}

.search-result-item:hover {
    border-color: rgba(0,87,184,.3);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.search-result-date {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.search-result-excerpt {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   INFORMATION MODAL
========================================================= */

.info-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5,31,60,.68);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
}

.info-modal-box {
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
    transform: translateY(15px);
    transition: .25s ease;
}

.info-modal.active .info-modal-box {
    transform: translateY(0);
}

.info-modal-top {
    padding: 25px 25px 20px;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: #ffffff;
}

.info-modal-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.info-modal-top h3 {
    font-size: 20px;
    font-weight: 800;
}

.info-modal-top p {
    margin-top: 7px;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.5;
}

.info-close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
}

.info-list {
    padding: 20px 25px 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #eef0f3;
}

.info-item:last-child {
    border-bottom: 0;
}

.info-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 17px;
}

.info-item-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 13px;
}

.info-item-content a,
.info-item-content span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

.info-item-content a:hover {
    color: var(--primary);
}