:root {
    --homepage-bg: #020b16;
    --homepage-card: rgba(7, 19, 33, 0.78);
    --homepage-stroke: rgba(255, 255, 255, 0.08);
    --homepage-text: #e6f4ff;
    --homepage-muted: rgba(230, 244, 255, 0.75);
    --homepage-accent: #3b82f6;
    --homepage-accent-alt: #2563eb;
    --homepage-gradient-start: #0a1628;
    --homepage-gradient-end: #1a2f4a;
    --homepage-shadow: 0 25px 55px rgba(4, 20, 40, 0.45);
    --homepage-radius: 0;
}

/* Override dp-main background */
.dp-main {
    background: var(--homepage-bg) !important;
    color: var(--homepage-text);
}

/* Background gelap di area footer untuk index.php */
body.has-global-sidebars .dp-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(var(--sidebar-left-width) + 5px);
    right: calc(var(--sidebar-right-width) + 5px);
    height: 400px;
    background: linear-gradient(135deg, rgba(7, 19, 33, 0.98), rgba(10, 22, 40, 0.98));
    z-index: -1;
    pointer-events: none;
    display: none;
}

body.has-global-sidebars .saphira-footer {
    position: relative !important;
    z-index: 1;
    width: calc(100vw - var(--sidebar-left-width, 300px) - var(--sidebar-right-width, 300px) - 10px) !important;
    max-width: calc(100vw - var(--sidebar-left-width, 300px) - var(--sidebar-right-width, 300px) - 10px) !important;
    margin-left: calc(var(--sidebar-left-width, 300px) + 5px) !important;
    margin-right: calc(var(--sidebar-right-width, 300px) + 5px) !important;
    box-sizing: border-box !important;
}

/* Ensure all sections have proper background */
.dp-main > section {
    background: var(--homepage-bg);
}

/* Hero Section */
.dp-hero {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), transparent),
        linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(26, 47, 74, 0.95));
    padding: 60px 0 40px;
    color: var(--homepage-text);
    position: relative;
    overflow: hidden;
}

.dp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/icon-hero.jpeg') center/cover;
    opacity: 0.05;
    mix-blend-mode: screen;
    pointer-events: none;
}

.dp-hero-content {
    position: relative;
    z-index: 1;
}

.dp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.dp-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--homepage-text);
}

.dp-highlight {
    background: linear-gradient(135deg, var(--homepage-accent), var(--homepage-accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dp-hero-content > p {
    color: var(--homepage-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 600px;
}

.dp-sambutan {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    margin: 24px 0;
}

.dp-sambutan img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--homepage-accent);
    flex-shrink: 0;
}

.dp-sambutan strong {
    display: block;
    color: var(--homepage-text);
    font-size: 1rem;
    margin-bottom: 4px;
}

.dp-sambutan p {
    color: var(--homepage-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.dp-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dp-hero-visual {
    position: relative;
    z-index: 1;
}

/* Kepala Desa Card */
.dp-kepala-desa-card {
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 32px;
    box-shadow: var(--homepage-shadow);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.dp-kepala-desa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--homepage-accent), var(--homepage-accent-alt));
    opacity: 0.8;
}

.dp-kepala-desa-photo {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--homepage-accent);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.dp-kepala-desa-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dp-kepala-desa-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--homepage-accent), var(--homepage-accent-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--homepage-card);
}

.dp-kepala-desa-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.dp-kepala-desa-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-kepala-desa-name strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--homepage-text);
    line-height: 1.2;
}

