/* profil.css - Styles spesifik untuk halaman Profil Madrasah */

/* Section Sejarah */

.sejarah-section {

    padding: 40px 0;

}

.sejarah-logo-box {

    background: var(--light-sage);

    border-radius: 24px;

    padding: 32px;

    display: flex;

    justify-content: center;

    align-items: center;

    box-shadow: var(--shadow-sm);

}

.sejarah-logo-box img {

    max-width: 200px;

    height: auto;

    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));

}

.sejarah-content h2 {

    color: var(--primary-green);

    margin-bottom: 16px;

    font-size: 28px;

}

.sejarah-content p {

    color: var(--slate);

    margin-bottom: 12px;

    font-size: 14px;

    line-height: 1.6;

}

/* Scrollable Text for Sejarah */

.sejarah-text-scroll {

    max-height: 240px;

    overflow-y: auto;

    padding-right: 12px;

    /* Menyembunyikan scrollbar Firefox, IE, Edge */

    scrollbar-width: none;

    -ms-overflow-style: none;

}

/* Menyembunyikan scrollbar Webkit (Chrome, Safari, dll) */

.sejarah-text-scroll::-webkit-scrollbar {

    display: none;

}

/* Section Visi & Misi */

.visimisi-section {

    padding: 40px 0;

    background-color: var(--light-sage);

}

.visimisi-card {

    background: var(--white);

    border-radius: 20px;

    padding: 32px;

    box-shadow: var(--shadow-sm);

    height: 100%;

}

.visimisi-icon {

    width: 48px;

    height: 48px;

    background: var(--sage-accent);

    color: var(--primary-green);

    border-radius: 12px;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 24px;

    margin-bottom: 16px;

}

.visimisi-card h3 {

    font-size: 20px;

    color: var(--charcoal);

    margin-bottom: 12px;

}

.misi-list {

    list-style: none;

}

.misi-list li {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 16px;

    color: var(--slate);

    line-height: 1.6;

}

.misi-list li::before {

    content: '✓';

    color: var(--white);

    background: var(--success-green);

    width: 24px;

    height: 24px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    font-size: 12px;

    font-weight: bold;

    margin-top: 2px;

}

/* Section Personil */

.personil-section {

    padding: 40px 0;

    overflow: hidden; /* Prevent horizontal scrollbar on body */

}

.personil-slider-wrapper {

    width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    position: relative;

    padding: 20px 0;

    cursor: grab;

    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    touch-action: pan-x;

    scrollbar-width: none;

    -ms-overflow-style: none;

}

.personil-slider-wrapper::-webkit-scrollbar {

    width: 0;

    height: 0;

    display: none;

}

.personil-slider-wrapper::-webkit-scrollbar-thumb,
.personil-slider-wrapper::-webkit-scrollbar-track,
.personil-slider-wrapper::-webkit-scrollbar-corner,
.personil-slider-wrapper::-webkit-scrollbar-button {

    display: none;

    width: 0;

    height: 0;

    background: transparent;

}

.personil-slider-wrapper.is-dragging {

    cursor: grabbing;

}

/* Menambahkan efek gradient di sisi kiri dan kanan agar terlihat halus menghilang */

.personil-slider-wrapper::before,

.personil-slider-wrapper::after {

    content: '';

    position: absolute;

    top: 0;

    bottom: 0;

    width: 100px;

    z-index: 2;

    pointer-events: none;

}

.personil-slider-wrapper::before {

    left: 0;

    background: linear-gradient(to right, var(--white) 0%, transparent 100%);

}

.personil-slider-wrapper::after {

    right: 0;

    background: linear-gradient(to left, var(--white) 0%, transparent 100%);

}

.personil-slider-track {

    display: flex;

    gap: 24px;

    width: max-content;

    /* Diperlambat lebih jauh agar nyaman dibaca di desktop dan mobile */

    animation: scrollPersonil 120s linear infinite;

}

.personil-slider-wrapper:hover .personil-slider-track,
.personil-slider-wrapper:focus-within .personil-slider-track {

    animation-play-state: paused;

}

/* Berhenti ketika kursor di-hover */

.personil-slider-track:hover {

    animation-play-state: paused;

}

.personil-card {

    background: var(--white);

    border-radius: 20px;

    padding: 20px;

    text-align: center;

    box-shadow: var(--shadow-sm);

    transition: transform 0.3s, box-shadow 0.3s;

    border: 1px solid var(--light-gray);

    width: 260px; /* Ukuran statis untuk menjaga slider konstan */

    flex-shrink: 0;

    scroll-snap-align: start;

}

.personil-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-md);

    border-color: var(--primary-green);

}

.personil-img {

    width: 110px;

    height: 110px;

    border-radius: 50%;

    object-fit: cover;

    margin: 0 auto 16px auto;

    border: 3px solid var(--sage-accent);

}

.personil-name {

    font-weight: 700;

    color: var(--charcoal);

    font-size: 16px;

    margin-bottom: 4px;

}

