:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --dark: #0f172a;
    --light: #f8f9fa;
    --gray: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 20px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #f8fafc;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    border-left: 2px solid #e2e8f0;
    padding-left: 12px;
    margin-left: 4px;
}

.brand-sub {
    font-size: 13px;
    color: var(--primary);
    /* Changed from var(--dark) to primary color */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Added subtle depth */
}

@media (max-width: 768px) {
    .nav-left {
        gap: 8px;
    }

    .brand-sub {
        font-size: 11px;
    }

    .brand-text {
        border: none;
        padding: 0;
    }
}

/* HERO / COVER - 100% VISIBILITY (NO CROPPING) */
.hero-container {
    width: 100%;
    height: auto;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    line-height: 0;
    margin-top: 70px;
    /* Offset for fixed navbar */
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
}

/* CONTENT SECTION */
.section-content {
    max-width: 1240px;
    margin: 40px auto 80px;
    /* No negative margin to prevent covering the image */
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.panel-header h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.6);
}

.btn-info {
    background: #f0f7ff;
    color: var(--primary);
}

.btn-info:hover {
    background: #e0f0ff;
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--white);
    border: 1.5px solid #e2e8f0;
    color: var(--gray);
}

.btn-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* GRID LAPORAN */
.panel-laporan {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.laporan-box {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.laporan-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-light);
}

.laporan-top {
    aspect-ratio: 16/10;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
}

.laporan-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.laporan-box:hover .laporan-top img {
    transform: scale(1.1);
}

.laporan-bottom {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.badge-bidang {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
    align-self: flex-start;
}

.laporan-bottom h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.tanggal-kegiatan {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: auto;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    animation: modalPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalPulse {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.modal-scroll {
    overflow-y: auto;
    width: 100%;
}

.modal-content img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
    word-wrap: break-word;
    /* Ensure long words wrap */
    overflow-wrap: break-word;
    white-space: normal;
    color: var(--dark);
    line-height: 1.8;
}

/* FOOTER */
footer {
    background: var(--dark);
    padding: 100px 5% 40px;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 1280px;
    margin: 0 auto;
}

footer h4 {
    color: var(--accent);
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 800;
}

footer p {
    color: #94a3b8;
    font-size: 16px;
    margin-bottom: 12px;
}

.copyright {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
}

/* RESPONSIVE DESIGN - MOBILE FIRST FIXES */

/* Desktop defaults are already above, let's refine and add media queries */

@media (max-width: 1024px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
    }

    .panel-laporan {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 12px;
        min-height: 55px;
    }

    .logo {
        height: 28px;
    }

    .brand-text {
        border: none;
        padding-left: 6px;
        display: flex !important;
    }

    .brand-sub {
        font-size: 9px;
        letter-spacing: -0.2px;
        line-height: 1.1;
        max-width: 150px;
        white-space: normal;
    }

    .hero-container {
        margin-top: 55px;
        height: auto;
    }

    .cover-image {
        width: 100%;
        height: auto;
    }

    .section-content {
        margin-top: 15px !important;
        padding: 0 12px;
    }

    .panel {
        padding: 20px 15px;
    }

    .panel-header h3 {
        font-size: 20px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 8px;
    }

    .panel-laporan {
        grid-template-columns: 1fr;
    }

    .laporan-bottom {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .brand-sub {
        font-size: 8px;
        max-width: 110px;
    }

    .logo {
        height: 24px;
    }

    .navbar {
        padding: 6px 10px;
    }

    /* Ensure the hero image doesn't get pushed too far or covered */
    .hero-container {
        margin-top: 60px;
    }

    .section-content {
        margin-top: 15px !important;
    }
}

.no-data {
    text-align: center;
    padding: 100px 24px;
    grid-column: 1 / -1;
    color: var(--gray);
}

.no-data i {
    font-size: 60px;
    margin-bottom: 24px;
    opacity: 0.3;
}