:root {
    --navy:#2d6f98;
    --blue:#438fbd;
    --green:#398b70;
    --ink:#29445c;
    --muted:#6d8295
}

* {
    box-sizing:border-box
}

body {
    font-family:Arial,Helvetica,sans-serif;
    color:var(--ink);
    background:#f1f7fb
}

.topbar {
    background:#fafdff;
    padding:12px 0;
    border-bottom:1px solid #dceaf3
}

.brandline {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:12px;
    font-weight:700;
    color:#172b43
}

.brandline i {
    height:48px;
    border-left:1px solid #aeb8c4;
    margin:0 12px
}

.brandline strong {
    font-size:29px;
    color:#153b62;
    letter-spacing:-1px
}

.brandline small {
    display:block;
    max-width:190px;
    font-size:9px;
    font-weight:500;
    line-height:1.2
}

.seal {
    width:48px;
    height:48px;
    border-radius:50%;
    background:#073f76;
    color:#f6c53c;
    display:grid;
    place-items:center;
    font-size:11px;
    border:3px double #e9bd32
}

.leafmark {
    font-size:35px;
    color:#4ca56c;
    transform:rotate(-35deg)
}

.partner {
    text-align:center;
    font-weight:900;
    font-size:22px;
    color:#263d54
}

.partner small {
    font-size:9px;
    font-weight:400
}

.mainnav {
    background:#dceef8;
    padding:0;
    border-top:1px solid #eaf4fa;
    border-bottom:1px solid #c9e0ee
}

.mainnav .nav-link {
    color:#285b7b!important;
    font-weight:600;
    font-size:14px;
    padding:16px 14px!important
}

.mainnav .nav-link:hover {
    background:#c5e3f3;
    color:#174c70!important
}

