:root {
    --primary: #3b3f8c;
    --soft: #f4f5ff;
    --dark: #1f2251;
    --highsoft: #dbdeff;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* === NAVBAR ==== */
.navbar-clean {
    padding: 1.2rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #3b3f8c;
}

/* Desktop menu */
.nav-link {
    font-weight: 500;
    color: #222;
    margin-left: 1.5rem;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

/* ===== CUSTOM TOGGLER ===== */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 26px;
    height: 18px;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #000;
    left: 0;
    transition: 0.3s ease;
}

.navbar-toggler-icon::before {
    top: 0;
}
.navbar-toggler-icon span {
    top: 8px;
}
.navbar-toggler-icon::after {
    bottom: 0;
}

.btn-close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    color: #111;
    opacity: 0;
    transform: rotate(-90deg);
    transition: all 0.35s ease;
}

.navbar-collapse.show .btn-close-menu {
    opacity: 1;
    transform: rotate(0);
}
.navbar-clean {
    padding: 1.2rem 0;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.navbar-clean.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    /* backdrop-filter: blur(8px); */
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background-image: url("/media/hero.jpeg");
    background-size: cover;
    background-position: center;

    color: #fff;
    padding: clamp(60px, 8vw, 100px) 0;
    margin: 20px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 100px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* atur gelap di sini */
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    max-width: 650px;
    margin: 20px auto 0;
    opacity: 0.9;
}

/* ===== SECTION ===== */
section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary);
}

.section-title span {
    width: 60px;
    height: 4px;
    background: var(--primary);
    display: inline-block;
    border-radius: 10px;
    margin-top: 15px;
}

/* ===== CARD ===== */
.custom-card.modern-card {
    position: relative;
    padding: 40px;
    height: 100%;
    color: #ffffff;
    border-radius: 24px;
    /* background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.85)
    ); */
    background-color: var(--primary);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    overflow: hidden;
    transition: all 0.45s ease;
}

/* Ambient background image */
.custom-card.modern-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: var(--card-bg);
    background-size: cover;
    background-position: center right;

    opacity: 0.2;
    transform: scale(1.05);

    z-index: 0;
}

/* Soft gradient overlay */
.custom-card.modern-card::after {
    content: "";
    position: absolute;
    inset: 0;

    /* background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.95) 20%,
        rgba(255, 255, 255, 0.7) 60%,
        rgba(255, 255, 255, 0.3) 100%
    ); */

    z-index: 1;
}

/* Content */
.custom-card.modern-card > * {
    position: relative;
    z-index: 2;
}

/* Hover effect */
.custom-card.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(59, 63, 140, 0.18);
}

/* ===== VISI MISI ===== */
.visi-misi-section {
    border-radius: 20px;
    margin-top: -50px;
}
.visi-box {
    background: var(--soft);
    border-radius: 25px;
    padding: 50px;
}

.visi-box h4 {
    color: var(--primary);
    font-weight: 600;
}

.vm-image {
    max-width: 250px;
    margin: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}
.vm-image-lg {
    max-width: 80%;
    margin: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

/* ===== STRUKTUR ===== */
.struktur-section {
    margin-top: -50px;
    background-color: var(--soft);
}
/* =============================
           ORGANIZATION SECTION
        ============================== */

.org-section {
    padding: 90px 0;
    /* background: linear-gradient(180deg, #ffffff, #f6f7ff); */
}

.org-header h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.org-header span {
    color: var(--primary);
}

.org-header p {
    max-width: 720px;
    margin: 15px auto 0;
    color: #555;
}

/* Group Title */
.org-group-title {
    margin: 70px 0 35px;
    text-align: center;
}

.org-group-title h4 {
    font-weight: 600;
    color: var(--primary);
}

/* Card */
.org-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 22px;
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.org-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(59, 63, 140, 0.12),
        transparent
    );
    opacity: 0;
    transition: 0.4s;
}

