*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-elevated: 0 12px 32px rgba(15, 23, 42, 0.15);

    /* ✅ Primary Override */
    --primary: #00407c;
    --bs-primary: #00407c;       /* override bootstrap color */
    --bs-primary-rgb: 0, 64, 124;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

a {
    color: inherit;
}







/* ============================
   NAVBAR BASE
   ============================ */

.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    padding: 0.75rem 0;
}

.navbar-pre-sticky { transform: translateY(-100%); }

.navbar-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: rgba(0, 64, 124, 0.95) !important;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Brand / Logo */
.navbar-brand { 
    color: #ffffff !important; 
    margin-right: auto;
}

.brand-logo { 
    height: clamp(40px,5vw,50px); 
    object-fit: contain; 
}
.brand-logo-extention { 
    height: clamp(40px,5vw,45px); 
}

/* ============================
   TOGGLER BUTTON
   ============================ */

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
    background: transparent;
}

.navbar-toggler .navbar-toggler-icon {
    width: 28px;
    height: 28px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
}

/* SVG ICONS */
:root{
  --toggler-hamburger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  --toggler-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='2' d='M6 6L24 24M24 6L6 24'/%3E%3C/svg%3E");
}

.navbar-toggler.collapsed .navbar-toggler-icon { background-image: var(--toggler-hamburger); }
.navbar-toggler:not(.collapsed) .navbar-toggler-icon { background-image: var(--toggler-x); }

/* ============================
   NAV LINKS
   ============================ */

.navbar-nav { gap: 0.5rem; }

.navbar .nav-link {
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.6rem 1.2rem !important;
    position: relative;
    transition: 0.3s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #dfeeff;
    transition: width 0.25s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover { color: #dfeeff !important; }
.navbar .nav-link:hover::after { width: calc(100% - 2.4rem); }

/* ============================
   DROPDOWN DESKTOP (hover)
   ============================ */

.navbar .dropdown-menu {
    border: none;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    min-width: 200px;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
}

/* Dropdown item */
.navbar .dropdown-item {
    color: #1f2937 !important;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    position: relative;
    transition: 0.3s ease;
}

.navbar .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--bs-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f3f4f6 !important;
    color: var(--bs-primary) !important;
}

.navbar .dropdown-item:hover::before {
    transform: scaleY(1);
}

/* ============================
   DROPDOWN LEVEL 2 (desktop)
   ============================ */

.dropdown-submenu { position: relative; }

.dropdown-submenu > a.dropdown-toggle {
    color: #1f2937 !important;
    display: flex;
    justify-content: space-between;
}

.dropdown-submenu > a.dropdown-toggle::after {
    content: "";
    border: solid #1f2937;
    border-width: 0 2px 2px 0;
    padding: 4px;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover > a.dropdown-toggle::after {
    transform: translateX(4px) rotate(-45deg);
}

@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateX(12px);
        transition: 0.3s ease;
        border-radius: 0.75rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .dropdown-submenu:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

/* ============================
   MOBILE MODE (<992px)
   ============================ */

@media (max-width: 991.98px) {

    /* remove underline */
    .navbar .nav-link::after { display: none; }

    /* brand pushes toggler right */
    .navbar-brand { flex-grow: 1; }

    /* SHOW ALL dropdowns automatically */
    .navbar .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        padding-left: 0 !important;
    }

    /* sublevel indent */
    .dropdown-submenu > .dropdown-menu {
        padding-left: 1rem !important;
    }

    /* MOBILE FONT SMALLER */
    .navbar .nav-link,
    .navbar .dropdown-item,
    .dropdown-submenu > a.dropdown-toggle {
        font-size: 0.85rem !important;
        color: #ffffff !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    /* hover mobile */
    .navbar .nav-link:hover,
    .navbar .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1) !important;
        color: #ffffff !important;
    }

    /* remove left border indicator */
    .navbar .dropdown-item::before { display: none !important; }

    /* remove submenu arrow */
    .dropdown-submenu > a.dropdown-toggle::after { display: none !important; }
}

/* ============================
   CONTAINER-FLUID → CONTAINER (desktop)
   ============================ */

@media (min-width: 992px) {
    .navbar .container-fluid { max-width: 960px; margin: auto; }
}
@media (min-width: 1200px) {
    .navbar .container-fluid { max-width: 1140px; }
}
@media (min-width: 1400px) {
    .navbar .container-fluid { max-width: 1320px; }
}


/* ==========================================================
   MOBILE (<992px) – DROPDOWN MENJADI HORIZONTAL & WRAP
   ========================================================== */
@media (max-width: 991.98px) {

    /* Dropdown level 1 → horizontal & bisa turun (wrap) */
    .navbar .dropdown-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        background: transparent !important;
        box-shadow: none !important;
    }

    /* Level 1 items (submenu level-1) */
    .navbar .dropdown-menu > .dropdown-item {
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-start;

        padding: 0.35rem 0.75rem !important;
        background: rgba(255,255,255,0.1) !important;

        border-radius: 0.4rem;
        color: #ffffff !important;
        white-space: nowrap;
    }

    /* Hover mobile */
    .navbar .dropdown-menu > .dropdown-item:hover {
        background: rgba(255,255,255,0.2) !important;
        color: #ffffff !important;
    }

    /* ==========================================================
       LEVEL 2 – Tetap horizontal juga, tetapi ada indent
       ========================================================== */
    .dropdown-submenu > .dropdown-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;

        gap: 0.4rem !important;

        padding-left: 1rem !important; /* indent */
        background: transparent !important;
        box-shadow: none !important;
    }

    .dropdown-submenu > .dropdown-menu .dropdown-item {
        padding: 0.35rem 0.75rem !important;
        background: rgba(255,255,255,0.15) !important;
        border-radius: 0.4rem;
        white-space: nowrap;
        color: #ffffff !important;
    }

    .dropdown-submenu > .dropdown-menu .dropdown-item:hover {
        background: rgba(255,255,255,0.25) !important;
        color: #ffffff !important;
    }

    /* Hilangkan garis biru kiri */
    .navbar .dropdown-item::before {
        display: none !important;
    }

    /* Hilangkan arrow submenu */
    .dropdown-submenu > a.dropdown-toggle::after {
        display: none !important;
    }
}









