/* --- Dasar --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
}

/* --- Header --- */
header {
    background: #2c3e50;
    color: #ffffff;
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: #e8491d 4px solid;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* --- Navigasi --- */
nav {
    background: #34495e;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    background: #e8491d;
}

/* --- Layout Utama --- */
.container {
    max-width: 1100px;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
}

main {
    flex: 3;
    min-width: 300px;
    margin-right: 25px;
}

aside {
    flex: 1;
    min-width: 280px;
}

/* --- Kartu Postingan --- */
.card {
    background: #fff;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-style: italic;
}

.btn {
    display: inline-block;
    background: #e8491d;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    margin-top: 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #2c3e50;
}

/* --- Sidebar --- */
.sidebar-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sidebar-box h3 {
    border-bottom: #e8491d 3px solid;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.profile-section {
    text-align: center;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #e8491d;
    object-fit: cover;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: 0.2s;
}

.category-list li:hover {
    color: #e8491d;
    padding-left: 5px;
}

/* --- Footer --- */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
}

/* --- Responsive (HP) --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    main {
        margin-right: 0;
    }

    header h1 {
        font-size: 1.8rem;
    }
}