/* Navbar Modern */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Logo Brand Styles */
.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: transform 0.2s ease;
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

.brand-logo-footer {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link-custom {
    color: var(--pd-slate-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--pd-radius-sm);
    transition: all 0.2s;
}

.nav-link-custom:hover {
    color: var(--pd-maroon);
    background-color: var(--pd-maroon-light);
}

/* 1. Hero Section & Unified Elevated Stats Card (Mobbin Pattern) */
.hero-section {
    padding: 4.25rem 0 3.5rem;
    background: radial-gradient(circle at 80% 20%, rgba(139, 30, 30, 0.06) 0%, transparent 60%);
}

.hero-title {
    font-size: 2.65rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.15rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--pd-slate-600);
    margin-bottom: 1.85rem;
    max-width: 620px;
}

.hero-unified-card {
    background: var(--pd-white);
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(139, 30, 30, 0.04);
    overflow: hidden;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fffbfb 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-emblem-squircle {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 16px rgba(139, 30, 30, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.hero-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

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

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-stat-col {
    padding: 1.15rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(226, 232, 240, 0.7);
}

.hero-stat-col:last-child {
    border-right: none;
}

.hero-stat-num {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--pd-maroon);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pd-slate-900);
    margin-top: 0.3rem;
}

.hero-stat-sub {
    font-size: 0.72rem;
    color: var(--pd-slate-600);
}

.hero-intl-strip {
    padding: 1rem 1.35rem;
    background: #fffbeb;
    border-left: 4px solid var(--pd-gold);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.hero-intl-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--pd-gold-light);
    color: #92400E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Tombol Aksi */
.btn-pd-primary {
    background-color: var(--pd-maroon);
    color: var(--pd-white);
    font-weight: 600;
    padding: 0.7rem 1.45rem;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(139, 30, 30, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pd-primary:hover {
    background-color: var(--pd-maroon-dark);
    color: var(--pd-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 30, 30, 0.35);
}

.btn-pd-outline {
    background-color: var(--pd-white);
    color: var(--pd-slate-800);
    border: 1px solid #CBD5E1;
    font-weight: 600;
    padding: 0.7rem 1.45rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pd-outline:hover {
    background-color: var(--pd-maroon-light);
    border-color: var(--pd-maroon);
    color: var(--pd-maroon);
}

/* Section Card Header */
.section-badge {
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--pd-maroon);
    margin-bottom: 0.45rem;
    display: inline-block;
}

.section-title {
    font-size: 1.95rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

/* 2. Sejarah & Milestone Strip */
.sejarah-tokoh-card {
    background: var(--pd-slate-50);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.5rem;
}

.milestone-card {
    background: var(--pd-white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--pd-shadow-subtle);
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.milestone-item {
    background: var(--pd-slate-50);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 0.75rem;
}

.milestone-year {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--pd-maroon);
    font-variant-numeric: tabular-nums;
    display: block;
}

.milestone-desc {
    font-size: 0.75rem;
    color: var(--pd-slate-600);
    line-height: 1.35;
}

/* 3. Hall of Fame Cards (Mobbin Featured Profile Pattern) */
.hof-card {
    background: var(--pd-white);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 3px solid var(--pd-maroon);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--pd-shadow-subtle);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hof-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pd-shadow-elevated);
}

.hof-icon-squircle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pd-gold-light);
    color: #92400E;
    border: 1px solid rgba(217, 119, 6, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 4. Segmented Control & Live Search Pengurus */
.pengurus-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.segmented-nav-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
    max-width: 100%;
}

.segmented-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.segmented-nav {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.segmented-btn {
    padding: 0.42rem 0.85rem;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--pd-slate-600);
    font-size: 0.81rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
    cursor: pointer;
}

.segmented-btn:hover {
    color: #0f172a;
}

.segmented-btn.active {
    background: var(--pd-white);
    color: var(--pd-maroon);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.segmented-count {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.07);
    color: var(--pd-slate-600);
    font-variant-numeric: tabular-nums;
}

.segmented-btn.active .segmented-count {
    background: var(--pd-maroon-light);
    color: var(--pd-maroon);
}

.pengurus-search-box {
    width: 100%;
    max-width: 310px;
}

/* Card Pengurus */
.pengurus-card {
    background: var(--pd-white);
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.pengurus-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pd-shadow-elevated);
    border-color: rgba(139, 30, 30, 0.2);
}

.pengurus-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--pd-maroon-light);
    color: var(--pd-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    border: 1px solid rgba(139, 30, 30, 0.15);
    flex-shrink: 0;
}

.pengurus-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--pd-slate-900);
    margin-bottom: 0.15rem;
}

.pengurus-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pd-maroon);
}

.pengurus-sub {
    font-size: 0.78rem;
    color: var(--pd-slate-600);
    margin-top: 0.35rem;
}

/* 5. Card Wilayah Koordinasi & Interactive City Pills */
.wilayah-card {
    background: var(--pd-white);
    border-radius: var(--pd-radius-md);
    border-left: 4px solid var(--pd-maroon);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.4rem;
    height: 100%;
    box-shadow: var(--pd-shadow-subtle);
    transition: all 0.2s ease;
}

.wilayah-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pd-shadow-elevated);
}

.wilayah-cta-card {
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.badge-direktori-solid {
    background: #dc2626;
    color: #ffffff;
    border: none;
}

.badge-publik-soft {
    font-size: 0.72rem;
}

.city-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--pd-slate-100);
    color: var(--pd-slate-800);
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.city-pill:hover {
    background: var(--pd-maroon-light);
    color: var(--pd-maroon);
    border-color: rgba(139, 30, 30, 0.25);
    transform: translateY(-1px);
}

/* 6. Contact Secretariat Card & Actionable Links */
.contact-container {
    background: linear-gradient(145deg, #FFFFFF, #FFFBFB);
    border: 1px solid rgba(139, 30, 30, 0.15);
    border-radius: var(--pd-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--pd-shadow-elevated);
}

.contact-action-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--pd-white);
    border: 1px solid rgba(226, 232, 240, 0.85);
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-action-item:hover {
    border-color: rgba(139, 30, 30, 0.3);
    background: var(--pd-maroon-light);
    transform: translateX(3px);
}

.contact-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--pd-maroon-light);
    color: var(--pd-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-action-item:hover .contact-icon-box {
    background: var(--pd-maroon);
    color: var(--pd-white);
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .milestone-grid {
        grid-template-columns: 1fr;
    }
    .pengurus-search-box {
        max-width: 100%;
    }
}
