:root {
    --profile-history-content-width: min(1120px, calc(100% - 32px));
    --profile-history-readable-width: 920px;
}

.profile-history-page-header.configurable-page-header {
    height: 220px;
    min-height: 220px;
}

.profile-history-page-header + .profile-history-section {
    padding: 0;
    background: #ffffff;
}

.profile-history-section + .profile-timeline-section {
    padding: 34px 0 36px;
    background: var(--site-secondary-soft, #f3f6fc);
}

.profile-history-section + .profile-timeline-section > .container {
    width: var(--profile-history-content-width);
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.profile-history-section + .profile-timeline-section .profile-section-heading {
    width: min(920px, 100%);
    margin: 0 auto 20px;
}

.profile-history-section + .profile-timeline-section .profile-section-title {
    margin-bottom: 0;
}

#berita-terkini > .container {
    width: var(--profile-history-content-width);
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.profile-timeline-section:has(+ #berita-terkini) {
    padding-bottom: 28px;
}

#berita-terkini {
    padding: 0 0 54px;
    background: var(--site-secondary-soft, #f3f6fc);
}

.profile-history-section > .container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.profile-history-section .profile-history-card {
    width: min(var(--profile-history-readable-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.profile-history-section .profile-history-card h2 {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 12px;
    font-size: clamp(28px, 3vw, 36px);
}

.profile-history-section .profile-history-card h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: var(--site-primary, #571113);
}

.profile-history-section .profile-history-text {
    max-width: none;
    color: var(--site-muted, #6b7280);
    font-size: 1rem;
    line-height: 1.85;
}

.profile-history-section .profile-history-text p {
    margin-bottom: 16px;
}

.profile-history-section .profile-history-text p:last-child {
    margin-bottom: 0;
}

.profile-history-section .profile-history-text h3 {
    margin: 22px 0 10px;
    color: var(--site-primary-dark, #3d0c0e);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
}

.profile-history-section .profile-history-text h3:first-child {
    margin-top: 0;
}

.profile-history-section .profile-history-text ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.profile-history-section .profile-history-text li {
    position: relative;
    padding-left: 24px;
}

.profile-history-section .profile-history-text li::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--site-primary, #571113);
    transform: translateY(-50%);
}

.profile-timeline-section .profile-timeline-modern {
    width: min(920px, 100%);
    max-width: none;
    margin: 0 auto;
    gap: 18px;
}

.profile-timeline-section .timeline-milestone {
    grid-template-columns: 92px 32px minmax(0, 1fr);
    column-gap: 18px;
    grid-template-areas: "year rail card";
}

.profile-timeline-section .timeline-rail {
    grid-area: rail;
    width: 32px;
}

.profile-timeline-section .timeline-year-wrap {
    grid-area: year;
    padding-top: 11px;
}

.profile-timeline-section .timeline-content-card {
    grid-area: card;
    min-height: 0;
    padding: 20px 24px;
    border-radius: 12px;
}

.profile-timeline-section .timeline-year-badge {
    min-width: 84px;
    padding: 9px 14px;
}

.profile-timeline-section .timeline-dot {
    margin-top: 21px;
}

.profile-timeline-section .timeline-content-card h3 {
    margin-bottom: 8px;
    font-size: 1.02rem;
}

.profile-timeline-section .timeline-content-card p {
    line-height: 1.6;
}

.profile-latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-news-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    height: 100%;
    border: 1px solid color-mix(in srgb, var(--site-secondary, #cdd7ed) 76%, #ffffff);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 9px 22px color-mix(in srgb, var(--site-primary, #571113) 6%, transparent);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-news-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--site-primary, #571113) 24%, transparent);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--site-primary, #571113) 13%, transparent);
}

.profile-news-card__media {
    display: block;
    overflow: hidden;
    background: var(--site-secondary-soft, #f3f6fc);
}

.profile-news-card__image,
.profile-news-card__fallback {
    width: 100%;
    aspect-ratio: 16 / 7.8;
}

.profile-news-card__image {
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.profile-news-card:hover .profile-news-card__image {
    transform: scale(1.035);
}

.profile-news-card__fallback {
    display: grid;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(61, 12, 14, 0.94), rgba(87, 17, 19, 0.9)),
        radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
        var(--site-primary-dark, #3d0c0e);
    font-size: 1.35rem;
}

.profile-news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 15px 15px;
}

.profile-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 7px;
    color: var(--site-muted, #6b7280);
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-news-card__category {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--site-primary, #571113);
    background: color-mix(in srgb, var(--site-primary, #571113) 8%, #ffffff);
    font-size: 0.75rem;
    font-weight: 800;
}

.profile-news-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--site-primary-dark, #3d0c0e);
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.34;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.profile-news-card__title a:hover {
    color: var(--site-primary, #571113);
}

.profile-news-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--site-muted, #6b7280);
    font-size: 0.94rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 0;
    color: var(--site-primary, #571113);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.profile-news-card__link:hover {
    color: var(--site-primary-dark, #3d0c0e);
}

.profile-latest-news-empty {
    padding: 24px;
    border: 1px dashed color-mix(in srgb, var(--site-primary, #571113) 22%, transparent);
    border-radius: 18px;
    color: var(--site-muted, #6b7280);
    background: #ffffff;
}

.profile-latest-news-action {
    margin-top: 24px;
    text-align: center;
}

.profile-latest-news-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--site-primary, #571113);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--site-primary, #571113) 18%, transparent);
}

.profile-latest-news-button:hover {
    color: #ffffff;
    background: var(--site-primary-hover, #74191c);
}

@media (max-width: 767px) {
    .profile-history-page-header.configurable-page-header {
        height: 220px;
        min-height: 220px;
    }

    .profile-history-section .profile-history-card {
        padding: 32px 0 24px;
    }

    .profile-latest-news-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-history-section + .profile-timeline-section {
        padding: 28px 0 34px;
    }

    .profile-timeline-section .profile-timeline-modern {
        gap: 16px;
    }

    .profile-timeline-section .timeline-milestone {
        grid-template-columns: 28px minmax(0, 1fr);
        column-gap: 14px;
        grid-template-areas:
            "rail year"
            "rail card";
    }

    .profile-timeline-section .timeline-rail {
        width: 28px;
    }

    .profile-timeline-section .timeline-year-wrap {
        padding-top: 0;
        margin-bottom: 8px;
    }

    .profile-timeline-section .timeline-content-card {
        padding: 18px;
    }

    #berita-terkini {
        padding-bottom: 42px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .profile-latest-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
