:root {
    --sekda-hero-bg: linear-gradient(135deg, #f4f7fb 0%, #eef3f9 100%);
    --sekda-card-bg: #ffffff;
    --sekda-text: #0f172a;
    --sekda-muted: #5b6b82;
    --sekda-accent: #1f7a8c;
    --sekda-line: rgba(15, 23, 42, 0.14);
    --sekda-chip: #eef2f7;
    --sekda-border: rgba(15, 23, 42, 0.08);
}

html[data-bs-theme='dark'] {
    --sekda-hero-bg: linear-gradient(135deg, #0f172a 0%, #111f33 100%);
    --sekda-card-bg: #131c26;
    --sekda-text: #e6eef5;
    --sekda-muted: #a7b6c8;
    --sekda-accent: #7fe3e6;
    --sekda-line: rgba(230, 238, 245, 0.16);
    --sekda-chip: rgba(230, 238, 245, 0.08);
    --sekda-border: rgba(230, 238, 245, 0.12);
}

.profil-sekda-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 0.3rem;
}

.profil-sekda-hero-card {
    background: var(--sekda-card-bg);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--sekda-border);
}

.profil-sekda-hero-photo {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(31, 122, 140, 0.08);
    border: 1px solid var(--sekda-border);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profil-sekda-hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profil-sekda-hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(31, 122, 140, 0.12);
    color: var(--sekda-accent);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profil-sekda-hero-name {
    font-family: var(--front-font-heading);
    font-size: 2.2rem;
    margin: 0;
    color: var(--sekda-text);
}

.profil-sekda-hero-role {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sekda-accent);
}

.profil-sekda-hero-period {
    margin: 0;
    font-size: 1rem;
    color: var(--sekda-muted);
}

.profil-sekda-hero-tagline {
    margin: 0;
    font-size: 1rem;
    color: var(--sekda-text);
    opacity: 0.9;
    font-style: italic;
}

.profil-sekda-hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.profil-sekda-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--sekda-chip);
    border: 1px solid var(--sekda-border);
    font-size: 0.9rem;
}

.profil-sekda-contact-chip-label {
    color: var(--sekda-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.profil-sekda-contact-chip-value {
    color: var(--sekda-text);
    font-weight: 600;
}

.profil-sekda-hero-inner {
    position: relative;
    z-index: 1;
}

.profil-sekda-card {
    background: var(--sekda-card-bg);
    border-radius: 10px;
    border: 1px solid var(--sekda-border);
    padding: 1.75rem;
}

.profil-sekda-profile-card {
    /* display: flex; */
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.profil-sekda-profile-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-bottom: 12px;
}

.profil-sekda-photo-wrap {
    width: 100%;
    max-width: 320px;
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(31, 122, 140, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.profil-sekda-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profil-sekda-photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--front-font-heading);
    font-size: 2.8rem;
    color: var(--sekda-accent);
    background: linear-gradient(135deg, rgba(31, 122, 140, 0.18), rgba(244, 180, 26, 0.12));
}

.profil-sekda-profile-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
}

.profil-sekda-profile-main::before {
    content: 'SEKRETARIS DAERAH';
    align-self: center;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(31, 122, 140, 0.12);
    color: var(--sekda-accent);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.profil-sekda-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 162, 166, 0.12);
    color: var(--front-primary);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profil-sekda-name {
    font-family: var(--front-font-heading);
    font-size: 2.1rem;
    margin: 0;
    color: var(--sekda-text);
}

.profil-sekda-position {
    font-weight: 600;
    color: var(--sekda-accent);
    margin: 0;
}

.profil-sekda-unit {
    color: var(--front-muted);
    margin: 0;
}

.profil-sekda-meta-table {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 10px;
    border: 1px solid var(--sekda-border);
    overflow: hidden;
    background: var(--sekda-card-bg);
    margin-top: 0.35rem;
}

.profil-sekda-meta-row {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sekda-border);
    background: var(--sekda-chip);
}

.profil-sekda-meta-row:last-child {
    border-bottom: 0;
}

.profil-sekda-meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sekda-muted);
}

.profil-sekda-meta-value {
    font-weight: 600;
    color: var(--sekda-text);
    font-size: 0.98rem;
}

.profil-sekda-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.profil-sekda-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--sekda-chip);
    color: var(--sekda-text);
    font-size: 0.95rem;
    border: 1px solid var(--sekda-border);
}

.profil-sekda-info-pill i {
    color: var(--sekda-accent);
}

.profil-sekda-unit-block {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--sekda-line);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.profil-sekda-unit-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sekda-muted);
    font-weight: 600;
}

.profil-sekda-contact-block {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profil-sekda-block-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--front-muted);
    font-weight: 600;
}

