/* RESET & VARIABLE (Default Color) */
:root {
    --primary: #0088cc; /* Ini akan ditimpa oleh PHP di Header */
    --dark: #333;
    --light: #f8f9fa;
    --white: #ffffff;
}

body { font-family: 'Segoe UI', Arial, sans-serif; margin: 0; padding: 0; background: var(--light); color: var(--dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* NAVBAR */
header { background: var(--primary); color: white; padding: 15px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 99; }
.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 24px; font-weight: bold; text-transform: uppercase; }
.nav-links li { display: inline-block; margin-left: 20px; }
.nav-links a { color: rgba(255,255,255,0.9); font-weight: 500; }
.nav-links a:hover { color: white; text-decoration: underline; }

/* HERO SECTION */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://source.unsplash.com/1600x900/?waterpark'); 
    background-size: cover; background-position: center; 
    color: white; padding: 100px 20px; text-align: center; margin-bottom: 40px; 
}
.hero h2 { font-size: 3rem; margin: 0 0 10px; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin: 0; opacity: 0.9; }

/* CONTENT GRID */
.grid-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.post-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.2s; }
.post-card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: #eee; }
.card-content { padding: 20px; }
.card-content h3 { margin: 0 0 10px; color: var(--primary); }
.btn-read { display: inline-block; margin-top: 10px; color: var(--primary); font-weight: bold; }

/* SINGLE PAGE */
.single-article { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.single-article h1 { color: var(--primary); font-size: 2.5rem; margin-top: 0; }
.meta { color: #888; border-bottom: 1px solid #eee; display: block; padding-bottom: 15px; margin-bottom: 20px; }
/* Content Body Styles (From CKEditor) */
.content-body h2, .content-body h3 { color: var(--primary); margin-top: 30px; }
.content-body ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.content-body p { margin-bottom: 15px; }

/* FOOTER */
footer { background: #2c3e50; color: #bdc3c7; text-align: center; padding: 30px 0; margin-top: 50px; }
footer a { color: #fff; }