/* ========================================
   PROFILE PAGE - ULTRA AESTHETIC DESIGN
   Modern, Clean, dengan Animasi Smooth
   ======================================== */

:root {
    --primary-color: #047857;
    --primary-dark: #065f46;
    --primary-light: #10b981;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   HERO SECTION
   ======================================== */

.profile-hero {
    position: relative;
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    min-height: 500px;
    padding: 5rem 0 8rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 95, 70, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 500;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-motto {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    color: #ffffff;
    font-style: italic;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

.hero-motto i {
    font-size: 1.5rem;
    opacity: 0.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-item i {
    font-size: 1.25rem;
    opacity: 0.8;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-wave path {
    fill: var(--bg-light);
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.profile-content {
    padding: 3rem 0 5rem;
    background: var(--bg-light);
    position: relative;
}

/* ========================================
   TABS NAVIGATION
   ======================================== */

.profile-tabs-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    position: sticky;
    top: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.8s ease-out;
}

.profile-tabs {
    border: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.profile-tabs::-webkit-scrollbar {
    height: 4px;
}

.profile-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.profile-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 2px;
}

.profile-tabs .nav-item {
    flex-shrink: 0;
}

.profile-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.profile-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.profile-tabs .nav-link:hover::before {
    left: 100%;
}

.profile-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(4, 120, 87, 0.05);
    transform: translateY(-2px);
}

.profile-tabs .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
    transform: translateY(-2px);
}

.profile-tabs .nav-link i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.profile-tabs .nav-link.active i {
    transform: scale(1.1);
}

/* ========================================
   TAB CONTENT
   ======================================== */

.profile-tab-content {
    animation: fadeIn 0.5s ease-out;
}

.tab-pane {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   SECTION HEADER
   ======================================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: slideInLeft 0.8s ease-out;
}

.section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.2);
}

.section-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

/* ========================================
   TIMELINE
   ======================================== */

.timeline {
    position: relative;
    padding-left: 3rem;
    padding-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(7) {
    animation-delay: 0.7s;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 4px var(--primary-color), 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px var(--primary-color), 0 6px 12px rgba(0, 0, 0, 0.2);
}

.timeline-year {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(4, 120, 87, 0.2);
    letter-spacing: 0.5px;
}

.timeline-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-xl);
    transform: translateX(8px);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.timeline-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   VISION MISSION CARDS
   ======================================== */

.vision-mission-container {
    display: grid;
    gap: 2rem;
}

.vm-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.2);
}