.personil-role {

    color: var(--primary-green);

    font-size: 12px;

    font-weight: 600;

}

@keyframes scrollPersonil {

    0% { transform: translateX(0); }

    /* Bergeser sejauh separuh total panjang track (karena ada 2 set data yang sama) dikurangi jarak (gap) */

    100% { transform: translateX(calc(-50% - 12px)); }

}

/* Section Statistik */

.statistik-section {

    padding: 40px 0;

    background: var(--hero-green);

    color: var(--white);

    position: relative;

    overflow: hidden;

}

/* Tambahkan pola background subtle jika perlu */

.statistik-section::before {

    content: '';

    position: absolute;

    inset: 0;

    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),

                      radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);

    pointer-events: none;

}

.stat-card {

    background: rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(10px);

    border-radius: 20px;

    padding: 24px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, 0.2);

    transition: transform 0.3s;

}

.stat-card:hover {

    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.15);

}

.stat-number {

    font-size: 36px;

    font-weight: 800;

    font-family: var(--font-heading);

    color: var(--gold);

    line-height: 1;

    margin-bottom: 6px;

}

.stat-label {

    font-size: 14px;

    font-weight: 600;

    color: var(--white);

    opacity: 0.9;

}

/* Modal Personil */

.personil-modal-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.6);

    backdrop-filter: blur(5px);

    z-index: 1000;

    display: flex;

    justify-content: center;

    align-items: center;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

    padding: 20px;

}

.personil-modal-overlay.show {

    opacity: 1;

    visibility: visible;

}

.personil-modal-box {

    background: var(--white);

    border-radius: 24px;

    width: 100%;

    max-width: 800px;

    position: relative;

    transform: scale(0.9);

    transition: all 0.3s ease;

    overflow: hidden;

    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

}

.personil-modal-overlay.show .personil-modal-box {

    transform: scale(1);

}

.personil-modal-close {

    position: absolute;

    top: 16px;

    right: 16px;

    width: 36px;

    height: 36px;

    background: var(--light-gray);

    border: none;

    border-radius: 50%;

    font-size: 24px;

    display: flex;

    justify-content: center;

    align-items: center;

    cursor: pointer;

    z-index: 10;

    color: var(--charcoal);

    transition: background 0.2s, color 0.2s;

}

.personil-modal-close:hover {

    background: var(--danger, #ef4444);

    color: var(--white);

}

.modal-grid {

    display: grid;

    grid-template-columns: 1fr 2fr;

}

.modal-left {

    background: var(--sage-accent);

    padding: 40px;

    display: flex;

    justify-content: center;

    align-items: center;

}

.modal-personil-img {

    width: 100%;

    max-width: 280px;

    height: auto;

    aspect-ratio: 3/4;

    border-radius: 16px;

    object-fit: cover;

    border: 6px solid var(--white);

    box-shadow: var(--shadow-md);

}

.modal-right {

    padding: 40px;

}

.modal-name {

    font-size: 28px;

    color: var(--primary-green);

    margin-bottom: 4px;

}

.modal-role {

    font-size: 16px;

    font-weight: 600;

    color: var(--slate);

    margin-bottom: 24px;

    padding-bottom: 16px;

    border-bottom: 1px solid var(--light-gray);

}

.modal-biodata-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 24px;

}

.biodata-item {

    display: flex;

    flex-direction: column;

}

.bio-label {

    font-size: 12px;

    color: var(--slate);

    text-transform: uppercase;

    letter-spacing: 1px;

    font-weight: 600;

    margin-bottom: 4px;

}

.bio-value {

    font-size: 16px;

    color: var(--charcoal);

    font-weight: 500;

}

.modal-pesan-box {

    background: var(--light-sage);

    padding: 20px;

    border-radius: 16px;

    position: relative;

    border-left: 4px solid var(--primary-green);

}

.pesan-quote-icon {

    position: absolute;

    top: -10px;

    left: 16px;

    font-size: 48px;

    color: rgba(5, 150, 105, 0.1);

    font-family: serif;

    line-height: 1;

}

.modal-pesan-text {

    font-style: italic;

    color: var(--slate);

    line-height: 1.6;

    position: relative;

    z-index: 1;

}

@media (max-width: 768px) {

    .modal-grid {

        grid-template-columns: 1fr;

    }

    .modal-left {

        padding: 32px 20px 20px;

    }

    .modal-personil-img {

        width: 120px;

        height: 120px;

        border-width: 4px;

    }

    .modal-right {

        padding: 24px;

    }

    .modal-name {

        font-size: 24px;

    }

}

/* Identitas & Lokasi Section */

.identitas-lokasi-section {

    padding: 60px 0;

    background: #f8fafc;

}

.identitas-card, .lokasi-card {

    background: var(--white);

    border-radius: 24px;

    padding: 32px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);

    border: 1px solid rgba(0, 0, 0, 0.03);

    display: flex;

    flex-direction: column;

}