/* Smooth scroll & no scrollbar */
.news-grid {
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
}
.news-grid::-webkit-scrollbar {
    display: none;
}

/* Card styling */
.news-card {
    min-width: 18rem;
    max-width: 18rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
}

/* Image inside ratio */
.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

/* Title two-line clamp */
.news-title {
    min-height: 3rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


/* CARD BASE */
.feature-card {
    border-radius: 1.5rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* HOVER ANIMATION — smoother, elegant */
.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* ICON CIRCLE STYLE */
.feature-icon {
    width: 68px; /* bigger */
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.6rem; /* bigger icon */
    transition: transform 0.3s ease, background 0.3s ease;
}

/* ICON HOVER ANIMATION */
.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(4deg);
    background-color: rgba(255, 255, 255, 0.35);
}

/* TITLE SIZE BIGGER */
.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

/* ===========================
   DARKER, MORE CONTRAST GRADIENTS
   =========================== */

.feature-gradient-1 {
    background: linear-gradient(135deg, hsl(291, 64%, 55%), hsl(260, 70%, 52%));
}

.feature-gradient-2 {
    background: linear-gradient(135deg, hsl(199, 89%, 52%), hsl(199, 89%, 42%));
}

.feature-gradient-3 {
    background: linear-gradient(135deg, hsl(351, 74%, 60%), hsl(15, 80%, 55%));
}

.feature-gradient-4 {
    background: linear-gradient(135deg, hsl(172, 53%, 45%), hsl(172, 60%, 38%));
}





.info-card {
    border-radius: 1.5rem;
    overflow: hidden;
}

.info-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

@media (min-width: 992px) {
    .info-image {
        height: 240px;
    }
}

.info-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

/* Site Grid Slider */

.slider-img {
    height: 460px;
    object-fit: cover;
}

.hero-card .card-body {
    min-height: 320px;
    border-radius: 1.5rem;
}

@media (min-width: 768px) {
    .hero-card .card-body {
        min-height: 420px;
    }
}

.hero-gradient {
    background: linear-gradient(135deg, hsl(210, 20%, 92%), hsl(210, 20%, 88%));
}



.profile-img-wrapper {
    height: 270px;
}

.object-fit-cover {
    object-fit: cover;
}



.sites-grid {
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
}
.sites-grid::-webkit-scrollbar {
    display: none;
}

.site-card {
    min-width: 16rem;
    max-width: 16rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}
.site-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
}

.site-card .card-body {
    min-height: 180px;
}

.site-icon {
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--bs-primary);
    margin: 0 auto;
}

.site-card:hover .site-icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0 0.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-circle {
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-circle span {
    color: var(--primary);
    font-weight: bold;
}

.footer-logo-title {
    font-weight: bold;
}

.footer-logo-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-desc {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link i {
    color: white;
    transition: color 0.3s ease;
}

.social-link:hover {
    background-color: white;
    color: var(--primary);
}

.social-link:hover i {
    color: var(--primary) !important;
}

.footer-heading {
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    padding-left: 0px !important;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    padding-left: 0px !important;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 4rem 0;
    color: #ffffff;
}

@media (min-width: 768px) {
    .page-hero {
        min-height: 420px;
        padding: 6rem 0;
    }
}

.page-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 64, 124, 0.85) 0%, rgba(0, 64, 124, 0.5) 45%, rgba(0, 64, 124, 0.25) 100%);
    backdrop-filter: blur(2px);
}

.page-hero-content {
    position: relative;
    max-width: 720px;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-light .breadcrumb-item.active {
    color: #ffffff;
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.65);
}

.detail-content p {
    color: #475569;
}

.detail-content .card,
.detail-sidebar .card {
    border-radius: 1.25rem;
}

.detail-sidebar .card a {
    color: #1f2937;
}

.detail-sidebar .card a:hover {
    color: #00407c;
}

.floating-actions {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    z-index: 1050;
}

.floating-button {
    padding: 0.75rem 1.25rem;
}

/* HIDE TEXT on mobile */
@media (max-width: 991.98px) {
    .floating-buttons .floating-button {
        padding: 0.75rem; /* buat tombol jadi bulat */
        width: 48px;
        height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* sembunyikan teks */
    .floating-buttons .floating-button i + span,
    .floating-buttons .floating-button i + * {
        display: none !important;
    }
}


.chat-widget {
    width: 320px;
    max-width: calc(100vw - 3rem);
    position: fixed;
    bottom: 80px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border-radius: 1.25rem;
    z-index: 1050;
}

.chat-widget.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-widget .card-body {
    max-height: 260px;
    overflow-y: auto;
}

.chat-message {
    background-color: #f8fafc;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 575.98px) {
    .floating-actions {
        right: 1rem;
        bottom: 1rem;
    }

    .floating-button {
        width: auto;
        padding: 0.75rem 1rem;
    }
}

.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 64, 124, 0.15) !important;
    transform: translateY(-4px);
}

.news-card:hover img {
    transform: scale(1.05);
}
