/* ======================================================================= */
/* FILE: /css/style.css (Untuk Proyek Hibrida "CakrawalaID")               */
/* ======================================================================= */
:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Poppins', sans-serif;
}

/* Base Styles (Mobile First) */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    line-height: 1.7;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; color: var(--text-color); }
header nav.desktop-nav { display: none; }
#mobile-menu-button { display: block; background: none; border: none; font-size: 1.8rem; cursor: pointer; }
nav#mobile-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--surface-color); border-bottom: 1px solid var(--border-color); }
nav#mobile-menu.active { display: block; }
nav#mobile-menu a { display: block; text-align: center; padding: 1rem; color: var(--text-color); text-decoration: none; border-top: 1px solid var(--border-color); }

/* Layout & Sections */
.section { padding: 2rem 0; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 2rem; }
.page-title { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
.page-subtitle { max-width: 800px; margin: -1rem auto 2rem; text-align: center; font-size: 1.1rem; color: var(--text-muted); }
.page-layout { display: flex; flex-direction: column; gap: 2rem; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 100%; }
.content-section { background: var(--surface-color); padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); }

/* Card Grid (Homepage) */
.grid-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card { background: var(--surface-color); border-radius: 8px; text-decoration: none; color: var(--text-color); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-content { padding: 1.5rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-muted); }

/* List Layout (Blog/Alat/Galeri list pages) */
.list-layout { display: flex; flex-direction: column; gap: 1rem; }
.list-item { background: var(--surface-color); border-radius: 8px; padding: 1.5rem; text-decoration: none; color: var(--text-color); transition: background-color 0.2s; border: 1px solid var(--border-color); }
.list-item:hover { background-color: #e9ecef; }
.list-item h3 { margin: 0 0 0.5rem; }

/* Slideshow/Gallery Styles */
.slideshow-container { background: var(--surface-color); padding: 1rem; border-radius: 8px; box-shadow: var(--shadow); margin-top: 2rem; }
.slideshow-header { text-align: center; padding: 0 1rem; }
.slideshow-header h1 { font-size: 1.8rem; margin: 0; }
.pagination { font-size: 1.2rem; font-weight: bold; color: var(--text-muted); margin: 0.5rem 0; }
.slide-image { width: 100%; max-height: 75vh; object-fit: contain; margin: 1rem 0; border-radius: 4px; }
.slide-caption { font-size: 1.1rem; text-align: center; padding: 0 1rem; color: #555; }
.nav-buttons { display: flex; justify-content: space-between; margin-top: 1.5rem; padding: 0 1rem; }
.nav-btn { background-color: var(--primary-color); color: #fff; text-decoration: none; padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: bold; transition: background-color 0.2s; }
.nav-btn.disabled { background-color: #ccc; cursor: not-allowed; pointer-events: none; }

/* Ad Placeholders */
.ad-placeholder { width: 100%; min-height: 100px; background: #e9e9e9; border: 2px dashed #ccc; display: flex; justify-content: center; align-items: center; color: #999; margin: 1.5rem auto; font-weight: bold; }

/* Footer */
footer { text-align: center; padding: 2rem 0; margin-top: 2rem; font-size: 0.9rem; color: #6c757d; border-top: 1px solid var(--border-color); }

/* Media Queries for bigger screens */
@media (min-width: 768px) {
    .grid-layout { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 3rem 0; }
}
@media (min-width: 992px) {
    #mobile-menu-button { display: none; }
    header nav.desktop-nav { display: block; }
    header nav.desktop-nav a { margin-left: 1.5rem; }
    .page-layout { flex-direction: row; }
    .main-content { flex: 0 0 70%; }
    .sidebar { flex: 0 0 27%; }
    .grid-layout { grid-template-columns: repeat(3, 1fr); }
}