/* ===== Scroll Reveal Animation ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Variasi arah */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-left.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-right.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-zoom.reveal-active {
    opacity: 1;
    transform: scale(1);
}

/* Delay util */
.delay-1 { transition-delay: 0.1s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-left,
    .reveal-right,
    .reveal-zoom {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.tp-bannertimer {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 0%;
    background: linear-gradient(90deg, #0057B7, #4da6ff);
    z-index: 9999;
    transition: width linear;
}

#hero {
    position: relative;
}

.navbar-custom .navbar-toggler {
    border-color: transparent;
    /* Remove the border */
}

/* Customize the hamburger lines (bars) */
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mengatur navbar agar transparan dan berada di atas gambar */
.navbar {
    position: fixed;
    top: 0;
    /* Posisi navbar di bagian atas */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Transparansi background */
    padding: 10px;
    transition: background-color 0.3s ease, top 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    /* Transisi untuk latar belakang, posisi, opacity, dan transform */
}

.navbar.fixed {
    position: fixed;
    /* Ganti menjadi posisi fixed */
    background-color: rgba(0, 0, 0, 0.55);
    /* Latar belakang semi-transparan agar efek blur terlihat */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: background-color 0.3s ease, top 0.3s ease, opacity 0.3s ease, transform 0.3s ease, backdrop-filter 0.3s ease;
    /* Transisi untuk latar belakang, posisi, opacity, dan transform */
}

/*
 * Mobile hero fixes:
 * - Use modern viewport units (dvh/svh) where supported to keep hero full height
 * - Add top padding so hero content doesn't sit under the fixed navbar
 */
@supports (height: 100dvh) {
    #hero,
    #hero .carousel-item {
        height: 100dvh;
    }
}

@supports (height: 100svh) {
    #hero,
    #hero .carousel-item {
        height: 100svh;
    }
}

/* Collapsed navbar for navbar-expand-xl happens below 1200px */
@media (max-width: 1199.98px) {
    #hero .carousel-container {
        padding-top: 90px;
        padding-bottom: 24px;
        box-sizing: border-box;
        text-align: center;
    }
}

/* Hero text readability: drop-shadow only (no background changes) */
#hero h5,
#hero h6 {
    filter:
    drop-shadow(0 5px 15px rgba(0,0,0,1))
    drop-shadow(0 5px 15px rgba(0,0,0,1))
}

/* Menata item menu */
.navbar-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.navbar-nav li {
    margin: 0 15px;
}

/* Desktop (expanded) navbar: spread items to container edges */
@media (min-width: 1200px) {
    .navbar-expand-xl .navbar-nav {
        width: 100%;
        justify-content: space-between;
    }

    .navbar-expand-xl .navbar-nav li {
        margin: 0;
    }
}

/* Styling untuk link */
.navbar-nav .nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: white;
    transition: width 0.3s ease;
    /* Animasi untuk garis bawah */
}

.nav-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* Jarak dari bawah item navbar */
    height: 2px; /* Tinggi garis bawah */
    width: 100%; /* Lebar garis bawah */
    background-color: white; /* Warna garis bawah */
    transition: width 0.3s ease; /* Transisi untuk garis bawah */
}

/* Hover efek: garis bawah meluas dari kiri ke kanan */
.navbar-nav .nav-item:hover::after {
    width: 100%;
    /* Membuat garis bawah memanjang penuh saat hover */
}

/* Navbar auth buttons */
.navbar-auth {
    white-space: nowrap;
}

.navbar-auth .btn {
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-auth .btn-light {
    color: #0059ab;
}

.navbar-auth .btn-light:hover {
    background-color: #e9ecef;
    color: #003d75;
}

/* Match navbar-expand-xl collapse breakpoint (<1200px) */
@media (max-width: 1199.98px) {
    .navbar .navbar-nav {
        margin-top: 5px;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(50px);
        width: 100%;
    }

    .fixed .navbar-nav {
        background-color: transparent;
    }

    .navbar-auth {
        margin-top: 10px;
        justify-content: center;
    }
}

/* Landscape (default) */
.bg-slide1 { background-image: url('../../../img/slide1.png'); }
.bg-slide2 { background-image: url('../../../img/slide2.png'); }
.bg-slide3 { background-image: url('../../../img/slide3.png'); }

/* Portrait */
@media (orientation: portrait) {
    .bg-slide1 { background-image: url('../../../img/slide1_mobile.PNG'); }
    .bg-slide2 { background-image: url('../../../img/slide2_mobile.PNG'); }
    .bg-slide3 { background-image: url('../../../img/slide3_mobile.PNG'); }
}

/* Slide carousel dari CMS: gambar desktop & mobile lewat CSS variable (diisi inline per slide) */
.bg-slide-cms { background-image: var(--slide-bg); }
@media (orientation: portrait) {
    .bg-slide-cms { background-image: var(--slide-bg-mobile, var(--slide-bg)); }
}

.home-news-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    position: relative;
    overflow: hidden;
}

