@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --rpjm-primary: #148957;
    --rpjm-primary-light: #30c27c;
    --rpjm-primary-dark: #0a5a39;
    --rpjm-secondary: #0f1c2d;
    --rpjm-bg: #f4f7f1;
    --text-dark: #0f1c2d;
    --text-muted: #5a6475;
    --border-light: rgba(15, 28, 45, 0.08);
    --shadow-soft: 0 18px 40px rgba(15, 28, 45, 0.08);
    --shadow-card: 0 30px 70px rgba(10, 90, 57, 0.18);
    --radius-lg: 0;
    --radius-md: 0;
    --radius-sm: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--rpjm-bg);
    color: var(--text-dark);
    margin: 0;
    padding-top: 0;
}

/* Hero Section */
.rpjm-hero {
    background: linear-gradient(135deg, var(--rpjm-primary-dark) 0%, var(--rpjm-primary) 50%, var(--rpjm-primary-light) 100%);
    color: #fff;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    max-height: 300px; /* Maksimal tinggi 300px */
    display: flex;
    align-items: center;
}

.rpjm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rpjm-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(48, 194, 124, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rpjm-hero .dp-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Icon RPJMDes Besar */
.rpjm-hero__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.rpjm-hero__icon {
    font-size: clamp(80px, calc(300px * 0.4), 120px); /* Responsif terhadap tinggi 300px (40% dari tinggi) */
    color: rgba(255, 255, 255, 0.3);
    animation: file-pulse 2s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes file-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.rpjm-hero__content {
    position: relative;
    z-index: 2;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rpjm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(8px, calc(300px * 0.033), 10px) clamp(18px, calc(300px * 0.073), 22px);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: clamp(0.75rem, calc(300px * 0.03), 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: clamp(16px, calc(300px * 0.08), 24px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 40px; /* 2 tabulasi dari kiri */
}

.rpjm-hero__badge i {
    font-size: 1.1rem;
    animation: file-alt-pulse 2s ease-in-out infinite;
}

@keyframes file-alt-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.rpjm-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, calc(300px * 0.08), 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rpjm-hero p {
    margin: 0;
    font-size: clamp(0.85rem, calc(300px * 0.032), 0.95rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rpjm-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.rpjm-hero__stats .rpjm-stat-card {
    background: transparent; /* Background transparan */
    backdrop-filter: none;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rpjm-hero__stats .rpjm-stat-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: rgba(20, 137, 87, 0.2); /* Background hijau transparan sesuai tema */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rpjm-primary-light); /* Warna hijau sesuai tema */
    transition: all 0.3s ease;
}

.rpjm-hero__stats .rpjm-stat-card:hover .rpjm-stat-card__icon {
    background: rgba(20, 137, 87, 0.3);
    transform: scale(1.1);
    color: var(--rpjm-primary);
}

.rpjm-hero__stats .rpjm-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 137, 87, 0.5);
}

.rpjm-hero__stats .rpjm-stat-value {
    font-size: clamp(1.5rem, calc(300px * 0.067), 2rem);
    font-weight: 800;
    color: var(--rpjm-primary-light); /* Warna hijau sesuai tema */
    margin-bottom: clamp(6px, calc(300px * 0.027), 8px);
    text-shadow: 0 2px 8px rgba(20, 137, 87, 0.3);
}

.rpjm-hero__stats .rpjm-stat-label {
    font-size: clamp(0.7rem, calc(300px * 0.028), 0.85rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Content */
.rpjm-content {
    margin: -40px auto 60px; /* Negative margin untuk overlap sedikit, kemudian 40px jarak */
    padding: 0;
    position: relative;
    z-index: 1;
}

.rpjm-card {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f1 100%);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.rpjm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(20, 137, 87, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.section-card__header {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.section-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(20, 137, 87, 0.15);
    color: var(--rpjm-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-card__badge i {
    font-size: 1rem;
}

.section-card__header h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
}

.section-card__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.document-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(20, 137, 87, 0.15);
    border-color: var(--rpjm-primary);
}

.document-card h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.doc-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.doc-date i {
    margin-right: 6px;
    color: var(--rpjm-primary);
}

.doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.doc-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-view {
    background: #ffffff;
    color: var(--rpjm-primary);
    border: 1px solid rgba(20, 137, 87, 0.3);
}

.btn-view:hover {
    background: rgba(20, 137, 87, 0.1);
    border-color: var(--rpjm-primary);
}

.btn-download {
    background: var(--rpjm-primary);
    color: #fff;
}

.btn-download:hover {
    background: var(--rpjm-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 137, 87, 0.3);
}

.timeline {
    margin-top: 24px;
    border-left: 3px solid rgba(20, 137, 87, 0.2);
    padding-left: calc(20px + 40px); /* 2 tabulasi dari kiri */
}

.timeline-item {
    position: relative;
    padding: 14px 0 14px 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rpjm-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(20, 137, 87, 0.2);
}

.timeline-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-item .doc-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.empty-state {
    padding: 48px 0;
    text-align: center;
    color: var(--text-muted);
    padding-left: 40px; /* 2 tabulasi dari kiri */
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--rpjm-primary);
}

/* Responsive */
@media (max-width: 960px) {
    .rpjm-hero {
        padding: 30px 0;
        max-height: 280px;
    }
    
    .rpjm-hero .dp-container {
        grid-template-columns: auto 1fr;
        gap: 24px;
    }
    
    .rpjm-hero__icon {
        font-size: clamp(60px, calc(280px * 0.29), 80px);
    }
    
    .rpjm-hero__content {
        padding-left: 30px;
    }
    
    .rpjm-hero__badge {
        margin-left: 30px;
        font-size: clamp(0.7rem, calc(280px * 0.029), 0.85rem);
        padding: clamp(6px, calc(280px * 0.021), 8px) clamp(14px, calc(280px * 0.05), 18px);
    }
    
    .rpjm-hero h1 {
        padding-left: 30px;
        font-size: clamp(1.3rem, calc(280px * 0.07), 2rem);
    }
    
    .rpjm-hero p {
        padding-left: 30px;
        font-size: clamp(0.8rem, calc(280px * 0.029), 0.9rem);
    }
    
    .rpjm-hero__stats {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 30px;
    }
    
    .rpjm-hero__stats .rpjm-stat-card__icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .rpjm-hero__stats .rpjm-stat-value {
        font-size: clamp(1.3rem, calc(280px * 0.057), 1.75rem);
    }
    
    .rpjm-hero__stats .rpjm-stat-label {
        font-size: clamp(0.65rem, calc(280px * 0.025), 0.75rem);
    }
    
    .rpjm-content {
        margin: -40px auto 40px;
    }
    
    .rpjm-card {
        padding: 32px 24px;
    }
    
    .section-card__header,
    .document-grid,
    .timeline,
    .empty-state {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .rpjm-hero {
        padding: 20px 0;
        max-height: 250px;
    }
    
    .rpjm-hero .dp-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rpjm-hero__icon-wrapper {
        display: none; /* Sembunyikan icon besar di mobile */
    }
    
    .rpjm-hero h1 {
        font-size: clamp(1.2rem, calc(250px * 0.064), 1.8rem);
    }
    
    .rpjm-hero__content {
        padding-left: 20px;
    }
    
    .rpjm-hero__badge {
        margin-left: 20px;
        font-size: clamp(0.65rem, calc(250px * 0.032), 0.75rem);
        padding: clamp(6px, calc(250px * 0.024), 8px) clamp(12px, calc(250px * 0.048), 16px);
    }
    
    .rpjm-hero h1 {
        padding-left: 20px;
        font-size: clamp(1.2rem, calc(250px * 0.064), 1.8rem);
    }
    
    .rpjm-hero p {
        padding-left: 20px;
        font-size: clamp(0.75rem, calc(250px * 0.032), 0.85rem);
    }
    
    .rpjm-hero__stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 20px;
    }
    
    .rpjm-hero__stats .rpjm-stat-card__icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .rpjm-hero__stats .rpjm-stat-value {
        font-size: clamp(1.2rem, calc(250px * 0.056), 1.5rem);
    }
    
    .rpjm-hero__stats .rpjm-stat-label {
        font-size: clamp(0.6rem, calc(250px * 0.024), 0.7rem);
    }
    
    .rpjm-content {
        margin: -40px auto 30px;
    }
    
    .rpjm-card {
        padding: 24px 20px;
    }
    
    .section-card__header h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .section-card__header,
    .document-grid,
    .timeline,
    .empty-state {
        padding-left: 20px;
    }
    
    .document-grid {
        grid-template-columns: 1fr;
    }
}
