.home-section-card {
    border-radius: 1rem;
}

.person-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--fraction-card-bg, var(--bs-card-bg, var(--bs-body-bg)));
    box-shadow: 0 1.25rem 2.25rem rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.75rem 3rem rgba(15, 23, 42, 0.12);
}

.person-card-photo {
    position: relative;
    inline-size: 100%;
    aspect-ratio: 1 / 1;
    background-color: rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.person-card-photo img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.person-card:hover .person-card-photo img {
    transform: scale(1.02);
}

.person-card-body {
    padding: 1rem 1rem 2rem 1rem;
    background-color: var(--fraction-info-bg, rgba(248, 250, 252, 0.9));
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    flex: 1 1 auto;
    border-block-start: 1px solid rgba(15, 23, 42, 0.08);
}

.person-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.person-card-role,
.person-card-quote {
    margin: 0;
    color: var(--bs-body-color);
    font-size: 0.95rem;
}

.person-card-quote {
    font-style: italic;
}

.person-card-footer {
    margin-top: 1rem;
}

.person-card-action {
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    font-size: 0.85rem;
}


.document-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background-color: var(--bs-body-bg);
    padding: 1.5rem;
    box-shadow: 0 1.25rem 2.25rem rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-summary-card {
    display: grid;
    grid-template-rows: 180px auto;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: var(--bs-card-bg, var(--bs-body-bg));
    box-shadow: 0 1.25rem 2.25rem rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.75rem 3rem rgba(15, 23, 42, 0.12);
}

.news-summary-thumb {
    overflow: hidden;
    background: var(--bs-secondary-bg);
}

.news-summary-thumb img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-summary-card:hover .news-summary-thumb img {
    transform: scale(1.05);
}

.news-summary-content {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-heading-color);
}

.news-summary-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.produk-hukum-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--bs-card-bg, var(--bs-body-bg));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1.25rem 2.25rem rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.produk-hukum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.75rem 3rem rgba(15, 23, 42, 0.14);
}

.produk-hukum-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.18);
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.produk-hukum-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-heading-color);
}

.produk-hukum-meta {
    font-size: 0.85rem;
}

.produk-hukum-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.produk-hukum-card .btn {
    min-inline-size: 96px;
}

.empty-state-card {
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(148, 163, 184, 0.08);
}

.produk-hukum-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 820px;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.04);
}

.produk-hukum-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.produk-hukum-item:last-child {
    border-bottom: 0;
}

.produk-hukum-item-body {
    flex: 1 1 auto;
}

.produk-hukum-link {
    display: block;
    color: var(--bs-heading-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.produk-hukum-link:hover {
    color: var(--bs-primary);
}

.produk-hukum-date {
    flex-shrink: 0;
    min-width: 92px;
    text-align: right;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12);
}

.swiper-anggota {
    block-size: 540px !important;
}

.swiper-pagination-anggota {
    bottom: 1px !important;
}

.swiper-nav-btn {
    inline-size: 40px;
    block-size: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.swiper-nav-btn i {
    font-size: 1.1rem;
}

.produk-hukum-meta {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
}

.gallery-slider {
    block-size: 330px !important;
}

.gallery-slider .swiper-slide {
    height: auto;
}

.gallery-slider-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background-color: rgba(15, 23, 42, 0.04);
}

.gallery-slider-card img {
    display: block;
    inline-size: 100%;
    block-size: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-slider-card:hover img {
    transform: scale(1.05);
}

.web-link-item {
    border-radius: 0.85rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.web-link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12);
}

.web-link-item i {
    font-size: 1.25rem;
}

@media (min-width: 768px) {}

.web-link-icon {
    inline-size: 42px;
    block-size: 42px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.web-link-icon img {
    inline-size: 24px;
    block-size: 24px;
    object-fit: contain;
}

.fraction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background-color: var(--fraction-badge-bg, rgba(15, 23, 42, 0.1));
    color: var(--fraction-text, var(--bs-body-color));
    transition: transform 0.2s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.15);
}

.fraction-badge:hover {
    transform: translateY(-2px);
}

.person-card-photo .fraction-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: auto;
}

.person-card:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 4px;
}

.member-detail-modal .modal-dialog {
    max-width: 900px;
}

.member-detail-modal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.member-detail-modal .modal-header {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.5rem 2rem;
    background: var(--bs-body-bg);
    border-radius: 1rem 1rem 0 0;
}

.member-detail-modal .modal-body {
    padding: 2rem;
    max-height: 75vh;
    overflow-y: auto;
}

.member-detail-header {
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bs-primary);
}

.member-detail-photo {
    flex-shrink: 0;
}

.member-detail-photo img {
    width: 180px;
    height: 180px;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.member-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    transition: all 0.2s ease;
}

.member-badge:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-color: var(--bs-primary);
}

.member-badge i {
    font-size: 0.75rem;
}

.member-detail-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 0.5rem;
}

.member-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.member-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.member-detail-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.member-detail-meta-item i {
    color: var(--bs-primary);
    width: 20px;
    text-align: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.member-detail-meta-item .meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
}