.home-news-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: rgba(0, 89, 171, 0.05);
    border-radius: 50%;
    z-index: 0;
    animation: floatBubbleOne 8s ease-in-out infinite;
}

.home-news-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 260px;
    height: 260px;
    background: rgba(73, 163, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
    animation: floatBubbleTwo 11s ease-in-out infinite;
}

@keyframes floatBubbleOne {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-8px, 10px) scale(1.03);
    }

    50% {
        transform: translate(-15px, -8px) scale(1.06);
    }

    75% {
        transform: translate(-6px, -14px) scale(1.02);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes floatBubbleTwo {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(10px, -8px) scale(1.02);
    }

    50% {
        transform: translate(18px, 10px) scale(1.05);
    }

    75% {
        transform: translate(8px, 16px) scale(1.02);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.home-news-header {
    position: relative;
    z-index: 1;
    margin-bottom: 35px;
}

.home-news-subtitle {
    color: #6c7785;
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 0;
}

.home-news-title {
    font-size: 2rem;
    font-weight: 700;
    color: #003b73;
    margin-bottom: 0;
}

.home-news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 14px;
    background: linear-gradient(90deg, #0059ab, #007bdf);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 89, 171, 0.18);
    transition: all 0.3s ease;
    border: none;
}

.home-news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 89, 171, 0.24);
}

.home-news-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 89, 171, 0.08);
    box-shadow: 0 12px 35px rgba(0, 89, 171, 0.08);
    transition: all 0.35s ease;
    height: 100%;
}

.home-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 89, 171, 0.14);
}

.home-news-image-wrap {
    position: relative;
    overflow: hidden;
}

.home-news-image-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-news-card:hover .home-news-image-wrap img {
    transform: scale(1.06);
}

.home-news-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.home-news-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #0059ab;
    background: rgba(0, 89, 171, 0.08);
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 14px;
    width: fit-content;
}

.home-news-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1f2d3a;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 52px;
}

.home-news-card-text {
    font-size: 14px;
    color: #667382;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.home-news-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0059ab;
    color: #0059ab;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    width: fit-content;
}

.home-news-readmore:hover {
    background: #0059ab;
    color: #fff;
}

.home-news-empty {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px dashed #bfd5ea;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: #6f7d8c;
    box-shadow: 0 8px 24px rgba(0, 89, 171, 0.05);
}

@media (max-width: 767px) {
    .home-news-section {
        padding: 55px 0;
    }

    .home-news-title {
        font-size: 1.6rem;
    }

    .home-news-header {
        display: block !important;
    }

    .home-news-header .right-btn {
        margin-top: 15px;
    }

    .home-news-card-title {
        min-height: auto;
    }

    .home-news-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

.text-highlight {
    display: inline;
    font-weight: 700;
    color: inherit;
    background-image: linear-gradient(transparent 45%, #7fe7f3 45%, #7fe7f3 88%, transparent 88%);
    padding: 0 4px;
    border-radius: 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.home-highlight-section {
    padding: 90px 0;
    background: #ffffff;
    position: relative;
}

/* accent garis atas */
.home-highlight-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0059ab, #49a3ff);
}

.home-highlight-box {
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding: 10px 20px;
}

.home-highlight-title {
    font-size: 2.3rem;
    font-weight: 500;
    line-height: 1.4;
    color: #2c2c2c;
    margin-bottom: 25px;
}

.home-highlight-title strong {
    color: #0059ab;
    font-weight: 700;
}

.home-highlight-desc {
    font-size: 16px;
    color: #6c7785;
    margin-bottom: 35px;
    line-height: 1.8;
}

.home-highlight-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 14px;
    background: linear-gradient(90deg, #0059ab, #007bdf);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(0, 89, 171, 0.18);
    transition: all 0.3s ease;
}

.home-highlight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 89, 171, 0.25);
}

@media (max-width: 767px) {
    .home-highlight-title {
        font-size: 1.6rem;
    }
}

.p3kpi-board-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    position: relative;
    overflow: hidden;
}

.p3kpi-board-section::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 280px;
    height: 280px;
    background: rgba(0, 89, 171, 0.04);
    border-radius: 50%;
    filter: blur(2px);
}

.p3kpi-board-section::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -140px;
    width: 320px;
    height: 320px;
    background: rgba(31, 199, 223, 0.05);
    border-radius: 50%;
    filter: blur(2px);
}