.profil-sekda-unit-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profil-sekda-unit-text {
    font-weight: 600;
    color: var(--front-deep);
}

.profil-sekda-unit-subtext {
    color: var(--front-muted);
    font-size: 0.9rem;
}

.profil-sekda-contact-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profil-sekda-contact-subtitle {
    color: var(--front-muted);
    font-size: 0.9rem;
}

.profil-sekda-card-title {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--front-deep);
}

.profil-sekda-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.profil-sekda-contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.profil-sekda-contact-row {
    display: grid;
    grid-template-columns: minmax(80px, 110px) 12px minmax(0, 1fr);
    gap: 0.4rem;
    align-items: center;
    font-size: 0.95rem;
}

.profil-sekda-contact-key {
    font-weight: 600;
    color: var(--front-deep);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.profil-sekda-contact-sep {
    color: var(--front-muted);
}

.profil-sekda-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(31, 162, 166, 0.12);
    color: var(--front-primary);
    font-size: 0.95rem;
}

.profil-sekda-contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profil-sekda-contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--front-muted);
}

.profil-sekda-contact-value {
    font-weight: 600;
    color: var(--front-deep);
    text-decoration: none;
}

.profil-sekda-contact-value:hover {
    color: var(--front-primary);
}

.profil-sekda-side-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.profil-sekda-side-card {
    flex: 1;
}

.profil-sekda-timeline {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.profil-sekda-timeline-item {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
}

.profil-sekda-timeline-title {
    font-weight: 600;
    color: var(--front-deep);
    margin-bottom: 0.25rem;
}

.profil-sekda-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--front-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.profil-sekda-section {
    padding: 0 0 1rem;
}

.profil-sekda-section-alt {
    background: #f5fbff;
}

.profil-sekda-section-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.profil-sekda-section-title {
    font-family: var(--front-font-heading);
    font-size: 1.6rem;
    margin: 0 0 0.35rem;
}

.profil-sekda-section-subtitle {
    color: var(--front-muted);
    margin: 0;
}

.profil-sekda-teks-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 0 auto;
}

.profil-sekda-teks-card {
    position: relative;
    overflow: hidden;
}

.profil-sekda-teks-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--front-primary), var(--front-secondary));
}

.profil-sekda-teks-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.profil-sekda-teks-badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(31, 162, 166, 0.12);
    color: var(--front-primary);
    font-size: 0.95rem;
}

.profil-sekda-text-body {
    color: var(--front-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.profil-sekda-doc-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 0 auto;
}

.profil-sekda-doc-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.profil-sekda-doc-body {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.profil-sekda-doc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(244, 180, 26, 0.18);
    color: var(--front-secondary);
    font-size: 1.1rem;
}

.profil-sekda-doc-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profil-sekda-doc-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--front-muted);
}

.profil-sekda-doc-title {
    font-weight: 600;
    color: var(--sekda-text);
    margin: 0;
    font-size: 1rem;
}

.profil-sekda-doc-actions {
    margin-top: auto;
}

.profil-sekda-doc-actions .btn {
    border-radius: 999px;
    padding: 0.45rem 1rem;
}

.profil-sekda-teks-card,
.profil-sekda-doc-card,
.profil-sekda-anggota-card {
    border-radius: 10px;
}

.profil-sekda-teks-head {
    margin-bottom: 0.85rem;
}

.profil-sekda-text-body {
    color: var(--sekda-muted);
    font-size: 0.98rem;
}

.profil-sekda-section-title {
    color: var(--sekda-text);
}

.profil-sekda-section-subtitle {
    color: var(--sekda-muted);
}

.profil-sekda-anggota-card .table thead th {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: var(--sekda-muted);
    background: rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid var(--sekda-border);
}

.profil-sekda-anggota-card .table tbody td {
    vertical-align: middle;
    color: var(--sekda-text);
    font-size: 0.95rem;
}

.profil-sekda-anggota-card .table tbody tr {
    transition: background-color 0.2s ease;
}

.profil-sekda-anggota-card .table tbody tr:hover {
    background: rgba(31, 122, 140, 0.08);
}

.profil-sekda-empty {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--front-muted);
    font-size: 0.9rem;
}

