/* ==========================================================================
   PROFIL DESA PAGE STYLES
   ========================================================================== */

/* Hero Banner Profil Desa */
.profil-hero {
    position: relative;
    height: 72vh;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    margin-bottom: 30px;
}

.profil-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.profil-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(16, 39, 21, 0.35) 0%, rgba(16, 39, 21, 0.85) 100%);
    z-index: -1;
}

.profil-hero-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.profil-hero-content {
    max-width: 680px;
    color: var(--text-light);
}

.tagline {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}

.profil-hero-title {
    font-size: clamp(2.4rem, 4.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.profil-hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    opacity: 0.88;
    line-height: 1.6;
    font-weight: 400;
}

.watermark-badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Header Text Utility */
.section-header {
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-top: 8px;
}

/* Sejarah Section (2 Columns) */
.sejarah-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sejarah-content .section-text {
    margin-bottom: 16px;
}

.sejarah-image-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.sejarah-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.05); /* Nuansa arsip vintage */
}

.image-caption-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(20, 30, 22, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Visi & Misi Grid */
.visi-misi-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Left Card: Visi Desa */
.visi-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.visi-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.visi-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.visi-quote {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Right Stack: Misi Cards */
.misi-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.misi-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.misi-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.misi-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.misi-card p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Potensi Section (3 Cards Grid) */
.potensi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.potensi-card {
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.potensi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.potensi-img-wrapper {
    height: 190px;
    overflow: hidden;
}

.potensi-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.potensi-card:hover .potensi-img-wrapper img {
    transform: scale(1.05);
}

.potensi-info {
    padding: 24px;
}

.potensi-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.potensi-info p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.55;
}

/* Responsif Mobile & Tablet */
@media (max-width: 850px) {
    .sejarah-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
    .potensi-grid {
        grid-template-columns: 1fr;
    }
    .profil-hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}