.dp-kepala-desa-name span {
    font-size: 0.9rem;
    color: var(--homepage-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dp-kepala-desa-sambutan {
    position: relative;
    padding: 24px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    text-align: left;
    z-index: 2;
}

.dp-quote-icon {
    position: absolute;
    top: 16px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--homepage-accent);
    font-size: 0.9rem;
}

.dp-kepala-desa-sambutan p {
    margin: 0;
    padding-top: 12px;
    padding-left: 48px;
    color: var(--homepage-text);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    opacity: 0.95;
}

.dp-kepala-desa-sambutan .dp-empty-message {
    padding-left: 0;
    text-align: center;
    font-style: normal;
    color: var(--homepage-muted);
    opacity: 0.6;
}

/* Status Cards Component */
.component-status {
    margin-top: -50px;
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.component-status .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-status__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 24px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.component-status__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.component-status__card:hover::before {
    opacity: 1;
}

.component-status__card:hover {
    transform: translateY(-8px);
    border-color: var(--homepage-accent);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.component-status__icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    flex-shrink: 0;
    z-index: 2;
}

.component-status__icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.component-status__card--recycle .component-status__icon-bg {
    background: linear-gradient(135deg, #10b981, #059669);
}

.component-status__card--reuse .component-status__icon-bg {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.component-status__card--compost .component-status__icon-bg {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.component-status__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.component-status__label {
    display: block;
    color: var(--homepage-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 700;
}

.component-status__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.1;
}

.component-status__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
}

/* Innovation Cards Component */
.component-inovasi {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-inovasi .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-inovasi__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-inovasi__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-inovasi__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-inovasi__card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.component-inovasi__card:hover {
    transform: translateY(-12px);
    border-color: var(--homepage-accent);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.component-inovasi__image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #000;
}

.component-inovasi__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.component-inovasi__card:hover .component-inovasi__image {
    transform: scale(1.15);
}

.component-inovasi__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.component-inovasi__card:hover .component-inovasi__overlay {
    opacity: 1;
}

.component-inovasi__category {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--homepage-text);
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.component-inovasi__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.component-inovasi__status--success {
    background: rgba(16, 185, 129, 0.8);
    color: #ffffff;
}

.component-inovasi__status--warning {
    background: rgba(245, 158, 11, 0.8);
    color: #ffffff;
}

.component-inovasi__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.component-inovasi__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.component-inovasi__card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--homepage-text);
    line-height: 1.3;
}

.component-inovasi__card-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    flex: 1;
}

.component-inovasi__action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--homepage-accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.component-inovasi__action:hover {
    color: var(--homepage-accent-alt);
    gap: 14px;
}

.component-inovasi__action i {
    transition: transform 0.3s ease;
}

.component-inovasi__action:hover i {
    transform: translateX(6px);
}

/* Digital Services Component */
.component-layanan {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-layanan .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-layanan__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-layanan__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-layanan__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-layanan__card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.component-layanan__card:hover {
    transform: translateY(-8px);
    border-color: var(--homepage-accent);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.component-layanan__icon-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.component-layanan__icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--service-bg), var(--service-icon));
    opacity: 0.2;
}

.component-layanan__icon {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--service-bg), var(--service-icon));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    z-index: 1;
}

.component-layanan__card-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--homepage-text);
}

.component-layanan__card-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--homepage-muted);
    line-height: 1.6;
}

/* Berita Component */
.component-berita {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-berita .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-berita__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-berita__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-berita__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-berita__card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.component-berita__card:hover {
    transform: translateY(-8px);
    border-color: var(--homepage-accent);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.component-berita__image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.component-berita__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.component-berita__card:hover .component-berita__image {
    transform: scale(1.1);
}

.component-berita__date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: var(--homepage-text);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.component-berita__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.component-berita__title-card {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--homepage-text);
    line-height: 1.3;
}

.component-berita__excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--homepage-muted);
    line-height: 1.6;
    flex: 1;
}

.component-berita__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--homepage-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.component-berita__link:hover {
    color: var(--homepage-accent-alt);
    gap: 12px;
}

.component-berita__link i {
    transition: transform 0.3s ease;
}

.component-berita__link:hover i {
    transform: translateX(4px);
}

/* Penduduk Component */
.component-penduduk {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-penduduk .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-penduduk__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-penduduk__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-penduduk__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-penduduk__card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.component-penduduk__card:hover {
    transform: translateY(-8px);
    border-color: var(--homepage-accent);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.component-penduduk__icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--homepage-accent), var(--homepage-accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}

.component-penduduk__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--homepage-text);
    margin-bottom: 8px;
}

