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

/* --- RESET & BASE --- */
:root {
    --primary: #0f172a; /* Slate 900 */
    --primary-light: #1e293b;
    --secondary: #3b82f6; /* Blue 500 */
    --accent: #f59e0b; /* Amber 500 */
    --accent-light: #fcd34d;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f8fafc; 
    --bg-card: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background: var(--bg-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-full { width: 100%; }
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 1.2rem; text-align: center; color: var(--primary); letter-spacing: -0.02em; }
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 4rem; font-size: 1.15rem; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.8; }

/* --- NAVBAR --- */
.navbar { 
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    transition: var(--transition);
}
.nav-flex { display: flex; align-items: center; justify-content: space-between; height: 85px; }
.logo img { height: 60px; transition: var(--transition); }
#nav-list { display: flex; align-items: center; gap: 32px; list-style: none; }
#nav-list li { position: relative; }
#nav-list li a { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--text-main); padding: 8px 0; position: relative; transition: var(--transition); }
#nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}
#nav-list li a:hover { color: var(--secondary); }
#nav-list li a:hover::after { width: 100%; }

.tombol-menu { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.tombol-menu .garis { width: 30px; height: 3px; background: var(--primary); border-radius: 4px; transition: var(--transition); transform-origin: center; }
.tombol-menu.active .garis:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.tombol-menu.active .garis:nth-child(2) { opacity: 0; }
.tombol-menu.active .garis:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Dropdown */
.dropdown-content {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 0;
}
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content li { width: 100%; list-style: none; }
.dropdown-content li a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.dropdown-content li a:hover { 
    background: rgba(59, 130, 246, 0.05); 
    color: var(--secondary); 
    padding-left: 30px;
    border-left-color: var(--secondary);
}
.dropdown-content li a::after { display: none; }

/* --- HERO --- */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%), url('asset/kse.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
}
.hero-content h1 { 
    font-size: 4.5rem; 
    font-weight: 900; 
    margin-bottom: 1.5rem; 
    line-height: 1.1; 
    letter-spacing: -0.04em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero-content p { 
    font-size: 1.6rem; 
    font-weight: 500; 
    opacity: 0.95; 
    margin-bottom: 2.5rem;
    font-family: 'Outfit', sans-serif;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- DESKRIPSI --- */
.deskripsi {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-top: -80px !important;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.4);
}

/* --- GALLERY --- */
.gallery-preview { margin-top: 20px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.preview-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 320px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.preview-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.preview-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.preview-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    padding: 30px 25px; color: #fff;
    transform: translateY(20px); opacity: 0; transition: var(--transition);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.preview-item:hover .preview-overlay { transform: translateY(0); opacity: 1; }
.preview-item:hover img { transform: scale(1.08); }
.preview-overlay h3 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; margin-bottom: 8px; color: var(--accent); font-weight: 700; }
.preview-overlay p { font-size: 0.9rem; opacity: 0.9; line-height: 1.5; }

@media (max-width: 992px) { .preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .preview-grid { grid-template-columns: 1fr; } .preview-item { height: 280px; } }

.preview-cta { margin-top: 50px; text-align: center; }
.btn-gallery {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
}
.btn-gallery:hover {
    background: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.4);
}

/* --- INOVASI --- */
.inovasi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.inovasi-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.inovasi-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.inovasi-img { width: 100%; height: 220px; object-fit: cover; }
.inovasi-info { padding: 25px; }
.inovasi-info h6 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; color: var(--primary); margin-bottom: 10px; font-weight: 700; line-height: 1.3; }
.inovasi-info span { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* --- BERITA --- */
.abuabu { background: #f1f5f9; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.berita-card {
    background: #fff; border-radius: var(--radius-xl); overflow: hidden;
    display: flex; flex-direction: column; box-shadow: var(--shadow-md); transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.berita-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.berita-card-thumb { height: 240px; background-size: cover; background-position: center; }
.berita-card-body { padding: 30px; }
.berita-card-body h4 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; margin-bottom: 12px; color: var(--primary); font-weight: 700; line-height: 1.3; }
.berita-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; display: block; font-weight: 500; }
.berita-card-body p { color: var(--text-muted); margin-bottom: 25px; font-size: 1rem; line-height: 1.6; }
.read-more { color: var(--secondary); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-family: 'Outfit', sans-serif; }
.read-more:hover { gap: 12px; color: #2563eb; }

/* --- FOOTER --- */
footer { background: var(--primary); color: #f8fafc; padding: 100px 0 40px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 70px; position: relative; z-index: 2; }
.footer-grid h5 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; margin-bottom: 25px; font-weight: 700; position: relative; color: #fff; }
.footer-grid h5::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 50px; height: 3px; background: var(--secondary); border-radius: 2px; }
.footer-grid p { font-size: 0.95rem; opacity: 0.8; line-height: 1.8; margin-bottom: 15px; }
.footer-social { display: flex; gap: 15px; margin-top: 30px; }
.footer-social-link {
    width: 45px; height: 45px; background: rgba(255,255,255,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    transition: var(--transition); border: 1px solid rgba(255,255,255,0.1);
}
.footer-social-link:hover { background: var(--secondary); transform: translateY(-5px); border-color: var(--secondary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.9rem; opacity: 0.7; position: relative; z-index: 2; }

/* --- MAIN GALLERY PAGE --- */
.gallery-grid-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 35px; margin-top: 50px; }
.gallery-card { background: #fff; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.03); }
.gallery-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.gallery-card-img { width: 100%; height: 220px; overflow: hidden; }
.gallery-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.gallery-card:hover .gallery-card-img img { transform: scale(1.08); }
.gallery-card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.gallery-card-body h3 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; color: var(--primary); margin-bottom: 12px; font-weight: 700; line-height: 1.3; }
.gallery-card-body p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.card-hint { font-size: 0.9rem; font-weight: 600; color: var(--secondary); display: flex; align-items: center; gap: 8px; transition: var(--transition); font-family: 'Outfit', sans-serif; }
.gallery-card:hover .card-hint { color: #2563eb; gap: 12px; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 3.5rem; }
}
@media (max-width: 992px) {
    .nav-flex { height: 75px; }
    .tombol-menu { display: flex !important; }
    #nav-list {
        position: fixed; top: 75px; left: -100%; width: 100%; height: calc(100vh - 75px);
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; padding: 40px; transition: var(--transition);
        box-shadow: var(--shadow-lg); align-items: flex-start;
        overflow-y: auto;
    }
    #nav-list.active { left: 0; }
    #nav-list li { width: 100%; }
    #nav-list li a { font-size: 1.3rem; display: block; padding: 15px 0; }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: transparent;
        transform: none;
    }
    .dropdown.open .dropdown-content { display: block !important; }
    .dropdown > a { display: flex; justify-content: space-between; align-items: center; }
    .preview-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 2.2rem; }
    .hero-section { height: 80vh; }
    .hero-content h1 { font-size: 2.8rem; }
}
@media (max-width: 480px) {
    .preview-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
}