.identitas-title {

    font-size: 20px;

    font-weight: 800;

    color: var(--charcoal);

    margin-bottom: 24px;

}

.identitas-table {

    display: flex;

    flex-direction: column;

}

.identitas-row {

    display: flex;

    padding: 16px 0;

    border-bottom: 1px solid var(--light-gray);

}

.identitas-row:last-child {

    border-bottom: none;

    padding-bottom: 0;

}

.identitas-row:first-child {

    padding-top: 0;

}

.identitas-label {

    width: 40%;

    color: var(--slate-light);

    font-size: 15px;

    font-weight: 500;

}

.identitas-value {

    width: 60%;

    color: var(--charcoal);

    font-size: 15px;

    font-weight: 600;

}

.lokasi-text {

    color: var(--slate);

    font-size: 15px;

    line-height: 1.6;

}

.lokasi-map-wrapper {

    flex-grow: 1;

    min-height: 250px;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

}

/* Responsive adjustments */

@media (max-width: 768px) {

    .sejarah-logo-box img { max-width: 180px; }

}

/* Video Profil */

.video-profil-shell {

    max-width: 1180px;

    margin: 0 auto;

    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 32%),
        linear-gradient(145deg, #f8fffc 0%, #effaf4 100%);

    border: 1px solid rgba(5, 150, 105, 0.10);

    border-radius: 32px;

    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);

    overflow: hidden;

}

.video-shell-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 24px 28px;

    border-bottom: 1px solid rgba(15, 23, 42, 0.06);

    background: rgba(255, 255, 255, 0.78);

    backdrop-filter: blur(12px);

}

.video-shell-brand {

    display: flex;

    align-items: center;

    gap: 16px;

}

.video-shell-logo {

    width: 56px;

    height: 56px;

    border-radius: 18px;

    background: linear-gradient(135deg, #ffffff 0%, #dcfce7 100%);

    border: 1px solid rgba(5, 150, 105, 0.12);

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);

}

.video-shell-logo img {

    width: 36px;

    height: 36px;

    object-fit: contain;

}

.video-shell-kicker {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;

    color: var(--primary-green);

    margin-bottom: 4px;

}

.video-shell-title {

    font-size: 20px;

    font-weight: 800;

    color: var(--charcoal);

    line-height: 1.25;

}

.video-shell-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}

.video-shell-meta span {

    display: inline-flex;

    align-items: center;

    padding: 8px 14px;

    border-radius: 9999px;

    background: rgba(5, 150, 105, 0.08);

    color: var(--primary-green);

    font-size: 12px;

    font-weight: 700;

}

.video-shell-body {

    display: grid;

    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);

    gap: 0;

}

.video-shell-stage {

    position: relative;

    padding: 28px;

}

.video-shell-glow {

    position: absolute;

    inset: 28px 28px auto;

    height: 180px;

    border-radius: 28px;

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(251, 191, 36, 0.12));

    filter: blur(30px);

    pointer-events: none;

}

.video-wrapper {

    position: relative;

    padding-bottom: 56.25%;

    height: 0;

    border-radius: 28px;

    overflow: hidden;

    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);

    background:
        linear-gradient(160deg, #0f172a 0%, #111827 100%);

    border: 8px solid #ffffff;

    z-index: 1;

}

.video-wrapper iframe,
.profil-video {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    border: 0;

    display: block;

}

.video-shell-sidecard {

    padding: 32px 28px 32px 12px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 18px;

}

.video-sidecard-badge {

    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding: 8px 14px;

    border-radius: 9999px;

    background: rgba(251, 191, 36, 0.16);

    color: #a16207;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.5px;

}

.video-shell-sidecard h3 {

    margin: 0;

    font-size: 24px;

    line-height: 1.35;

    color: var(--charcoal);

}

.video-shell-sidecard p {

    margin: 0;

    color: var(--slate);

    font-size: 15px;

    line-height: 1.8;

}

.video-sidecard-points {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}

.video-sidecard-points span {

    display: inline-flex;

    align-items: center;

    padding: 10px 14px;

    border-radius: 14px;

    background: #ffffff;

    border: 1px solid rgba(15, 23, 42, 0.06);

    color: var(--charcoal);

    font-size: 13px;

    font-weight: 700;

}

@media (max-width: 992px) {

    .video-shell-body {

        grid-template-columns: 1fr;

    }

    .video-shell-sidecard {

        padding: 0 28px 28px;

    }

}

@media (max-width: 768px) {

    .video-shell-header {

        flex-direction: column;

        align-items: flex-start;

        padding: 20px;

    }

    .video-shell-stage {

        padding: 20px;

    }

    .video-shell-glow {

        inset: 20px 20px auto;

    }

    .video-wrapper {

        border-width: 6px;

        border-radius: 22px;

    }

    .video-shell-sidecard {

        padding: 0 20px 24px;

    }

    .video-shell-title {

        font-size: 18px;

    }

    .video-shell-sidecard h3 {

        font-size: 20px;

    }

}
