.profile-hero {
    padding: 30px 0 10px;
}

.profile-hero-card {
    min-height: 280px;
    border-radius: 18px;
    padding: 55px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.95),
            rgba(255, 255, 255, 0.65)
        ),
        url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.title-line {
    width: 45px;
    height: 3px;
    background: #198754;
    margin-top: 12px;
}

.tab-card {
    display: block;
    padding: 18px 20px;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
}

.tab-card:hover,
.tab-card.active {
    background: #198754;
    color: #fff;
}

.content-card {
    background: #fff;
    border-radius: 18px;
    padding: 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.profile-image-box img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

.year-card {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.icon-box {
    font-size: 32px;
}

.icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #e8f5ee;
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.vision-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.org-chart {
    text-align: center;
}

.org-level {
    display: flex;
    justify-content: center;
}

.org-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 12px;
    min-height: 110px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    font-size: 12px;
}

.org-card strong {
    display: block;
    color: #198754;
    font-size: 11px;
    margin-bottom: 5px;
}

.org-card small {
    display: block;
    color: #333;
}

.org-card.main {
    width: 180px;
}

.avatar {
    font-size: 34px;
    margin-bottom: 6px;
}

.small-avatar {
    font-size: 26px;
}

.org-line {
    width: 2px;
    height: 35px;
    background: #ccc;
    margin: 0 auto 15px;
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    height: 100%;
}

.stat-card h4 {
    margin-bottom: 0;
}

.population-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 155px;
    padding: 26px;
    background: #fff;
    border: 1px solid #e2e9e5;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(21, 66, 40, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.population-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: currentColor;
}

.population-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(21, 66, 40, 0.11);
}

.population-card small {
    color: #68766e;
    font-weight: 600;
}

.population-card h4 {
    margin: 5px 0 3px;
    color: #172b20;
    font-size: 32px;
    font-weight: 800;
}

.population-card h4 span {
    color: #66736c;
    font-size: 15px;
    font-weight: 600;
}

.population-card p {
    margin: 0;
    color: #7b8780;
    font-size: 12px;
}

.population-card-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    flex: 0 0 60px;
    margin-left: 15px;
    border-radius: 17px;
    font-size: 25px;
}

.population-green { color: #16894f; }
.population-green .population-card-icon { background: #e4f5ec; }
.population-blue { color: #397db6; }
.population-blue .population-card-icon { background: #e8f2fb; }
.population-purple { color: #7652a5; }
.population-purple .population-card-icon { background: #f0eafa; }

.profile-mobile-headman,
.profile-mobile-section-heading {
    display: none;
}

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

    .profile-hero-card {
        min-height: 210px;
        border-radius: 0;
        padding: 34px 16px 38px;
        box-shadow: none;
        background:
            linear-gradient(90deg, rgba(5, 64, 47, .9), rgba(10, 94, 67, .66)),
            var(--village-hero-image) center/cover;
        color: #fff;
    }

    .profile-hero-card small,
    .profile-hero-card strong {
        color: #7ff0bb !important;
    }

    .profile-hero-card h1 {
        margin-top: 12px !important;
        font-size: 2rem;
        line-height: 1.08;
    }

    .profile-hero-card .title-line {
        display: none;
    }

    .profile-hero-card p {
        max-width: 330px;
        margin-top: 18px !important;
        margin-bottom: 0;
        color: rgba(255,255,255,.88);
        font-size: .82rem;
        line-height: 1.65;
    }

    .profile-mobile-headman {
        display: block;
        position: relative;
        z-index: 3;
        margin-top: -24px;
        padding-bottom: 14px;
    }

    .profile-mobile-headman-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px;
        border: 1px solid #e1ebe6;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(15, 72, 48, .12);
    }

    .profile-mobile-headman-photo {
        width: 50px;
        height: 50px;
        display: grid;
        place-items: center;
        flex: 0 0 50px;
        overflow: hidden;
        border: 2px solid #d9eee3;
        border-radius: 50%;
        background: #e9f6ef;
        color: #178a51;
        font-size: 22px;
    }

    .profile-mobile-headman-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-mobile-headman-copy {
        min-width: 0;
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .profile-mobile-headman-copy small {
        color: #87948d;
        font-size: .63rem;
    }

    .profile-mobile-headman-copy strong {
        overflow: hidden;
        color: #20382c;
        font-size: .9rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-headman-copy span {
        color: #148a50;
        font-size: .6rem;
        font-weight: 800;
        letter-spacing: .06em;
    }

    .profile-mobile-headman-card > a {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        flex: 0 0 34px;
        border-radius: 50%;
        background: #e8f5ee;
        color: #16894f;
        text-decoration: none;
    }

    .profile-tabs {
        display: none;
    }

    #sejarah {
        padding-top: 26px !important;
        background: #f6f8f7;
    }

    .profile-mobile-section-heading {
        display: flex;
        align-items: center;
        flex-direction: column;
        margin-bottom: 18px;
        text-align: center;
    }

    .profile-mobile-section-heading span {
        padding: 5px 11px;
        border-radius: 999px;
        background: #e5f5ed;
        color: #16894f;
        font-size: .58rem;
        font-weight: 800;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .profile-mobile-section-heading h2 {
        margin: 10px 0 7px;
        font-size: 1.25rem;
        font-weight: 800;
    }

    .profile-mobile-section-heading i {
        width: 42px;
        height: 3px;
        border-radius: 3px;
        background: #198754;
    }

    .content-card {
        padding: 18px 15px;
        border: 1px solid #e5ece8;
        border-radius: 15px;
        box-shadow: 0 10px 26px rgba(21, 66, 40, .07);
    }

    .content-card > .row {
        --bs-gutter-y: 1.25rem;
    }

    .content-card > .row h3,
    .content-card > .row .title-line {
        display: none;
    }

    .content-card > .row p {
        margin-top: 0 !important;
        color: #4f6057;
        font-size: .82rem;
        line-height: 1.8;
        text-align: justify;
    }

    .content-card > .row p::first-letter {
        float: left;
        margin: 3px 7px 0 0;
        color: #16894f;
        font-size: 2.7rem;
        font-weight: 800;
        line-height: .8;
        text-transform: uppercase;
    }

    .profile-image-box {
        display: none;
    }

    .year-card {
        width: 100%;
        margin-top: 12px !important;
        padding: 13px 16px;
        border: 1px solid #e2ebe6;
        box-shadow: none;
    }

    .year-card .icon-box {
        font-size: 23px;
    }

    .content-card > div:not(:first-child) {
        margin-top: 36px !important;
    }

    .vision-card {
        padding: 18px 15px;
        border: 1px solid #e2ebe6;
        box-shadow: none;
    }

    .stat-card,
    .population-card {
        min-height: auto;
        padding: 18px;
    }

    .border-start {
        border-left: 0 !important;
    }
}
