/* 
 * PROFIL DESA - PROFESSIONAL, KEREN, KELAS DUNIA
 * Clean, Modern, Minimalist Design
 */

/* ===== VARIABLES ===== */
:root {
    --profil-primary: #176b4d;
    --profil-primary-light: #39b27a;
    --profil-primary-dark: #0f4a35;
    --profil-secondary: #f8faf9;
    --profil-accent: #ffb347;
    --profil-text-dark: #0f172a;
    --profil-text-medium: #334155;
    --profil-text-light: #64748b;
    --profil-border: rgba(15, 23, 42, 0.08);
    --profil-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --profil-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --profil-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --profil-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===== HERO SECTION - CLEAN & MINIMALIST ===== */
.profil-hero {
    position: relative;
    padding: 5rem 0 4rem;
    margin-top: 64px;
    overflow: hidden;
    background: linear-gradient(135deg, #176b4d 0%, #0f4a35 100%);
    min-height: 380px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-pattern {
    display: none;
}

.profil-hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.profil-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.profil-badge i {
    font-size: 1rem;
}

.profil-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.profil-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.profil-logo-wrapper {
    margin-top: 2rem;
}

.profil-logo {
    height: 120px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1;
    display: block;
    margin: 0 auto;
}

/* ===== SECTION STYLES ===== */
.profil-section {
    padding: 4rem 0;
    position: relative;
}

.profil-info-section {
    background: #ffffff;
}

.profil-visi-misi-section {
    background: #fafbfc;
}

.profil-kepala-desa-section {
    background: #ffffff;
}

.profil-sejarah-section {
    background: #fafbfc;
}

.profil-struktur-section {
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--profil-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--profil-text-light);
    line-height: 1.6;
}

/* ===== INFO GRID - MODERN CARDS ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.info-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--profil-primary);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--profil-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
}

.info-card-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--profil-text-dark);
    margin-bottom: 0.5rem;
}

.info-card-content p {
    color: var(--profil-text-medium);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9375rem;
}

.info-card-content a {
    color: var(--profil-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card-content a:hover {
    color: var(--profil-primary-light);
}

/* ===== VISI MISI - PROFESSIONAL CARDS ===== */
.visi-misi-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.visi-misi-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

.visi-misi-card-modern::before {
    display: none;
}

.visi-misi-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--profil-primary);
}

.visi-misi-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.visi-misi-icon-modern {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.visi-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.misi-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.visi-misi-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--profil-text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.visi-misi-content {
    color: var(--profil-text-medium);
    line-height: 1.9;
    font-size: 1.0625rem;
}

.visi-misi-content p {
    margin: 0;
}

/* ===== KEPALA DESA - PROFESSIONAL DESIGN ===== */
.kepala-desa-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.kepala-desa-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--profil-primary);
}

.kepala-desa-content-modern {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.kepala-desa-photo-modern {
    flex-shrink: 0;
    width: 240px;
}

.photo-frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(23, 107, 77, 0.1) 100%);
    pointer-events: none;
}

.kepala-desa-info-modern {
    flex: 1;
}

.kepala-desa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--profil-primary), var(--profil-primary-light));
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.kepala-desa-info-modern h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--profil-text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.kepala-desa-sambutan {
    color: var(--profil-text-medium);
    line-height: 1.9;
    font-size: 1.0625rem;
}

.kepala-desa-sambutan p {
    margin: 0;
}

/* ===== SEJARAH - PROFESSIONAL CONTENT ===== */
.sejarah-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.sejarah-card-modern::before {
    display: none;
}

.sejarah-icon-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.sejarah-icon-wrapper i {
    font-size: 3rem;
    color: var(--profil-primary);
    opacity: 0.2;
}

.sejarah-content {
    color: var(--profil-text-medium);
    line-height: 1.9;
    font-size: 1.0625rem;
}

.sejarah-content p {
    margin: 0 0 1.5rem 0;
}

.sejarah-content p:last-child {
    margin-bottom: 0;
}

/* ===== STRUKTUR PEMERINTAHAN - PROFESSIONAL GRID ===== */
.struktur-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.struktur-card-modern {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

.struktur-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--profil-primary);
}

.struktur-photo-modern {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f3f4f6;
}

.struktur-photo-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Scale besar memperbesar bitmap → terlihat blur; sedikit zoom saja */
.struktur-card-modern:hover .struktur-photo-modern img {
    transform: translateZ(0) scale(1.02);
}

.struktur-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 4rem;
}

.struktur-photo-overlay {
    display: none;
}

.struktur-content-modern {
    padding: 1.5rem;
}

.struktur-badge-modern {
    display: inline-block;
    background: var(--profil-primary);
    color: #ffffff;
    padding: 0.375rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.struktur-content-modern h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--profil-text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.struktur-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.struktur-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--profil-text-medium);
    font-size: 0.9375rem;
}

