/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background: #222;
  color: #fff;
  padding: 0rem 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-width: 100%;
  height: auto;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Breaking news */
.breaking-news {
  background: #d62828;
  color: #fff;
  padding: 0.5rem 0;
}

.breaking-news h2 {
  margin-bottom: 0.5rem;
}

.ticker {
  overflow: hidden;
}

.ticker ul {
  display: flex;
  animation: ticker 15s linear infinite;
}

.ticker li {
  white-space: nowrap;
  margin-right: 3rem;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Main content */
.main-content {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.main-news {
  flex: 3;
}

.news-card {
  background: #fff;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-card img {
  width: 100%;
}

.news-content {
  padding: 1rem;
}

.news-content h3 {
  margin-bottom: 0.5rem;
}

.news-content p {
  margin-bottom: 0.5rem;
}

.news-content a {
  color: #d62828;
  text-decoration: none;
}

.news-content a:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  flex: 1;
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar h4 {
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 0.5rem;
}

.sidebar ul li a {
  color: #333;
  text-decoration: none;
}

.sidebar ul li a:hover {
  color: #d62828;
}

/* Footer */
footer {
  background-color: #000000;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo img {
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-nav a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #d62828;
}

.footer-copy {
  font-size: 0.8rem;
  color: #777;
}

.footer-social {
  margin-bottom: 1rem;
}
.footer-social a {
  margin: 0 0.5rem;
}
.footer-social img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.footer-social img:hover {
  filter: grayscale(0%);
}


.social-links a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media(max-width:768px) {
  .main-content {
    flex-direction: column;
  }
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between; /* default: logo kiri, menu kanan */
  padding: 0.5rem 0rem;
}

/* agar gambar logo tidak melebihi kontainer */
.logo img {
  max-width: 200px;
  height: auto;
}

/* responsive untuk mobile */
@media (max-width: 900px) {
  .header-wrapper {
    justify-content: center; /* logo di tengah */
    position: relative;
  }

  /* jika kamu punya hamburger nanti, atur posisinya tetap di kanan atas */
  .menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
  }
}
