.profile-hero-section {
    position: relative;
    background: url('https://lptd.al-fajr.sch.id/wp-content/uploads/2026/11/ngaji3.jpg') center/cover no-repeat;
    padding: 100px 0 80px 0;
    color: #ffffff;
    text-align: center;
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 77, 77, 0.92) 0%, rgba(0, 150, 152, 0.85) 100%);
    z-index: 1;
}

.profile-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.profile-hero-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.profile-hero-title {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.profile-hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
}

.profile-stats-bar {
    background: #ffffff;
    padding: 35px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 3;
    margin-top: -30px;
    border-radius: 16px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    border-right: 1px solid #ececec;
}

.stat-card:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-history-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.profile-section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 10px 0 15px 0;
}

.profile-section-subtext {
    font-size: 1.05rem;
    color: #555555;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
}

.history-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.history-featured-card {
    position: sticky;
    top: 130px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.history-image-main {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.history-featured-card:hover .history-image-main {
    transform: scale(1.03);
}

.history-card-badge {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.history-card-badge i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.history-card-badge strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.history-card-badge span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-timeline-column {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid rgba(0, 150, 152, 0.2);
}

.timeline-step {
    position: relative;
    margin-bottom: 40px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 150, 152, 0.2);
    transition: var(--transition-base);
}

.timeline-step:hover .timeline-dot {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.2);
}

.timeline-year {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
}

.timeline-content p {
    margin: 0 0 10px 0;
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.profile-pillars-section {
    padding: 90px 0;
    background-color: #ffffff;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    border-bottom: 4px solid var(--primary-color);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.pillar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(0, 150, 152, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition-base);
}

.pillar-card:hover .pillar-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

.pillar-number {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.08);
    letter-spacing: -1px;
}

.pillar-card h3 {
    margin: 0 0 14px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pillar-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.pillar-card.pilar-highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0, 150, 152, 0.03) 0%, rgba(253, 200, 47, 0.06) 100%);
    border-bottom-color: var(--secondary-color);
}

/* Animasi GPU Accelerated */
.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 992px) {
    .profile-hero-title { font-size: 2.1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-card:nth-child(2) { border-right: none; }
    .history-grid-wrapper { grid-template-columns: 1fr; }
    .history-featured-card { position: static; max-width: 600px; margin: 0 auto 30px; }
    .history-image-main { height: 350px; }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar-card.pilar-highlight { grid-column: span 1; }
}

@media (max-width: 576px) {
    .profile-hero-section { padding: 60px 0 50px 0; }
    .profile-hero-title { font-size: 1.7rem; }
    .profile-hero-lead { font-size: 0.95rem; }
    .profile-stats-bar { margin-top: 15px; border-radius: 12px; padding: 25px 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { border-right: none; border-bottom: 1px solid #ececec; padding-bottom: 15px; margin-bottom: 15px; }
    .stat-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .history-timeline-column { padding-left: 20px; }
    .timeline-dot { left: -31px; }
}