/* Reset & body */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; line-height: 1.6; color: #222; background: #f4f4f4; }

/* Header */
header { background: #8b0000; padding: 10px 20px; }
.header-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
header nav a { color: #fff; text-decoration: none; margin-left: 15px; font-weight: 600; font-size: 14px; }
header nav a:hover { text-decoration: underline; }
.logo { height: auto; max-height: 50px; max-width: 130px; }

/* Header bottom / kontak bergerak horizontal */
.header-bottom {
  overflow: hidden;
  white-space: nowrap;
  background: #7a0000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 0;
}
.header-bottom p {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero { background: #8b0000; color: #fff; padding: 40px 20px; text-align: center; border-radius: 6px; margin: 20px 0; }
.hero h1 { font-size: 22px; margin-bottom: 10px; }
.hero p { font-size: 14px; margin-bottom: 15px; }
.btn-hero { background: #fff; color: #8b0000; padding: 8px 16px; text-decoration: none; font-weight: 600; border-radius: 4px; }
.btn-hero:hover { background: #f1f1f1; }

/* Main Content */
.content-wrapper { display: flex; flex-wrap: wrap; max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.articles { flex: 3; min-width: 250px; }
.sidebar { flex: 1; min-width: 200px; margin-left: 20px; background: #fff; padding: 20px; border-radius: 4px; }
.sidebar ul { list-style: none; }
.sidebar ul li { margin-bottom: 10px; }
.sidebar ul li a { text-decoration: none; color: #8b0000; font-weight: 600; font-size: 15px; }
.sidebar ul li a:hover { text-decoration: underline; }

/* Article Card */
.card { background: #fff; margin-bottom: 20px; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 20px; max-width: 800px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card h3 a { text-decoration: none; color: #8b0000; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: 15px; line-height: 1.7; color: #333; }

/* Footer */
footer { background: #222; color: #fff; padding: 20px; text-align: center; margin-top: 40px; }
.footer-bottom p { font-size: 12px; }

/* Responsive */
@media(max-width: 768px) {
  .header-top { flex-direction: column; align-items: flex-start; }
  .logo { max-height: 40px; }
  .content-wrapper { flex-direction: column; }
  .sidebar { margin-left: 0; margin-top: 20px; }
  .hero { padding: 30px 15px; }
  .hero h1 { font-size: 20px; }
  .btn-hero { padding: 6px 12px; font-size: 13px; }
  .card { padding: 15px; max-width: 100%; }
  .header-bottom p { font-size: 11px; animation-duration: 20s; }
}