.component-penduduk__label {
    font-size: 0.9rem;
    color: var(--homepage-muted);
    font-weight: 600;
}

/* APBDes Component */
.component-apbdes {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-apbdes .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-apbdes__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-apbdes__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-apbdes__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-apbdes__chart-card,
.component-apbdes__detail-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 24px;
}

.component-apbdes__chart-title,
.component-apbdes__detail-title {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--homepage-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.component-apbdes__chart-title i,
.component-apbdes__detail-title i {
    color: var(--homepage-accent);
}

/* Video Component */
.component-video {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-video .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-video__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-video__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-video__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-video__card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    overflow: hidden;
    transition: all 0.4s ease;
}

.component-video__card:hover {
    transform: translateY(-8px);
    border-color: var(--homepage-accent);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.component-video__frame-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.component-video__frame {
    width: 100%;
    height: 100%;
}

.component-video__frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.component-video__body {
    padding: 20px;
}

.component-video__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--homepage-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.component-video__meta i {
    color: var(--homepage-accent);
}

.component-video__title-card {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--homepage-text);
    line-height: 1.3;
}

/* Galeri Component */
.component-galeri {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-galeri .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-galeri__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-galeri__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-galeri__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-galeri__card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    overflow: hidden;
    transition: all 0.4s ease;
}

.component-galeri__card:hover {
    transform: translateY(-8px);
    border-color: var(--homepage-accent);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.component-galeri__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
}

.component-galeri__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.component-galeri__card:hover .component-galeri__image {
    transform: scale(1.1);
}

.component-galeri__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.component-galeri__card:hover .component-galeri__overlay {
    opacity: 1;
}

.component-galeri__zoom {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.component-galeri__caption {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--homepage-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.component-galeri__caption i {
    color: var(--homepage-accent);
}

/* Peta Component */
.component-peta {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-peta .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-peta__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-peta__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-peta__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-peta__map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--homepage-radius);
    overflow: hidden;
    border: 1px solid var(--homepage-stroke);
    margin-bottom: 20px;
}

.component-peta__map {
    width: 100%;
    height: 100%;
}

.component-peta__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.component-peta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.component-peta__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--homepage-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.component-peta__button--primary {
    background: linear-gradient(135deg, var(--homepage-accent), var(--homepage-accent-alt));
    color: white;
}

.component-peta__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.component-peta__button--secondary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--homepage-stroke);
    color: var(--homepage-text);
}

.component-peta__button--secondary:hover {
    border-color: var(--homepage-accent);
    background: rgba(59, 130, 246, 0.1);
}

/* Kategori Component */
.component-kategori {
    padding: 60px 0;
    background: var(--homepage-bg);
}

.component-kategori .dp-container {
    position: relative;
    background: var(--homepage-card);
    border: 1px solid var(--homepage-stroke);
    border-radius: var(--homepage-radius);
    padding: 40px 32px;
    box-shadow: var(--homepage-shadow);
}

.component-kategori__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--homepage-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-kategori__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--homepage-text);
    line-height: 1.2;
}

.component-kategori__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--homepage-muted);
    line-height: 1.7;
    max-width: 600px;
}

.component-kategori__action {
    text-align: center;
    margin-top: 32px;
}

