/* Modern List Layout CSS for Bebas Theme */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --text-color: #333;
  --text-color-secondary: #666;
  --text-color-tertiary: #888;
  --border-color: #eee;
  --border-color-light: #f5f5f5;
  --card-bg: #fff;
  --bg-color: #f9f9f9;
}

[data-theme="dark"] {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --text-color: #e1e1e1;
  --text-color-secondary: #b0b0b0;
  --text-color-tertiary: #888;
  --border-color: #333;
  --border-color-light: #2a2a2a;
  --card-bg: #222;
  --bg-color: #1a1a1a;
}

body {
  background-color: var(--bg-color);
}

/* Layout Utama */
.main-content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.main-content {
  flex: 1;
  min-width: 65%;
}

.sidebar {
  width: 30%;
  min-width: 300px;
}

/* Home Welcome - Hidden as requested */
.home-welcome {
  display: none;
}

/* Post List Item */
.post-list-item {
  display: flex;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: var(--card-bg);
}

.post-image {
  width: 40%;
  height: 220px; /* Fixed height for consistent image size */
  position: relative;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images maintain aspect ratio and fill container */
  object-position: center; /* Centers the image */
}

.post-content {
  width: 60%;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 700;
}

.post-title a {
  color: var(--text-color);
  text-decoration: none;
}

.post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  margin-top: auto;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
}

.post-date {
  color: var(--text-color-tertiary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 40px;
}

.pagination a, .pagination .first-last-pages {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: var(--card-bg);
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sidebar Widgets */
.widget {
  margin-bottom: 40px;
  padding: 25px;
  border-radius: 10px;
  background-color: var(--card-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Recent Posts Widget */
.recent-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color-light);
}

.recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-image {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.recent-post-content {
  flex: 1;
}

.recent-post-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.recent-post-title a {
  color: var(--text-color);
  text-decoration: none;
}

.recent-post-meta {
  font-size: 12px;
  color: var(--text-color-tertiary);
}

/* Categories Widget */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color-light);
}

.categories-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
  .main-content {
    min-width: 100%;
  }
  
  .sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .post-list-item {
    flex-direction: column;
  }
  
  .post-image, .post-content {
    width: 100%;
  }
  
  .post-image {
    height: 200px;
  }
}