.member-detail-meta-item .meta-value {
    font-size: 0.9rem;
    color: var(--bs-body-color);
    font-weight: 500;
}

.member-detail-section {
    margin-bottom: 2rem;
}

.member-detail-section:last-child {
    margin-bottom: 0;
}

.member-detail-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bs-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-detail-section-title i {
    color: var(--bs-primary);
    font-size: 1rem;
}

.experience-list,
.employment-list,
.position-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-item,
.employment-item {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    transition: all 0.2s ease;
}

.experience-item:hover,
.employment-item:hover {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-primary);
    transform: translateX(4px);
}

.experience-item-header,
.employment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.experience-item-title,
.employment-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-heading-color);
}

.experience-item-subtitle,
.employment-item-subtitle {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
}

.experience-item-period,
.employment-item-period {
    font-size: 0.75rem;
    color: var(--bs-heading-color);
    background: var(--bs-primary-bg-subtle);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.experience-item-description,
.employment-item-description {
    font-size: 0.875rem;
    color: var(--bs-body-color);
    line-height: 1.6;
    margin-top: 0.75rem;
}

.position-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.position-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.position-item:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-color: var(--bs-primary);
}

.position-item i {
    font-size: 0.75rem;
}

.member-detail-motto {
    padding: 1.5rem;
    background: var(--bs-light-bg-subtle);
    border-left: 4px solid var(--bs-primary);
    border-radius: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bs-body-color);
    font-style: italic;
    text-align: center;
}

@media (max-width: 575.98px) {
    .member-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-detail-photo img {
        width: 150px;
        height: 150px;
    }

    .member-detail-section-title {
        justify-content: center;
    }

    .news-summary-card {
        grid-template-rows: 160px auto;
    }
}

/* Dark mode adjustments */
[data-bs-theme='dark'] .person-card {
    box-shadow: 0 0.25rem 2rem rgba(2, 6, 23, 0.55);
    background-color: var(--fraction-card-bg, var(--bs-card-bg, rgba(15, 23, 42, 0.75)));
}

[data-bs-theme='dark'] .news-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background-color: var(--bs-card-bg, rgba(30, 41, 59, 0.7));
    box-shadow: 0 1.25rem 2.25rem rgba(2, 6, 23, 0.55);
}

[data-bs-theme='dark'] .news-summary-thumb {
    background: rgba(15, 23, 42, 0.6);
}

[data-bs-theme='dark'] .produk-hukum-card {
    background: var(--bs-card-bg, rgba(30, 41, 59, 0.7));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 1.25rem 2.25rem rgba(2, 6, 23, 0.55);
}

[data-bs-theme='dark'] .produk-hukum-list {
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.45);
}

[data-bs-theme='dark'] .produk-hukum-chip {
    background: rgba(250, 204, 21, 0.25);
    color: rgba(253, 224, 71, 0.92);
}

[data-bs-theme='dark'] .produk-hukum-item {
    border-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme='dark'] .produk-hukum-link {
    color: rgba(226, 232, 240, 0.9);
}

[data-bs-theme='dark'] .produk-hukum-link:hover {
    color: rgba(253, 224, 71, 0.95);
}

[data-bs-theme='dark'] .produk-hukum-date {
    color: rgba(226, 232, 240, 0.6);
}

[data-bs-theme='dark'] .person-card-body {
    background-color: var(--fraction-info-bg, rgba(148, 163, 184, 0.08));
    border-block-start: 1px solid rgba(148, 163, 184, 0.18);
}

[data-bs-theme='dark'] .fraction-badge {
    box-shadow: 0 1rem 2.2rem rgba(148, 163, 184, 0.35);
}

[data-bs-theme='dark'] .person-card-footer .small {
    color: rgba(226, 232, 240, 0.7) !important;
}

[data-bs-theme='dark'] .member-detail-modal .modal-content {
    background-color: var(--bs-body-bg);
    box-shadow: 0 1.75rem 3.25rem rgba(2, 6, 23, 0.65);
}

[data-bs-theme='dark'] .member-detail-modal .modal-body {
    background-color: transparent;
}

[data-bs-theme='dark'] .member-detail-meta-item .meta-label {
    color: rgba(226, 232, 240, 0.55);
}

[data-bs-theme='dark'] .member-detail-meta-item .meta-value {
    color: rgba(226, 232, 240, 0.86);
}

[data-bs-theme='dark'] .member-detail-motto {
    background: rgba(148, 163, 184, 0.1);
    color: rgba(226, 232, 240, 0.85);
}

[data-bs-theme='dark'] .empty-state-card {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.55);
}

[data-bs-theme='dark'] .person-card:hover {
    box-shadow: 0 0.65rem 2rem rgba(2, 6, 23, 0.7);
}

/* widget astra aksebilitas */
.astral-widget,
[data-astral-widget] {
    right: auto !important;
    left: 16px !important;
    bottom: 16px !important;
}
