/* Reset & Font */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e3a8a;
    --light-gray: #f0f2f5;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text-color); line-height: 1.6; background: var(--card-bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Tombol */
.btn { padding: 12px 24px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary { background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(37, 99, 235, 0.3); }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: white; }
.btn-danger { background-color: #ef4444; color: white; }
.btn-danger:hover { background-color: #dc2626; }
.btn-success { background-color: #22c55e; color: white; }
.btn-success:hover { background-color: #16a34a; }

/* Header & Navigasi */
#main-header { position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; transition: background-color 0.3s ease, box-shadow 0.3s ease; padding: 1rem 0; }
#main-header.scrolled { background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
#main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 50px; }
.main-nav { display: flex; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: var(--secondary-color); text-decoration: none; font-weight: 600; position: relative; padding-bottom: 5px; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; } /* DIGABUNG: Hover dan active */
.hamburger-menu { display: none; background: none; border: none; font-size: 1.8rem; color: var(--secondary-color); cursor: pointer; }

/* Hero Section */
.hero { min-height: 100vh; background: url('https://placehold.co/1920x1080/e0e7ff/3730a3?text=IPM+Background') no-repeat center center/cover; position: relative; display: flex; align-items: center; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(30, 58, 138, 0.5); }
.hero-content { position: relative; z-index: 2; color: white; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem auto; }

/* Animasi */
.animate-on-load { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.animate-on-load:nth-child(2) { animation-delay: 0.2s; }
.animate-on-load:nth-child(3) { animation-delay: 0.4s; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Sections & Cards */
.content-section { padding: 5rem 0; }
/* DITAMBAHKAN: Memberi jarak dari header untuk halaman terpisah */
.page-section { padding-top: 120px; }
.bg-light { background-color: #f8fafc; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--secondary-color); }
.card { background: var(--card-bg); border-radius: var(--border-radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.card-image-wrapper { width: 100%; height: 200px; overflow: hidden; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 1.5rem; }
.card-content h4 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.card-content p { font-size: 0.95rem; color: #666; }
.card .tanggal { display: block; margin-top: 1rem; font-size: 0.85rem; color: #999; }
.kegiatan-grid, .berita-grid, .calon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.bidang-container h3 { font-size: 1.8rem; margin-bottom: 1.5rem; border-left: 4px solid var(--primary-color); padding-left: 1rem; }

/* Pengurus Section */
.pengurus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.pengurus-card { text-align: center; }
.pengurus-foto { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--card-bg); box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 1rem; }
.pengurus-nama { font-size: 1.2rem; }
.pengurus-jabatan { color: #777; font-size: 0.9rem; }

/* Pemilihan Section */
.status-pemilihan { background: var(--light-gray); text-align: center; padding: 2rem; border-radius: var(--border-radius); border: 1px dashed #ccc; margin-bottom: 2rem; }

/* Footer */
footer { background: var(--secondary-color); color: white; padding: 2rem 0; text-align: center; }
.social-links a { color: white; margin: 0 0.5rem; font-size: 1.2rem; }

/* ================================================= */
/* ADMIN DASHBOARD STYLES                */
/* ================================================= */
.admin-body-sidebar { background-color: var(--light-gray); }
.admin-wrapper { display: flex; min-height: 100vh; position: relative; }
.sidebar { width: 260px; background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%); color: white; display: flex; flex-direction: column; flex-shrink: 0; transition: margin-left 0.3s ease-in-out; z-index: 1000; }
.sidebar-header { padding: 1.5rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo { height: 40px; }
.sidebar-title { font-size: 1.2rem; margin: 0; }
.sidebar-nav { flex-grow: 1; padding: 1rem 0; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav a { display: flex; align-items: center; gap: 1rem; color: #e0e7ff; text-decoration: none; padding: 0.9rem 1.5rem; transition: background-color 0.2s ease, color 0.2s ease; border-left: 4px solid transparent; }
.sidebar-nav a:hover { background-color: rgba(255,255,255,0.1); color: white; }
.sidebar-nav a.active { background-color: rgba(255,255,255,0.1); border-left-color: #a5b4fc; color: white; font-weight: 600; }
.sidebar-nav a i { width: 20px; text-align: center; font-size: 1.1rem; }
.sidebar-footer { padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer .btn { width: 100%; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }

/* Content Area */
.content-wrapper { flex-grow: 1; display: flex; flex-direction: column; }
.admin-topbar { background: var(--card-bg); display: flex; align-items: center; height: 70px; padding: 0 2rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 999; }
.hamburger-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-color); margin-right: 1.5rem; }
#topbar-title { font-size: 1.5rem; margin: 0; color: var(--text-color); font-weight: 600; }
.main-content { padding: 2rem; }
.admin-section { background: var(--card-bg); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); margin-bottom: 2rem; }
.admin-section h2 { margin-bottom: 1.5rem; }

/* ================================================= */
/* RESPONSIVE STYLES                  */
/* ================================================= */
@media (max-width: 992px) {
    /* Main Website Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links.nav-active {
        right: 0;
    }
    .hamburger-menu {
        display: block;
        z-index: 1001;
    }
    .hamburger-menu i.fa-times {
        color: var(--text-color);
    }
    .hero-content h1 { font-size: 2.5rem; }

    /* Admin Dashboard Sidebar */
    .sidebar { position: fixed; left: -260px; height: 100%; transition: left 0.3s ease-in-out; }
    .admin-wrapper.sidebar-visible .sidebar { left: 0; }
    .admin-wrapper.sidebar-visible .sidebar-overlay { display: block; }
    .admin-wrapper.sidebar-collapsed .sidebar { margin-left: 0; left: -260px; }
    .content-wrapper { width: 100%; }
}