/* --- ADMIN PANEL GLOBAL STYLES --- */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: #f4f7f6;
}

.admin-sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    position: fixed;
    height: 100vh;
    transition: var(--transition);
    z-index: 1000;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar h3 {
    text-align: center;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    padding: 0 20px;
}

.admin-menu { list-style: none; padding: 0; }
.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    border-left: 4px solid transparent;
}
.admin-menu li a i { width: 20px; font-size: 1.1rem; }
.admin-menu li a:hover, .admin-menu li a.active {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left-color: var(--secondary);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    transition: var(--transition);
}

.admin-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header h1 { font-size: 2rem; color: var(--primary); font-weight: 800; margin: 0; }
.admin-header p { color: var(--text-muted); margin-top: 5px; }

.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

/* --- ADMIN TABLES --- */
.admin-table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.admin-table th {
    text-align: left;
    padding: 18px 20px;
    background: #f8fafc;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #edf2f7;
}
.admin-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-size: 0.95rem;
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: #fcfdfe; }

.aksi { display: flex; gap: 10px; }
.btn-edit, .btn-hapus, .btn-tambah {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-edit { background: #e0f2fe; color: #0369a1; }
.btn-edit:hover { background: #0369a1; color: white; transform: translateY(-2px); }
.btn-hapus { background: #fee2e2; color: #b91c1c; }
.btn-hapus:hover { background: #b91c1c; color: white; transform: translateY(-2px); }

/* --- ADMIN FORMS --- */
.admin-form .form-group { margin-bottom: 25px; }
.admin-form label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: 700; 
    color: var(--primary); 
    font-size: 0.95rem;
}
.admin-form input, .admin-form textarea, .admin-form select { 
    width: 100%; 
    padding: 14px 18px; 
    border: 1.5px solid #e2e8f0; 
    border-radius: 12px; 
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fbfcfe;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: white;
    box-shadow: 0 0 0 4px rgba(0,31,63,0.08);
}
.admin-form textarea { resize: vertical; min-height: 120px; }

.btn-simpan { 
    background: var(--primary); 
    color: #fff; 
    padding: 16px 32px; 
    border: none; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,31,63,0.2);
}
.btn-simpan:hover { 
    background: var(--primary-dark); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0,31,63,0.3);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-active, .status-aktif { background: #dcfce7; color: #15803d; }
.status-draft, .status-nonaktif { background: #fee2e2; color: #b91c1c; }

/* --- ADMIN HAMBURGER --- */
.admin-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 10px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.admin-hamburger span {
    width: 25px;
    height: 3px;
    background: #0f172a;
    border-radius: 4px;
    transition: 0.3s ease;
    transform-origin: center;
}
.admin-hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.admin-hamburger.active span:nth-child(2) { opacity: 0; }
.admin-hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1200px) {
    .admin-hamburger { display: flex !important; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,0.2); }
    .admin-main { margin-left: 0; padding: 20px; padding-top: 85px; }
    .admin-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .welcome-card { padding: 30px; }
}

/* --- LOGOUT BUTTON --- */
.admin-logout {
    margin-top: auto;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-logout a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff4d4d;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    padding: 12px 20px;
    border-radius: 10px;
}
.admin-logout a:hover {
    background: rgba(255, 77, 77, 0.1);
    transform: translateX(5px);
}
.admin-logout a i { font-size: 1.2rem; }
