/* ==========================================================================
   CSS KHUSUS HALAMAN PROFIL PESANTREN
   ========================================================================== */

.profile-hero {
    background: linear-gradient(to bottom, rgba(13, 92, 58, 0.541), rgba(8, 59, 37, 0.849)), 
                url('../../berkas/SQT 1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.profile-hero h1 { font-size: 2.8rem; margin-bottom: 0.5rem; }
.profile-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* 1. Desain Sejarah Section */
.profile-section {
    padding: 4rem 0;
}

.history-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.history-text { flex: 1; }
.history-text h2 { color: var(--primary-color); font-size: 2.2rem; margin-bottom: 1.5rem; }
.history-text p { color: #475569; line-height: 1.7; margin-bottom: 1rem; text-align: justify; }

.history-img {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(13, 92, 58, 0.1);
    border: 4px solid var(--white);
    outline: 1px solid rgba(13, 92, 58, 0.1);
}
.history-img img { width: 100%; height: auto; display: block; }

/* 2. Desain Visi & Misi Modern */
.vimi-bg {
    background-color: rgba(13, 92, 58, 0.03);
    border-radius: 20px;
    padding: 3.5rem;
    margin: 2rem 0;
    border: 1px dashed rgba(13, 92, 58, 0.15);
}

.visi-box {
    text-align: center;
    margin-bottom: 3rem;
}
.visi-box h2 { color: var(--primary-color); font-size: 2rem; margin-bottom: 1rem; }
.visi-box p { font-size: 1.3rem; font-style: italic; color: #1E293B; max-width: 700px; margin: 0 auto; line-height: 1.6; }

.misi-box h2 { color: var(--primary-color); font-size: 2rem; text-align: center; margin-bottom: 1.5rem; }
.misi-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.misi-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    display: flex;
    gap: 12px;
}
.misi-item span { font-weight: bold; color: var(--primary-color); font-size: 1.2rem; }
.misi-item p { color: #475569; font-size: 0.95rem; line-height: 1.5; }

/* 3. Pengurus / Asatidzah Section */
.pengurus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pengurus-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(13, 92, 58, 0.08);
    transition: var(--transition);
}

.pengurus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 92, 58, 0.08);
    border-color: var(--secondary-color);
}
/* Styling Logo di Navbar Header */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px; /* Jarak antara gambar logo dan teks */
}
.nav-logo {
    height: 45px; /* Tinggi logo di navbar */
    width: auto;
}
.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0D5C3A;
    font-family: 'Cinzel', serif;
}
.logo span i {
    color: #D95D39;
    font-style: normal;
}


.avatar-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #F1F5F9;
}
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }

.pengurus-info { padding: 1.5rem; }
.pengurus-info h3 { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 0.25rem; }
.pengurus-info p { color: #64748B; font-size: 0.9rem; font-weight: 500; }
/* Styling Section Terpadu */
.terpadu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.terpadu-card {
    background: #ffffff;
    border: 1px solid rgba(13, 92, 58, 0.12);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.terpadu-card i {
    color: #D95D39;
    font-size: 1.2rem;
}

.terpadu-card span {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}

/* Styling Mengapa Memilih SQT */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.reason-card {
    background: #ffffff;
    border: 1px solid rgba(13, 92, 58, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    transition: 0.2s;
}

.reason-card:hover {
    border-color: #0D5C3A;
    transform: translateY(-3px);
}

.reason-num {
    background: #0D5C3A;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.reason-card h4 {
    color: #0D5C3A;
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

.reason-card p {
    color: #64748B;
    font-size: 0.83rem;
    line-height: 1.45;
    margin: 0;
}

/* Sejarah Accent Box */
.history-box-accent {
    background: linear-gradient(135deg, #0D5C3A, #083B25);
    color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
}

.history-box-accent h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.history-box-accent p {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Kompetensi Lulusan Grid */
.kompetensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
}

.kompetensi-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kompetensi-item i {
    color: #25D366;
    font-size: 1rem;
}
.section-title-box h2
.profile-section h2
.history-text h2 {
    color: #076e42;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-align: center;
}
@media (max-width: 768px) {
    .history-container { flex-direction: column-reverse; gap: 2rem; }
    .vimi-bg { padding: 1.5rem; }
    .profile-hero h1 { font-size: 2rem; }
    .nav-logo {
        height: 35px;
    }

    .logo span {
        font-size: 1.1rem;
    }
    .section-title-box h2,h1,
    .profile-section h2,h1,
    .history-text h2,h1 {
        font-size: 1.4rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.5rem !important;
    }
}