.vm-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.vm-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.vm-content {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.vm-content p {
    margin-bottom: 1.5rem;
}

.vm-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.vm-content ol {
    padding-left: 1.5rem;
    margin: 0;
}

.vm-content li {
    margin-bottom: 1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 0.5rem;
}

.vm-content li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   VALUES GRID
   ======================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.value-card:nth-child(1) {
    animation-delay: 0.1s;
}

.value-card:nth-child(2) {
    animation-delay: 0.2s;
}

.value-card:nth-child(3) {
    animation-delay: 0.3s;
}

.value-card:nth-child(4) {
    animation-delay: 0.4s;
}

.value-card:nth-child(5) {
    animation-delay: 0.5s;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   ACHIEVEMENTS TIMELINE
   ======================================== */

.achievements-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.achievement-year-group {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.achievement-year-group:nth-child(1) {
    animation-delay: 0.1s;
}

.achievement-year-group:nth-child(2) {
    animation-delay: 0.2s;
}

.achievement-year-group:nth-child(3) {
    animation-delay: 0.3s;
}

.achievement-year-group:nth-child(4) {
    animation-delay: 0.4s;
}

.achievement-year-group:nth-child(5) {
    animation-delay: 0.5s;
}

.achievement-year-group:nth-child(6) {
    animation-delay: 0.6s;
}

.achievement-year-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.year-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.3);
    letter-spacing: 1px;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
}

.achievement-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.achievement-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.achievement-category {
    display: inline-block;
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-date, .achievement-ref {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.achievement-date i, .achievement-ref i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* ========================================
   ORGANIZATION CHART — REDESIGNED v3.0
   ======================================== */

.organization-chart {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Clickable card base ── */
.org-clickable {
    cursor: pointer;
    user-select: none;
}

.org-clickable:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* Hint "Lihat Biodata" */
.org-click-hint {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.org-clickable:hover .org-click-hint {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.org-click-hint-sm {
    font-size: 0.75rem;
    color: rgba(4, 120, 87, 0.8);
    background: rgba(4, 120, 87, 0.08);
    margin-top: 0.5rem;
}

.org-clickable:hover .org-click-hint-sm {
    background: rgba(4, 120, 87, 0.15);
    color: var(--primary-color);
}

.org-click-hint-xs {
    font-size: 0.7rem;
    color: var(--primary-color);
    background: rgba(4, 120, 87, 0.06);
    margin-top: 0.5rem;
    padding: 0.25rem 0.6rem;
}

.org-clickable:hover .org-click-hint-xs {
    background: rgba(4, 120, 87, 0.12);
}

/* ── Photo sizes ── */
/* XL: Direktur */
.org-photo-xl {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

/* LG: Wakil Direktur */
.org-photo-lg {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* MD: Kepala Bidang/Bagian */
.org-photo-md {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.2);
    flex-shrink: 0;
}

.org-photo-xl img,
.org-photo-lg img,
.org-photo-md img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Level 1: Direktur ── */
.org-level-1 {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.org-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.org-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.director-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    min-width: 320px;
    max-width: 400px;
    padding: 2.5rem 2rem;
}

.org-position {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
}

/* ── Additional Unit ── */
.org-level-additional {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.additional-card {
    background: rgba(4, 120, 87, 0.05);
    border: 2px dashed var(--primary-color);
    padding: 1.25rem 2rem;
    max-width: 600px;
}

.additional-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* ── Level 2: Wakil Direktur ── */
.org-level-2 {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.wadir-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 2rem 1.75rem;
    height: 100%;
}

/* ── Level 3 & 4: Bidang ── */
.org-level-3-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.bidang-group {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.bidang-group:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.bidang-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem;
}

.bidang-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bidang-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.org-position-small {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    text-align: center;
}

.org-name-small {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* ── Sub Bagian ── */
.subbagian-container {
    padding: 1.5rem;
    background: #f8f9fa;
}

.subbagian-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.subbagian-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Sub card — foto ditampilkan penuh */
.sub-card {
    background: var(--bg-white);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition);
    position: relative;
}

.sub-card.org-clickable:hover {
    border-color: var(--primary-color);
    background: #f9fafb;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

/* Foto sub bagian — selalu tampil */
.sub-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.15);
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.sub-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sub-position {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.sub-name {
    font-size: 0.825rem;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.sub-name i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

/* ========================================
   BIO MODAL — v3.0
   ======================================== */

.bio-modal-content {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Header gradient */
.bio-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 2rem 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.bio-modal-photo-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.bio-modal-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-modal-title-wrap {
    flex: 1;
    min-width: 0;
}

.bio-modal-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    word-break: break-word;
}

.bio-modal-pos {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.bio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.8;
}

.bio-modal-close:hover {
    opacity: 1;
}

/* Body */
.bio-modal-body {
    padding: 1.5rem 2rem;
    background: #ffffff;
}

.bio-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.bio-row:last-child {
    border-bottom: none;
}

.bio-label {
    flex-shrink: 0;
    width: 185px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bio-label i {
    color: var(--primary-color);
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.bio-value {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
    line-height: 1.5;
}

/* Footer */
.bio-modal-footer {
    background: #f9fafb;
    padding: 1rem 2rem;
    border-top: 1px solid #f3f4f6;
    justify-content: flex-end;
}

/* ========================================
   OBJECTIVES CARDS
   ======================================== */

.objectives-container {
    display: grid;
    gap: 2rem;
}

.objective-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.objective-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.objective-header i {
    font-size: 2rem;
}

.objective-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.objective-content {
    padding: 2.5rem;
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.objective-content ol {
    padding-left: 1.5rem;
    margin: 0;
}

.objective-content li {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    position: relative;
    padding-left: 0.5rem;
}

.objective-content li::marker {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .org-level-3-4 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .profile-hero {
        min-height: 400px;
        padding: 4rem 0 6rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-motto {
        font-size: 1.1rem;
    }

    .hero-meta {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .timeline {
        padding-left: 2.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .org-photo-xl {
        width: 120px;
        height: 120px;
    }

    .org-photo-lg {
        width: 100px;
        height: 100px;
    }

    .org-photo-md {
        width: 85px;
        height: 85px;
    }

    .director-card {
        min-width: 280px;
    }

    .org-level-3-4 {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .bio-label {
        width: 160px;
    }
}

@media (max-width: 767.98px) {
    .profile-hero {
        min-height: 350px;
        padding: 3rem 0 5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-motto {
        font-size: 1rem;
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-tabs .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .profile-tabs .nav-link i {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .section-icon {
        width: 60px;
        height: 60px;
    }

    .section-icon i {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline::before {
        left: 0.75rem;
    }

    .timeline-item {
        padding-left: 1.25rem;
        padding-bottom: 2rem;
    }

    .timeline-item::before {
        left: -1.9rem;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.25rem;
    }

    .vm-card {
        padding: 2rem;
    }

    .vm-icon {
        width: 60px;
        height: 60px;
    }

    .vm-icon i {
        font-size: 2rem;
    }

    .vm-title {
        font-size: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 2rem;
    }

    .value-icon {
        font-size: 3rem;
    }

    .objective-header {
        padding: 1.5rem;
    }

    .objective-header h3 {
        font-size: 1.25rem;
    }

    .objective-content {
        padding: 2rem;
    }

    .director-card {
        min-width: 100%;
        padding: 1.75rem;
    }

    .org-photo-xl {
        width: 110px;
        height: 110px;
    }

    .org-photo-lg {
        width: 90px;
        height: 90px;
    }

    .org-photo-md {
        width: 80px;
        height: 80px;
    }

    .org-position {
        font-size: 1rem;
    }

    .org-name {
        font-size: 0.875rem;
    }

    .org-position-small {
        font-size: 0.875rem;
    }

    .org-name-small {
        font-size: 0.8125rem;
    }

    .sub-photo {
        width: 60px;
        height: 60px;
    }

    .sub-position {
        font-size: 0.875rem;
    }

    .sub-name {
        font-size: 0.8125rem;
    }

    .org-level-3-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .subbagian-container {
        padding: 1rem;
    }

    /* Modal responsive */
    .bio-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.5rem 2rem;
    }

    .bio-modal-photo-wrap {
        width: 80px;
        height: 80px;
    }

    .bio-label {
        width: 140px;
        font-size: 0.8125rem;
    }

    .bio-value {
        font-size: 0.875rem;
    }

    .bio-modal-body {
        padding: 1.25rem 1.5rem;
    }

    .bio-row {
        gap: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .profile-tabs-container {
        padding: 0.375rem;
        margin-bottom: 2rem;
    }

    .profile-tabs .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 1rem;
    }

    .timeline-year {
        font-size: 0.8125rem;
        padding: 0.375rem 1rem;
    }

    .bio-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .bio-label {
        width: 100%;
    }

    .bio-value {
        padding-left: 1.5rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .profile-hero {
        background: #047857;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-wave {
        display: none;
    }

    .profile-tabs-container {
        position: static;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    .value-card, .timeline-content, .vm-card, .objective-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .org-clickable {
        cursor: default;
    }

    .org-click-hint {
        display: none;
    }
}