.struktur-detail-item i {
    color: var(--profil-primary);
    width: 18px;
    flex-shrink: 0;
}

.struktur-detail-item a {
    color: var(--profil-text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.struktur-detail-item a:hover {
    color: var(--profil-primary);
}

/* ===== EMPTY STATE ===== */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 1.5rem;
    border: 2px dashed var(--profil-border);
}

.empty-state-modern i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state-modern p {
    color: var(--profil-text-light);
    font-size: 1.125rem;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .profil-hero {
        padding: 5rem 0 4rem;
        min-height: 350px;
    }
    
    .profil-section {
        padding: 4rem 0;
    }
    
    .visi-misi-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .kepala-desa-content-modern {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .profil-hero {
        padding: 4rem 0 3rem;
        min-height: 300px;
    }
    
    .profil-title {
        font-size: 2rem;
    }
    
    .profil-subtitle {
        font-size: 1rem;
    }
    
    .profil-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .info-card-modern {
        padding: 1.5rem;
    }
    
    .visi-misi-card-modern {
        padding: 2rem;
    }
    
    .kepala-desa-card-modern {
        padding: 2rem;
    }
    
    .kepala-desa-content-modern {
        flex-direction: column;
        gap: 2rem;
    }
    
    .kepala-desa-photo-modern {
        width: 200px;
        margin: 0 auto;
    }
    
    .kepala-desa-info-modern h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .sejarah-card-modern {
        padding: 2rem;
    }
    
    .struktur-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profil-hero {
        padding: 3.5rem 0 2.5rem;
    }
    
    .profil-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .profil-logo {
        height: 80px;
    }
    
    .profil-section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .info-card-modern {
        flex-direction: column;
        text-align: center;
    }
    
    .info-card-icon {
        margin: 0 auto;
    }
    
    .visi-misi-header {
        flex-direction: column;
        text-align: center;
    }
    
    .kepala-desa-photo-modern {
        width: 180px;
    }
    
    .struktur-photo-modern {
        height: 240px;
    }
}

/* ===== PETA DESA SECTION ===== */
.profil-peta-section {
    background: #fafbfc;
}

.peta-wrapper-profil {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.peta-map-profil {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 1.5rem;
}

.peta-info-profil {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.peta-info-profil p {
    margin: 0.5rem 0;
    color: var(--profil-text-medium);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.peta-info-profil strong {
    color: var(--profil-text-dark);
    font-weight: 600;
}

/* Peta Title Link */
.peta-title-link {
    color: var(--profil-text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.peta-title-link:hover {
    color: var(--profil-primary);
}

.peta-title-link i {
    transition: transform 0.2s ease;
}

.peta-title-link:hover i {
    transform: translate(2px, -2px);
}

/* Peta Koordinat Link */
.peta-koordinat-link {
    color: var(--profil-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.peta-koordinat-link:hover {
    background: #f0fdf4;
    color: var(--profil-primary-dark);
}

.peta-koordinat-link i {
    transition: transform 0.2s ease;
}

.peta-koordinat-link:hover i {
    transform: translate(2px, -2px);
}

/* Peta Action Button */
.peta-action-profil {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.peta-btn-profil {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--profil-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(23, 107, 77, 0.2);
}

.peta-btn-profil:hover {
    background: var(--profil-primary-dark);
    box-shadow: 0 4px 8px rgba(23, 107, 77, 0.3);
    transform: translateY(-2px);
}

.peta-btn-profil i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .peta-wrapper-profil {
        padding: 1.5rem;
    }
    
    .peta-map-profil {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .peta-wrapper-profil {
        padding: 1rem;
    }
    
    .peta-map-profil {
        height: 300px;
    }
    
    .peta-info-profil p {
        font-size: 0.875rem;
    }
}

/* ===== FIX: classes to replace Tailwind utilities ===== */

/* Hero breadcrumb */
.profil-hero-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
}
.profil-hero-breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.15s;
}
.profil-hero-breadcrumb a:hover { color: #fff; }
.profil-hero-breadcrumb span { color: rgba(255,255,255,0.4); }
.profil-hero-breadcrumb [aria-current="page"] {
    color: #fff;
    font-weight: 600;
}

/* Hero logo */
.profil-hero-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.profil-hero-logo {
    height: 5rem;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}
.profil-hero-logo--invert {
    filter: brightness(0) invert(1) opacity(0.95) drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

/* Visi & Misi grid */
.profil-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .profil-vm-grid { grid-template-columns: 1fr; }
}
.profil-vm-card {
    background: #f7fdf9;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.profil-vm-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.profil-vm-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: rgba(22, 107, 77, 0.1);
    color: #176b4d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.profil-vm-icon--misi {
    background: rgba(22, 107, 77, 0.1);
    color: #176b4d;
}
.profil-vm-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.profil-vm-body {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.7;
    white-space: pre-line;
}
