/* Hero profil dengan logo */
.profile-hero {
    background: linear-gradient(135deg, var(--tenant-primary) 0%, var(--tenant-secondary) 100%);
    color: white;
    padding: 2rem 0 2rem;
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.profile-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.profile-hero .logo-wrapper {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    margin: 0 auto 1rem auto;
}

.profile-hero .logo-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.profile-hero h1 {
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: -0.5px;
}

.profile-hero .lead {
    font-size: 1.15rem;
    opacity: 0.92;
}

/* Card profil */
.profile-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    height: 100%;
    padding: 1.5rem;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(13, 110, 253, 0.10);
}

.profile-card .icon-circle {
    width: 64px;
    height: 64px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.profile-card h5 {
    font-weight: 700;
    color: #0b2b4a;
}

.profile-card p {
    color: #4a5b6e;
    font-size: 0.95rem;
}

/* ===== SAMBUTAN KEPALA MADRASAH ===== */
.sambutan-section {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    position: relative;
}

.sambutan-section .foto-kepala {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #e8f0fe;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease;
}

.sambutan-section .foto-kepala:hover {
    transform: scale(1.03);
}

.sambutan-section .nama-kepala {
    font-weight: 700;
    color: #0b2b4a;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.sambutan-section .jabatan {
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.95rem;
}

.sambutan-section .sambutan-text {
    color: #4a5b6e;
    line-height: 1.9;
    font-size: 1.02rem;
    text-align: justify;
}

.sambutan-section .sambutan-text::before {
    content: '"';
    font-size: 3rem;
    color: #0d6efd;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 0;
    vertical-align: -0.5rem;
    margin-right: 4px;
}

.sambutan-section .sambutan-text::after {
    content: '"';
    font-size: 3rem;
    color: #0d6efd;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 0;
    vertical-align: -0.5rem;
    margin-left: 4px;
}

.sambutan-section .ttd {
    margin-top: 1rem;
    color: #6a7e99;
    font-size: 0.9rem;
}

.sambutan-section .ttd i {
    color: #0d6efd;
}

/* Visi Misi */
.visi-misi {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.visi-misi h4 {
    font-weight: 700;
    color: #0b2b4a;
    border-left: 5px solid #0d6efd;
    padding-left: 1rem;
}

.visi-misi ul {
    padding-left: 1.5rem;
    color: #4a5b6e;
}

.visi-misi ul li {
    margin-bottom: 0.5rem;
}

/* Sejarah */
.sejarah-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.sejarah-section h4 {
    font-weight: 700;
    color: #0b2b4a;
    border-left: 5px solid #0d6efd;
    padding-left: 1rem;
}

.sejarah-section p {
    color: #4a5b6e;
    line-height: 1.8;
}

/* Timeline */
.timeline-item {
    border-left: 3px solid #0d6efd;
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 14px;
    height: 14px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    left: -8px;
    top: 4px;
}

.timeline-item .year {
    font-weight: 700;
    color: #0d6efd;
    font-size: 1.1rem;
}

.timeline-item p {
    color: #4a5b6e;
    margin-bottom: 0;
}

/* ===== STRUKTUR ORGANISASI (di dalam profil) ===== */
.org-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.org-section .section-subtitle {
    color: #6a7e99;
    font-size: 1rem;
}

.org-card {
    background: white;
    border: 2px solid #e8f0fe;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.org-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.10);
    transform: translateY(-4px);
}

.org-card .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8f0fe;
    margin-bottom: 0.75rem;
}

.org-card .jabatan {
    font-weight: 700;
    color: #0b2b4a;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.org-card .nama {
    font-size: 0.9rem;
    color: #4a5b6e;
    font-weight: 500;
}

.org-card .nip {
    font-size: 0.75rem;
    color: #6a7e99;
}

.org-card .badge-level {
    background: #e8f0fe;
    color: #0d6efd;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Level 1: Kepala Sekolah - lebih besar */
.org-card.level-1 {
    border-color: #0d6efd;
    background: #f8fbff;
    padding: 1.5rem;
    max-width: 320px;
    margin: 0 auto;
}

.org-card.level-1 .avatar {
    width: 90px;
    height: 90px;
    border-color: #0d6efd;
}

.org-card.level-1 .jabatan {
    font-size: 1.2rem;
    color: #0d6efd;
}

/* Level 2: Wakil Kepala */
.org-card.level-2 {
    border-color: #6c8fc7;
}

.org-card.level-2 .avatar {
    width: 75px;
    height: 75px;
}

.connector-line {
    height: 30px;
    width: 2px;
    background: #c6d4e6;
    margin: 0 auto;
}

/* Org level wrapper */
.org-level {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.org-level:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1.5rem;
    background: #c6d4e6;
}

/* Program Unggulan */
.program-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    height: 100%;
    padding: 1.25rem;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.08);
}

.program-card i {
    font-size: 2.5rem;
    color: #0d6efd;
}

.program-card h6 {
    font-weight: 700;
    color: #0b2b4a;
    margin-top: 0.5rem;
}

.program-card small {
    color: #6a7e99;
}

/* Responsif */
@media (max-width: 768px) {
    .profile-hero h1 {
        font-size: 2rem;
    }

    .profile-hero {
        padding: 2.5rem 0 2rem;
    }

    .profile-hero .lead {
        font-size: 1rem;
    }

    .profile-hero .logo-wrapper {
        width: 90px;
        height: 90px;
    }

    .profile-hero .logo-wrapper img {
        width: 65px;
        height: 65px;
    }

    .sambutan-section .foto-kepala {
        width: 150px;
        height: 150px;
    }

    .sambutan-section {
        padding: 1.5rem;
    }

    .sambutan-section .sambutan-text {
        font-size: 0.95rem;
    }

    .org-card.level-1 {
        max-width: 100%;
    }

    .org-card .avatar {
        width: 60px;
        height: 60px;
    }

    .org-card.level-1 .avatar {
        width: 75px;
        height: 75px;
    }

    .org-card.level-2 .avatar {
        width: 65px;
        height: 65px;
    }

    .org-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .profile-hero .logo-wrapper {
        width: 75px;
        height: 75px;
    }

    .profile-hero .logo-wrapper img {
        width: 55px;
        height: 55px;
    }

    .sambutan-section .foto-kepala {
        width: 120px;
        height: 120px;
    }
}