.org-card:hover::after {
    opacity: 1;
}

.org-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(59, 63, 140, 0.25);
}

/* Highlight card */
.org-card.highlight {
    background: linear-gradient(135deg, #3b3f8c, #5b60d6);
    color: #fff;
}

.org-card.highlight .org-role {
    color: rgba(255, 255, 255, 0.85);
}

/* Avatar */
.org-avatar {
    width: 100%;
    /* height: 70px; */
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 12px 30px rgba(59, 63, 140, 0.45); */
}

.org-card.highlight .org-avatar {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

/* Text */
.org-name {
    font-weight: 600;
    margin-bottom: 6px;
}

.org-role {
    font-size: 14px;
    color: #666;
}

/* NAV PILLS */
.org-tabs {
    gap: 0.75rem;
}

.org-tabs .nav-link {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 500;
    color: #444;
    background: #f3f4f6;
    transition: all 0.25s ease;
}

.org-tabs .nav-link:hover {
    background: #e7e9ee;
}

.org-tabs .nav-link.active {
    background: #3b3f8c;
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 63, 140, 0.25);
}

.org-nav {
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.org-nav .nav-link {
    border-radius: 999px;
    padding: 10px 26px;
    color: #555;
    background: #f1f2f8;
    font-weight: 500;
    transition: 0.3s ease;
    white-space: nowrap;
}

.org-nav .nav-link.active {
    background: #3b3f8c;
    color: #fff;
    /* box-shadow: 0 12px 30px rgba(59, 63, 140, 0.45); */
}

.org-nav .nav-link:hover {
    background: #3b3f8c;
    color: #fff;
}

/* TAB ANIMATION */
.tab-pane {
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 10px 18px 10px 20px;
    background: #fff;
    color: #000;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;

    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    transition: all 0.3s ease;
}

.btn-explore .icon {
    width: 28px;
    height: 28px;

    background: var(--primary);
    color: #fff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-explore:hover .icon {
    transform: translateX(4px);
}

.history-section {
    margin-top: -50px;
}

.btn-white {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991px) {
    .custom-card.card-bg::after {
        width: 35%;
        opacity: 0.12;
    }

    .custom-card .card-content {
        max-width: 75%;
    }

    .navbar-collapse {
        position: fixed;
        inset: 0;
        background: #fff;
        padding: 6rem 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.35s ease;
        z-index: 99999999 !important;
    }

    /* when open */
    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
    }

    /* during bootstrap collapsing */
    .navbar-collapse.collapsing {
        height: auto !important;
        transform: translateY(-100%);
        opacity: 0;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        font-size: 1.6rem;
        margin: 1.4rem 0;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.35s ease;
    }

    /* stagger animation */
    .navbar-collapse.show .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-collapse.show .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }
    .navbar-collapse.show .nav-link:nth-child(2) {
        transition-delay: 0.18s;
    }
    .navbar-collapse.show .nav-link:nth-child(3) {
        transition-delay: 0.26s;
    }
    .navbar-collapse.show .nav-link:nth-child(4) {
        transition-delay: 0.34s;
    }

    .navbar-logo {
        height: 32px;
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 90px 0 70px;
    }

    section {
        padding: 70px 0;
    }

    .visi-box {
        padding: 30px;
    }
    .vision-mission {
        padding: 60px 0;
    }

    .vm-block {
        margin-top: 50px;
    }

    .vm-image-lg {
        max-width: 100%;
    }

    .custom-card.modern-card {
        padding: 28px;
        border-radius: 20px;
    }

    .custom-card.modern-card::before {
        background-position: center;
        opacity: 0.12;
    }

    .org-section {
        padding: 60px 0;
    }

    .org-group-title {
        margin-top: 50px;
    }

    .org-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 0.5rem;
    }

    .org-tabs::-webkit-scrollbar {
        display: none;
    }

    .org-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.9rem;
        opacity: 1 !important;
    }
}