.hero {
    min-height:330px;
    background:linear-gradient(90deg,rgba(2,40,73,.92),rgba(3,54,86,.55),rgba(3,54,86,.08)),linear-gradient(135deg,#75bce2,#8bc9e8 55%,#d9eff9);
    position:relative;
    overflow:hidden;
    color:#fff;
    display:flex;
    align-items:center
}

.hero:after {
    content:"";
    position:absolute;
    right:-5%;
    bottom:-120px;
    width:65%;
    height:340px;
    border:1px solid rgba(255,255,255,.3);
    transform:skewY(-22deg);
    background:repeating-linear-gradient(0deg,transparent 0 38px,rgba(255,255,255,.16) 39px 40px),repeating-linear-gradient(90deg,transparent 0 48px,rgba(255,255,255,.16) 49px 50px);
    opacity:.65
}

.hero-content {
    position:relative;
    z-index:1;
    padding:48px 0;
    max-width:650px
}

.hero h1 {
    font-size:clamp(42px,6vw,66px);
    font-weight:800;
    letter-spacing:-2px;
    margin:0
}

.hero h2 {
    font-size:clamp(24px,3vw,34px);
    font-weight:700;
    line-height:1.15
}

.hero p {
    font-size:17px;
    max-width:550px
}

.pill {
    display:inline-block;
    background:#ffc928;
    color:#102b4c;
    border-radius:30px;
    padding:8px 20px;
    font-weight:800;
    margin-left:10px;
    font-size:18px
}

.consultant {
    display:inline-flex;
    align-items:center;
    gap:14px;
    background:#fff;
    color:#15365b;
    padding:12px 18px;
    border-radius:12px;
    font-weight:700;
    box-shadow:0 8px 25px #001b3533
}

.consultant b {
    font-size:32px;
    color:#0873b9
}

.quicklinks {
    margin-top:-1px;
    padding:18px 0;
    background:#fafdff
}

.quick-card {
    height:100%;
    display:flex;
    align-items:center;
    gap:15px;
    padding:16px 18px;
    border-radius:15px;
    text-decoration:none;
    color:var(--ink);
    background:#e8f4fb;
    transition:.2s;
    border:1px solid #d8eaf5
}

.quick-card:hover {
    transform:translateY(-3px);
    box-shadow:0 8px 20px #163d5b18
}

.quick-card.green {
    background:#eaf6f2;
    border-color:#d8eee6
}

.quick-card.purple {
    background:#eef3fb;
    border-color:#dce7f4
}

.quick-icon {
    width:68px;
    height:68px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:#5ba7d1;
    color:#fff;
    font-size:30px;
    flex:none
}

.green .quick-icon {
    background:#58a88c
}

.purple .quick-icon {
    background:#7898c2
}

.quick-card strong {
    font-size:20px
}

.quick-card small {
    display:block;
    color:#344b65
}

.section {
    padding:28px 0
}

.section-title {
    font-size:25px;
    font-weight:800;
    margin-bottom:18px;
    border-bottom:1px solid #d7e7f1;
    padding-bottom:10px;
    color:#315d7b
}

.section-title a {
    float:right;
    font-size:13px;
    text-decoration:none;
    color:#075db0;
    margin-top:8px
}

.news-feature,.sidebox,.progressbox {
    background:#fff;
    border:1px solid #dceaf3;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 4px 14px #315d7b0d
}

.news-placeholder {
    height:190px;
    background:linear-gradient(135deg,#b7d7e5,#5c9e83 55%,#e4d7ae);
    display:grid;
    place-items:center;
    color:#fff;
    font-size:50px
}

.news-body {
    padding:16px
}

.news-body h3 {
    font-size:20px;
    font-weight:800
}

.news-item {
    display:flex;
    gap:13px;
    padding:0 0 14px;
    margin-bottom:14px;
    border-bottom:1px solid #e5ebf1
}

.thumb {
    width:116px;
    height:82px;
    flex:none;
    border-radius:9px;
    background:linear-gradient(135deg,#d3e5ed,#77a88b);
    display:grid;
    place-items:center;
    color:#fff;
    font-size:25px
}

.news-item h4 {
    font-size:15px;
    font-weight:700
}

.news-item a,.readmore {
    color:#075db0;
    text-decoration:none;
    font-weight:700
}

.sidebox {
    padding:20px;
    margin-bottom:16px;
    background:linear-gradient(135deg,#fff,#edf7fc)
}

.sidebox h3 {
    font-size:22px;
    font-weight:800
}

.progressbox {
    padding:18px
}

.progress-number {
    font-size:32px;
    font-weight:800;
    color:#398b70
}

.progress {
    height:14px;
    border-radius:20px
}

.progress-bar {
    background:#59a98b
}

.activity-strip {
    background:#e7f3fa;
    border:1px solid #d6e8f3;
    border-radius:14px;
    padding:20px
}

.activity {
    display:flex;
    gap:12px;
    align-items:center;
    padding:12px;
    border-right:1px solid #cbd7e3;
    height:100%;
    font-weight:700
}

.activity i {
    font-size:29px;
    color:#4e9fc7
}

.footer {
    background:#dceef8;
    color:#315873;
    padding:32px 0;
    margin-top:25px;
    border-top:1px solid #c9e2f0
}

.footer a {
    color:#286b95;
    text-decoration:none;
    margin-right:16px
}

.footerbrand {
    display:flex;
    align-items:center;
    gap:14px
}

.amurwa-mark {
    font-size:42px;
    font-weight:900;
    color:#397da5;
    border:2px solid #75a9c8;
    border-radius:12px;
    padding:0 12px
}

.footer p,.footer small {
    font-size:13px;
    color:#55758c
}

.content-card {
    background:#fff;
    border:1px solid #e1e8ef;
    border-radius:14px;
    padding:24px
}

.pagehead {
    background:linear-gradient(110deg,#dceef8,#c8e5f3);
    color:#315d7b;
    padding:38px 0;
    border-bottom:1px solid #c8e1ef
}

.pagehead h1 {
    font-weight:800
}

.table thead {
    background:#edf3f8
}

.admin-body {
    background:#f1f7fb
}

.admin-nav {
    background:#06345c;
    color:#fff;
    padding:15px
}

.admin-nav a {
    color:#fff;
    text-decoration:none;
    margin-right:18px
}

.form-control,.form-select {
    padding:10px
}

.login-wrap {
    max-width:430px;
    margin:7vh auto;
    background:#fff;
    padding:30px;
    border-radius:16px;
    box-shadow:0 10px 35px #153b5b18
}

@media(max-width:767px) {
    .brandline small,.partner {
        display:none
    }

    .brandline {
        font-size:10px
    }

    .brandline strong {
        font-size:23px
    }

    .hero {
        min-height:360px
    }

    .hero-content {
        padding:35px 12px
    }

    .pill {
        margin:10px 0 0
    }

    .quick-card strong {
        font-size:17px
    }

    .activity {
        border-right:0;
        border-bottom:1px solid #cbd7e3
    }

    .section-title {
        font-size:22px
    }

}

#mainBanner .carousel-item .hero {
    min-height:330px
}

#mainBanner .carousel-indicators {
    z-index:3
}

#mainBanner .carousel-control-prev,#mainBanner .carousel-control-next {
    z-index:3;
    width:6%
}

/* Identitas lembaga pada header: logo dikelola melalui administrator */

.header-identity {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    min-height:78px;
    padding:7px 0
}

.header-identity-item {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-width:0;
    flex:1;
    color:#172b43;
    font-size:12px;
    font-weight:700;
    line-height:1.35
}

.header-identity-item img {
    display:block;
    max-width:100%;
    width:auto;
    height:auto;
    max-height:62px;
    object-fit:contain
}

.header-logo-placeholder {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:56px;
    min-height:42px;
    padding:5px 9px;
    border:1px solid #dbe3ec;
    border-radius:6px;
    color:#153b62;
    font-weight:800;
    text-align:center
}

.header-identity-item small {
    font-size:9px;
    font-weight:500
}

@media(max-width:767px) {
    .header-identity {
        gap:8px;
        flex-wrap:wrap;
        justify-content:center;
        padding:10px 0
    }

    .header-identity-item {
        flex:0 0 calc(50% - 8px);
        font-size:10px;
        justify-content:flex-start
    }

    .header-identity-item img {
        max-height:48px;
        max-width:75px
    }

    .header-identity-item:nth-child(odd) {
        border-right:1px solid #e2e8ef;
        padding-right:8px
    }

}

/* FIX LOGO HEADER: batasi ukuran logo agar selalu proporsional */

.topbar .header-identity {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:96px;
    padding:12px 0;
}

.topbar .header-identity-item {
    flex:1 1 0;
    min-width:0;
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.topbar .header-identity-item img {
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-height:58px !important;
    max-width:min(100%,170px) !important;
    object-fit:contain !important;
}

.topbar .header-logo-placeholder {
    max-width:170px;
    overflow-wrap:anywhere;
}

@media(max-width:767px) {
    .topbar .header-identity {
        gap:8px;
        min-height:0;
        padding:10px 0
    }

    .topbar .header-identity-item {
        flex:0 0 calc(50% - 8px);
        min-height:54px
    }

    .topbar .header-identity-item img {
        max-height:46px !important;
        max-width:125px !important;
    }

}

/* Running announcement ticker below homepage banner */

.running-announcement {
    background:#d9edf8;
    color:#315d7b;
    overflow:hidden;
    border-top:3px solid #83c5e5;
    border-bottom:1px solid #c8e1ef
}

.running-inner {
    display:flex;
    align-items:stretch;
    min-height:48px
}

.running-label {
    display:flex;
    align-items:center;
    gap:9px;
    flex:none;
    background:#8cc9e6;
    color:#204f6d;
    padding:0 20px;
    font-weight:800;
    font-size:12px;
    letter-spacing:.4px;
    position:relative;
    z-index:1
}

.running-label i {
    font-size:17px
}

.running-window {
    flex:1;
    min-width:0;
    overflow:hidden;
    display:flex;
    align-items:center
}

.running-track {
    display:flex;
    align-items:center;
    width:max-content;
    white-space:nowrap;
    animation:runningTicker var(--ticker-duration,42s) linear infinite
}

.running-track span {
    display:inline-block;
    padding:0 36px;
    font-size:14px;
    font-weight:600;
    color:#315d7b
}

.running-announcement:hover .running-track {
    animation-play-state:paused
}

@keyframes runningTicker {
    from {
        transform:translateX(0)
    }

    to {
        transform:translateX(-50%)
    }

}

@media(max-width:575px) {
    .running-inner {
        min-height:44px
    }

    .running-label {
        padding:0 11px;
        font-size:10px;
        gap:6px
    }

    .running-track span {
        font-size:12px;
        padding:0 22px
    }

}

@media(prefers-reduced-motion:reduce) {
    .running-track {
        animation:none;
        white-space:normal
    }

    .running-track span:nth-child(2) {
        display:none
    }

}

/* Perjelas tombol Akses Aplikasi pada navbar biru pastel */

.mainnav .btn-outline-light, .mainnav a.btn-outline-light, .mainnav button.btn-outline-light {
    color: #285b7b !important;
    border: 1px solid #a9cfe3 !important;
    background: #eaf5fb !important;
    font-weight: 600;
    opacity: 1 !important;
}

.mainnav .btn-outline-light:hover, .mainnav a.btn-outline-light:hover, .mainnav button.btn-outline-light:hover, .mainnav .btn-outline-light:focus {
    color: #174c70 !important;
    border-color: #83b9d8 !important;
    background: #d5ebf7 !important;
}

.mainnav .btn-outline-light .dropdown-toggle::after, .mainnav .dropdown-toggle::after {
    border-top-color: currentColor;
}
