/* -------------------------
   Reset & Base Styles
------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* -------------------------
   Header
------------------------- */
header {
  background-color: #0d3b66;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: #f0f0f0;
}

/* -------------------------
   Highlight Artikel
------------------------- */
.highlight-article {
  margin: 2rem 0;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight-card img {
  width: 100%;
  height: auto;
  display: block;
}

.highlight-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.highlight-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.highlight-text p {
  font-size: 1rem;
}

.highlight-text .date {
  font-size: 0.85rem;
  color: #ddd;
}

/* -------------------------
   Articles Grid
------------------------- */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Grid untuk berita & sidebar */
.articles-grid-section {
  flex: 3;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.75rem 1rem 0.5rem 1rem;
}

.news-card p {
  font-size: 0.95rem;
  margin: 0 1rem 0.5rem 1rem;
  color: #555;
}

.news-card .date {
  display: block;
  margin: 0 1rem 1rem 1rem;
  font-size: 0.8rem;
  color: #999;
}

/* -------------------------
   Sidebar
------------------------- */
.sidebar-categories {
  flex: 1;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-categories h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.sidebar-categories ul {
  list-style: none;
}

.sidebar-categories li {
  margin-bottom: 0.5rem;
}

.sidebar-categories li a {
  font-size: 0.95rem;
  color: #0d3b66;
}

.sidebar-categories li a:hover {
  text-decoration: underline;
}

/* -------------------------
   Footer
------------------------- */
footer {
  background-color: #0d3b66;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}
.badge-blogpartner {
  margin-top: 20px;
  text-align: center;
}

.badge-blogpartner img {
  max-width: 300px;
  height: auto;
}


/* -------------------------
   Responsive
------------------------- */
@media screen and (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar-categories {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }

  .highlight-text h3 {
    font-size: 1.3rem;
  }

  .news-card img {
    height: 140px;
  }
}
