main {
  width: 100%;
  /* background: #f1f9ff; */
  background: #ddedf9;
  padding-block: 50px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

section {
  width: 100%;
  /* max-width: 1440px; */
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
}

.header-pages {
  width: 100%;
  position: relative;
  
}

.header-pages::after {
  content: "";
  height: 5px;
  width: 100%;
  border-radius: 5px;
  background: var(--secondary-color);
  position: absolute;
  bottom: 0;
  left: 0;
}

.header-pages h1 {
  font-size: 44px;
  font-weight: 900;
  color: var(--primary-color);
}

.filter-side {
  grid-column: span 2 / span 2;
  width: 100%;
  height: 100%;
  max-width: 250px;
}

.filter-card {
  background: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
  width: auto;
  height: auto;
  padding: 16px;
  /* aspect-ratio: 225/338; */
  /* aspect-ratio: 1/1.5; */
}

.filter-card h5 {
  font-size: 20px;
}

.fiter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 450px;
}

.fiter-group > img {
  height: 100%;
  /* object-fit: cover; */
  object-fit: contain;
  width: auto;
  border-radius: 12px;
  overflow: hidden;
}

label.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox {
  width: 20px;
  height: 20px;
  background-color: rgb(219, 219, 219);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.checkbox input[type="checkbox"] {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.checkbox svg {
  position: absolute;
  width: 16px;
  height: 16px;
  fill: black;
  display: none;
}

.checkbox-container input[type="checkbox"]:checked + svg {
  display: block;
}

.checkbox-label {
  color: #111827;
  font-size: 16px;
}

.side,
.container-pages {
  grid-column: span 5 / span 5;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.card-pages {
  background: white;
  padding: 40px;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.berita-image {
  grid-column: span 2 / span 2;
  width: 100%;
  aspect-ratio: 5/3;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-height: 350px;
  margin-bottom: 20px;
}

.berita-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  
}

.info {
  width: 100%;
  text-align: start;
  padding-block: 8px;
}

.top-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.top-wrap .badge {
  padding: 2px 12px;
  border-radius: 12px;
  background: var(--secondary-color);
  width: fit-content;
  font-weight: 700;
  color: var(--primary-color);
  font-size: var(--text-sm);
  line-height: var(--text-height-sm);
}

.top-wrap .title {
  width: fit-content;
  font-weight: 800;
  color: var(--primary-color);
  font-size: 28px;
  line-height: 1.25;
}

.title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info .time {
  font-size: var(--text-sm);
  line-height: var(--text-height-sm);
  color: #878787;
}

.pagination {
  display: flex;
  margin-inline: auto;
  align-items: center;
  gap: 16px;
}

.pagination button {
  height: 36px;
  width: 36px;
  background: var(--secondary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button svg {
  height: 24px;
  width: 24px;
  fill: var(--primary-color);
}

.pagination p {
  font-size: var(--text-lg);
  line-height: var(--text-height-lg);
  font-weight: 600;
}

@media (max-width: 768px) {
  section.pages {
    flex-direction: column; 
  }
}



a.download-link {
  font-size: var(--text-md);
  line-height: var(--text-height-base);
  font-weight: 600;
  padding-bottom: 2px;
  position: relative;
  text-decoration: none;
}
/* a.download-link:hover {
  font-size: var(--text-xl);
  line-height: var(--text-height-2xl);
  font-weight: 800;
  border-bottom: 1px solid var(--primary-color);
} */

a.download-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}


a.download-link:hover::after {
  width: 100%;
}

.badge {
  padding: 2px 12px;
  border-radius: 12px;
  background: var(--secondary-color);
  width: fit-content;
  font-weight: 700;
  color: var(--primary-color);
  font-size: var(--text-sm);
  line-height: var(--text-height-sm);
}

.icon-file-download {
  font-size: 25px;
  padding: 0px 5px;
  color: var(--primary-color);
}