main {
  padding: 140px 3%;
  background: #f5f5f5;
}

/* TOP */
.top {
  display: grid;
  grid-template-columns: 2fr 500px;
  gap: 30px;
}

.featured {
  position: relative;
  max-height: 460px;
  border-radius: 20px;
  overflow: hidden;
}

.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
}

.overlay h1 {
  font-size: 24px;
  margin: 10px 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  background: #fff;
  color: #000;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* SIDEBAR */
aside h2 {
  margin-bottom: 20px;
}

.post {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.post img {
  width: 125px;
  height: 91px;
  border-radius: 10px;
  object-fit: cover;
}

.post h3 {
  font-size: 14px;
  font-weight: 500;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SECTION */
.section {
  margin-top: 50px;
}

.section h2 {
  margin-bottom: 20px;
}

/* CARDS WRAPPER */
.cards-wrapper {
  overflow: hidden;
}

.cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  padding-bottom: 10px;

  user-select: none;
  -webkit-user-drag: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

.cards:active {
  cursor: grabbing;
}

/* CARD */
.card-blog {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
}

.card-blog-inner {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-blog img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  pointer-events: none;
}

.card-blog-content {
  padding: 15px;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

/* TITLE CLAMP */
.card-blog-content h3 {
  font-size: 16px;
  margin: 10px 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PARAGRAPH CLAMP */
.card-blog-content p {
  font-size: 14px;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FIX LINK STYLE */
.card-blog-content a {
  text-decoration: none;
  color: black;
}

/* CONTROLS */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.pagination {
  display: flex;
  gap: 10px;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
}

.pagination .active {
  background: #000;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .top {
    grid-template-columns: 1fr;
  }

  .card-blog {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .card-blog {
    flex: 0 0 100%;
  }

  .overlay h1 {
    font-size: 18px;
  }
}