html[data-bs-theme='dark'] .profil-sekda-card {
    background: var(--sekda-card-bg);
    border-color: var(--sekda-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme='dark'] .profil-sekda-hero::before,
html[data-bs-theme='dark'] .profil-sekda-hero::after {
    opacity: 0.12;
}

html[data-bs-theme='dark'] .profil-sekda-photo-wrap {
    background: rgba(127, 227, 230, 0.08);
    box-shadow: inset 0 0 0 1px rgba(230, 238, 245, 0.12);
}

html[data-bs-theme='dark'] .profil-sekda-hero-card {
    border-color: var(--sekda-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

html[data-bs-theme='dark'] .profil-sekda-hero-photo {
    border-color: var(--sekda-border);
    background: rgba(127, 227, 230, 0.08);
}

html[data-bs-theme='dark'] .profil-sekda-hero-badge {
    background: rgba(127, 227, 230, 0.18);
    color: var(--sekda-accent);
}

html[data-bs-theme='dark'] .profil-sekda-badge {
    background: rgba(31, 162, 166, 0.25);
    color: #7fe3e6;
}

html[data-bs-theme='dark'] .profil-sekda-profile-main::before {
    background: rgba(127, 227, 230, 0.18);
    color: var(--sekda-accent);
}

html[data-bs-theme='dark'] .profil-sekda-name,
html[data-bs-theme='dark'] .profil-sekda-meta-value,
html[data-bs-theme='dark'] .profil-sekda-unit-text,
html[data-bs-theme='dark'] .profil-sekda-doc-title,
html[data-bs-theme='dark'] .profil-sekda-timeline-title,
html[data-bs-theme='dark'] .profil-sekda-card-title {
    color: #e6eef5;
}

html[data-bs-theme='dark'] .profil-sekda-position {
    color: #7fe3e6;
}

html[data-bs-theme='dark'] .profil-sekda-unit,
html[data-bs-theme='dark'] .profil-sekda-meta-label,
html[data-bs-theme='dark'] .profil-sekda-block-label,
html[data-bs-theme='dark'] .profil-sekda-section-subtitle,
html[data-bs-theme='dark'] .profil-sekda-contact-label,
html[data-bs-theme='dark'] .profil-sekda-doc-type,
html[data-bs-theme='dark'] .profil-sekda-timeline-meta {
    color: #a7b6c8;
}

html[data-bs-theme='dark'] .profil-sekda-meta-table,
html[data-bs-theme='dark'] .profil-sekda-timeline-item,
html[data-bs-theme='dark'] .profil-sekda-empty {
    background: rgba(230, 238, 245, 0.06);
    border-color: rgba(230, 238, 245, 0.12);
}

html[data-bs-theme='dark'] .profil-sekda-meta-row {
    background: rgba(230, 238, 245, 0.08);
}

html[data-bs-theme='dark'] .profil-sekda-info-pill {
    background: var(--sekda-chip);
    border-color: var(--sekda-border);
}

html[data-bs-theme='dark'] .profil-sekda-unit-block {
    border-top-color: rgba(230, 238, 245, 0.2);
}

html[data-bs-theme='dark'] .profil-sekda-anggota-card .table thead th {
    background: rgba(230, 238, 245, 0.06);
    border-color: rgba(230, 238, 245, 0.12);
}

html[data-bs-theme='dark'] .profil-sekda-anggota-card .table tbody tr:hover {
    background: rgba(127, 227, 230, 0.12);
}

html[data-bs-theme='dark'] .profil-sekda-contact-chip,
html[data-bs-theme='dark'] .profil-sekda-info-pill {
    background: var(--sekda-chip);
    border-color: var(--sekda-border);
}

html[data-bs-theme='dark'] .profil-sekda-meta-row,
html[data-bs-theme='dark'] .profil-sekda-contact-block {
    border-color: rgba(230, 238, 245, 0.12);
}

html[data-bs-theme='dark'] .profil-sekda-contact-value {
    color: #e6eef5;
}

html[data-bs-theme='dark'] .profil-sekda-contact-icon,
html[data-bs-theme='dark'] .profil-sekda-teks-badge {
    background: rgba(31, 162, 166, 0.22);
    color: #7fe3e6;
}

html[data-bs-theme='dark'] .profil-sekda-doc-icon {
    background: rgba(244, 180, 26, 0.18);
    color: #f7c969;
}

@media (max-width: 991.98px) {
    .profil-sekda-hero {
        padding: 2rem 0 2.5rem;
    }

    .profil-sekda-hero-card {
        padding: 2rem;
    }

    .profil-sekda-photo-wrap {
        height: 320px;
    }

    .profil-sekda-hero-photo {
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .profil-sekda-hero-name {
        font-size: 1.7rem;
    }

    .profil-sekda-card {
        padding: 1.4rem;
    }

    .profil-sekda-hero-card {
        padding: 1.6rem;
    }

    .profil-sekda-photo-wrap {
        height: 260px;
    }

    .profil-sekda-hero-photo {
        min-height: 260px;
    }

    .profil-sekda-meta-row {
        grid-template-columns: 1fr;
    }

    .profil-sekda-contact-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .profil-sekda-contact-sep {
        display: none;
    }

    .profil-sekda-anggota-card .table thead th,
    .profil-sekda-anggota-card .table tbody td {
        font-size: 0.9rem;
        padding: 0.65rem 0.75rem;
    }
}