.component-kategori__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--homepage-accent), var(--homepage-accent-alt));
    border: 1px solid var(--homepage-accent);
    border-radius: var(--homepage-radius);
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-kategori__button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--homepage-accent-alt), var(--homepage-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.component-kategori__button:hover::before {
    opacity: 1;
}

.component-kategori__button span,
.component-kategori__button i {
    position: relative;
    z-index: 1;
}

.component-kategori__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.component-kategori__button i {
    transition: transform 0.3s ease;
}

.component-kategori__button:hover i {
    transform: translateX(4px);
}

/* Override inline styles from components */
.component-status .dp-container,
.component-inovasi .dp-container,
.component-layanan .dp-container,
.component-berita .dp-container,
.component-penduduk .dp-container,
.component-apbdes .dp-container,
.component-video .dp-container,
.component-galeri .dp-container,
.component-peta .dp-container,
.component-kategori .dp-container {
    background: var(--homepage-card) !important;
    border: 1px solid var(--homepage-stroke) !important;
    border-radius: var(--homepage-radius) !important;
    box-shadow: var(--homepage-shadow) !important;
}

/* Override component backgrounds */
.component-status,
.component-inovasi,
.component-layanan,
.component-berita,
.component-penduduk,
.component-apbdes,
.component-video,
.component-galeri,
.component-peta,
.component-kategori {
    background: var(--homepage-bg) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dp-hero {
        padding: 40px 0 30px;
        position: relative;
    }

    .dp-hero::after {
        opacity: 0.03;
    }

    .dp-hero-content {
        position: relative;
        z-index: 2;
    }

    .dp-hero-content h1,
    .dp-hero-content > p,
    .dp-pill {
        position: relative;
        z-index: 2;
    }

    .dp-hero-grid {
        flex-direction: column;
        gap: 32px;
    }

    .dp-hero-visual {
        order: -1;
        position: relative;
        z-index: 2;
    }

    /* Kepala Desa Card Mobile */
    .dp-kepala-desa-card {
        padding: 24px 20px;
        gap: 20px;
        position: relative;
        z-index: 2;
        background: rgba(7, 19, 33, 0.95);
    }

    .dp-kepala-desa-photo {
        width: 120px;
        height: 120px;
        position: relative;
        z-index: 2;
    }

    .dp-kepala-desa-name {
        position: relative;
        z-index: 2;
    }

    .dp-kepala-desa-name strong {
        font-size: 1.3rem;
    }

    .dp-kepala-desa-sambutan {
        padding: 20px;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        position: relative;
        z-index: 3;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .dp-kepala-desa-sambutan p {
        padding-left: 40px;
        font-size: 0.95rem;
        color: var(--homepage-text) !important;
        opacity: 1 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
        position: relative;
        z-index: 2;
    }

    .dp-quote-icon {
        top: 12px;
        left: 16px;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        position: relative;
        z-index: 2;
    }

    .component-status {
        margin-top: -30px;
        padding: 40px 0;
    }

    .component-status .dp-container,
    .component-inovasi .dp-container,
    .component-layanan .dp-container,
    .component-berita .dp-container,
    .component-penduduk .dp-container,
    .component-apbdes .dp-container,
    .component-video .dp-container,
    .component-galeri .dp-container,
    .component-peta .dp-container,
    .component-kategori .dp-container {
        padding: 24px 20px;
    }

    /* Grid layouts untuk mobile */
    .component-inovasi__grid,
    .component-layanan__grid,
    .component-berita__grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Status cards stack vertically di mobile */
    .component-status .dp-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .component-status__card {
        width: 100%;
        flex-direction: row;
        padding: 20px;
    }

    .component-status__icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .component-status__value {
        font-size: 1.5rem;
    }

    /* Hero stats grid untuk mobile */
    .hero-stat-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .hero-stat-card {
        padding: 16px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .dp-hero {
        padding: 32px 0 24px;
    }

    .dp-hero-content h1 {
        font-size: 1.75rem;
    }

    .dp-hero-content > p {
        font-size: 0.95rem;
    }

    .component-status .dp-container,
    .component-inovasi .dp-container,
    .component-layanan .dp-container {
        padding: 20px 16px;
    }

    .component-status__card {
        padding: 16px;
        gap: 12px;
    }

    .component-status__icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .component-status__value {
        font-size: 1.3rem;
    }

    .component-inovasi__card-title {
        font-size: 1rem;
    }

    .component-inovasi__card-desc {
        font-size: 0.85rem;
    }
}

/* Footer Responsive - konsisten dengan laman lain */
@media (max-width: 1200px) {
    body.has-global-sidebars .saphira-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    body.has-global-sidebars .saphira-footer::before {
        left: 0 !important;
        right: 0 !important;
    }
}

@media (max-width: 768px) {
    body.has-global-sidebars .saphira-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 32px 0 20px !important;
    }
}