.p3kpi-board-header {
    position: relative;
    z-index: 1;
    margin-bottom: 38px;
}

.p3kpi-board-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 89, 171, 0.08);
    color: #0059ab;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
}

.p3kpi-board-title {
    font-size: 2rem;
    font-weight: 700;
    color: #003b73;
    margin-bottom: 10px;
}

.p3kpi-board-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #697586;
    font-size: 15px;
    line-height: 1.8;
}

.p3kpi-board-slider-wrap {
    position: relative;
    z-index: 1;
}

.p3kpi-board-slider {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 46px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.p3kpi-board-slider::-webkit-scrollbar {
    display: none;
}

.p3kpi-board-card {
    min-width: 270px;
    max-width: 270px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 89, 171, 0.08);
    box-shadow: 0;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;

    margin-bottom: 35px;
}

.p3kpi-board-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(0, 89, 171, 0.16);
}

.p3kpi-board-card.featured {
    border: 1px solid rgba(0, 89, 171, 0.18);
    box-shadow: 0 18px 42px rgba(0, 89, 171, 0.14);
}

.p3kpi-board-card.mine {
    border: 1px solid rgba(31, 199, 223, 0.22);
}

.p3kpi-board-image-wrap {
    position: relative;
    height: 320px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: linear-gradient(160deg, #003b73 0%, #0059ab 52%, #19c7df 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.p3kpi-board-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.12) 0%, transparent 28%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.10) 0%, transparent 30%);
    pointer-events: none;
}

.avatar-circle {
    position: relative;
    z-index: 1;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255,255,255,0.28);
    box-shadow:
    0 14px 34px rgba(0,0,0,0.16),
    0 0 0 10px rgba(255,255,255,0.08);
    transform: translateY(-6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-avatar-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0059ab;
    font-size: 2.5rem;
    font-weight: 700;
}

.avatar-circle img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p3kpi-board-card:hover .avatar-circle {
    transform: translateY(-10px) scale(1.045);
    box-shadow:
    0 18px 40px rgba(0,0,0,0.18),
    0 0 0 12px rgba(255,255,255,0.11);
}

.p3kpi-board-card-body {
    padding: 20px 18px 24px;
    text-align: center;
}

.p3kpi-board-category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 89, 171, 0.07);
    color: #0059ab;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    max-width: 100%;
}

.p3kpi-board-card-body h5 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1e2a36;
    margin-bottom: 8px;
    line-height: 1.45;
    min-height: 52px;
}

.p3kpi-board-card-body p {
    margin-bottom: 0;
    color: #728092;
    font-size: 14px;
    line-height: 1.6;
    min-height: 42px;
}

.p3kpi-board-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #0059ab;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 89, 171, 0.18);
    z-index: 4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p3kpi-board-nav:hover {
    background: #0059ab;
    color: #ffffff;
}

.p3kpi-board-nav.prev {
    left: -6px;
}

.p3kpi-board-nav.next {
    right: -6px;
}

@media (max-width: 991px) {
    .p3kpi-board-nav.prev {
        left: 0;
    }

    .p3kpi-board-nav.next {
        right: 0;
    }
}

@media (max-width: 767px) {
    .p3kpi-board-section {
        padding: 60px 0;
    }

    .p3kpi-board-title {
        font-size: 1.6rem;
    }

    .p3kpi-board-subtitle {
        font-size: 14px;
    }

    .p3kpi-board-slider {
        padding: 10px 10px 18px;
        gap: 16px;
    }

    .p3kpi-board-card {
        min-width: 240px;
        max-width: 240px;
        border-radius: 22px;
    }

    .p3kpi-board-image-wrap {
        height: 260px;
        border-radius: 22px 22px 0 0;
    }

    .avatar-circle {
        width: 132px;
        height: 132px;
    }

    .p3kpi-board-card-body {
        padding: 18px 14px 20px;
    }

    .p3kpi-board-card-body h5 {
        font-size: 1rem;
        min-height: auto;
    }

    .p3kpi-board-card-body p {
        min-height: auto;
    }

    .p3kpi-board-nav {
        display: none;
    }
}

/* Elemen yang sebelumnya memakai atribut style inline */
.navbar-logo {
    height: 40px;
}

.navbar-nav li.navbar-auth-item {
    margin-top: 3px;
}

.hero-logo {
    margin-bottom: 15px;
    width: 150px;
    filter: drop-shadow(0 0 5px white) drop-shadow(0 0 10px white);
}

.hero-cta {
    border-radius: 30px;
    font-weight: 600;
}

.home-news-empty-title {
    font-weight: 700;
    color: #0059ab;
}
