.container {
  font-family: "Open Sans", sans-serif;
  color: #191717;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 200px;
}

.top-headlines {
  display: flex;
  width: 70%;
}

.top-headlines .headlines-title a {
  margin: 0 20px 0 0;
  color: #181818;
}

.top-headlines .headlines-title a:hover {
  color: #ad2139;
}

.top-headlines .headlines-title .sub-kategori {
  margin: 0 20px 0 0;
  color: #ad2139;
}

.top-headlines .row {
  margin: 0 20px 0 0;
}

.headlines-type {
  display: inline-block;
  color: rgb(204, 9, 9);
  margin: 0 20px 0 0;
}

.top-headlines h3 {
  display: flex;
}

.trending-articles-container {
  width: 70%;
  margin: 0 auto;
  display: flex;
  border: 1px solid #191717;
  margin: 30px 0 50px 0;
}

.trending-articles {
  width: 100%;
  display: flex;
}

.article-header {
  text-decoration: none;
  color: black;
}

.main-article {
  width: 100%;
  display: flex;
}

.news-title {
  margin: 1em 2em;
  display: flex;
  font-size: 24px;
  flex-direction: column;
  justify-content: center;
  width: 40%;
}

.news-title p {
  color: #191717;
  padding-top: 16px;
  font-weight: 500;
  font-size: 16px;
}

.image-main-article {
  width: 600px;
  height: 400px;
  padding: 20px;
  object-fit: cover;
  transition: 0.5s ease;
}

.main-article:hover .image-main-article {
  transform: scale(1.02);
}

.main-article a {
  display: flex;
  color: #181818;
}

.main-article .category {
  font-size: 14px;
  font-weight: 700;
  color: #ad2139;
}

.main-article a:hover {
  color: #ad2139;
}

.article-list {
  width: 30%;
  box-sizing: border-box;
  padding: 0 0 0 2em;
}

.article-list-item {
  display: flex;
  justify-content: space-between;
  padding: 1em 0;
  border-bottom: 1px solid #ad2139;
}

.article-list-item:first-child {
  padding-top: 0;
}

.article-list-item:last-child {
  border-bottom: none;
}

.terbaru-title {
  margin: 1em 3em;
  display: flex;
  font-size: 20px;
  flex-direction: column;
  justify-content: center;
  width: 35%;
}

.terbaru-title p {
  font-size: 14px;
  color: #ad2139;
  margin: 16px 0;
}

.publish-date {
  color: gray;
  font-size: 14px;
  font-weight: 700;
}

.article-list-item img {
  width: 25%;
}

.article-list-item .article-header {
  width: 70%;
  font-weight: 400;
  line-height: 1.2;
  font-size: 1em;
}

.article-list-item .article-header:hover {
  color: #2f1412;
}

.section-header {
  width: 70%;
  margin: 0 auto;
  color: #f1f6f9;
  font-size: 1.2em;
  font-weight: 700;
  margin: 1em 0 2em 0;
  border-bottom-left-radius: 10px;
  border-bottom: 1px solid #14274e;
}

.section-header h2 {
  background-color: #14274e;
  padding: 0.2em 0.5em;
  width: 30%;
  border-radius: 10px;
  border-bottom-right-radius: 0;
}

.berita {
  display: flex;
  width: 70%;
  margin: 0 auto;
  flex-direction: column;
  padding: 1em 0;
}

.berita-terbaru {
  display: flex;
  transition: 0.5s ease;
}

.berita-terbaru:hover .berita-article img {
  transform: scale(1.02);
}

.berita-article img {
  width: 400px;
  height: 250px;
  object-fit: cover;
  transition: 0.5s ease;
}

.berita-article a {
  display: flex;
  margin-bottom: 50px;
  color: #181818;
}

.berita-article a:hover {
  color: #ad2139;
}

@media (min-width: 1441px) and (max-width: 1915px) {
  .top-headlines {
    width: 80%;
  }

  .trending-articles-container,
  .main-article,
  .berita,
  .section-header {
    width: 80%;
  }

  .main-article {
    width: 100%;
  }

  .article-list-item h1 {
    font-size: 12px;
  }

  .article-list-item img {
    width: 90px;
    height: 54px;
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  .top-headlines {
    width: 80%;
  }

  .trending-articles-container,
  .main-article {
    width: 80%;
  }

  .main-article {
    width: 100%;
  }

  .news-title {
    font-size: 24px;
  }

  .section-header {
    width: 80%;
  }

  .berita {
    width: 80%;
  }

  .article-list-item h1 {
    font-size: 12px;
  }

  .article-list-item img {
    width: 90px;
    height: 54px;
  }
}

@media (max-width: 1280px) {
  .container {
    width: 100%;
  }

  .top-headlines {
    width: 80%;
  }

  .trending-articles-container {
    width: 80%;
  }

  .trending-articles {
    display: block;
    width: 100%;
  }

  .main-article a {
    display: flex;
    flex-direction: column;
  }

  .image-main-article {
    width: 100%;
    height: 600px;
    object-fit: inherit;
  }

  .news-title {
    font-size: 20px;
    width: 90%;
  }

  .section-header {
    width: 80%;
  }

  .section-header h2 {
    font-size: 18px;
    width: 35%;
    padding: 8px 8px;
  }

  .berita-utama {
    width: 80%;
  }

  .img-utama {
    width: 100%;
    height: 150px;
  }

  h1 {
    font-size: 14px;
  }

  .berita {
    width: 80%;
  }

  .berita-article img {
    width: 250px;
    height: 200px;
    object-fit: inherit;
  }

  .terbaru-title {
    font-size: 16px;
  }

  .rekomendasi-berita {
    width: 80%;
  }
}

@media (max-width: 758px) {
  .container {
    width: 100%;
  }

  .top-headlines {
    width: 80%;
  }

  .headlines-type {
    margin: 0 10px 0 0;
  }

  .top-headlines h3 {
    font-size: 14px;
  }

  .top-headlines .row {
    margin: 0 10px 0 0;
  }

  .top-headlines .headlines-title a {
    margin: 0 10px 0 0;
    color: #191717;
    font-size: 14px;
  }

  .trending-articles-container {
    width: 80%;
  }

  .main-article a {
    display: flex;
    flex-direction: column;
  }

  .trending-articles {
    display: block;
    width: 100%;
  }

  .image-main-article {
    width: 100%;
    height: 300px;
  }

  .image-secondary-article {
    width: 100px;
    height: 100px;
    object-fit: inherit;
  }

  .news-title {
    font-size: 18px;
    width: 90%;
    margin: 1em;
  }

  .main-article p {
    font-size: 14px;
    width: 100%;
  }

  .main-article .category {
    font-size: 12px;
  }

  .publish-date {
    font-size: 12px;
  }

  .section-header {
    width: 80%;
  }

  .section-header h2 {
    font-size: 16px;
    width: 50%;
  }

  .berita {
    width: 80%;
  }

  .berita-article img {
    width: 45%;
  }

  .terbaru-title {
    font-size: 14px;
    margin: 2em;
    width: 100%;
  }

  .terbaru-title p {
    font-size: 11px;
  }
}

@media (max-width: 450px) {
  .container {
    width: 100%;
  }

  .top-headlines {
    width: 80%;
  }

  .headlines-type {
    margin: 0 10px 0 0;
  }

  .top-headlines h3 {
    font-size: 11px;
  }

  .top-headlines .row {
    margin: 0 10px 0 0;
  }

  .top-headlines .headlines-title a {
    margin: 0 10px 0 0;
    color: #191717;
    font-size: 11px;
  }

  .trending-articles-container {
    width: 80%;
    display: flex;
    flex-direction: column;
  }

  .trending-articles {
    display: block;
    width: 100%;
  }

  .main-article a {
    display: flex;
    flex-direction: column;
  }

  .main-article p {
    font-size: 12px;
  }

  .main-article .category {
    font-size: 10px;
  }

  .publish-date {
    font-size: 10px;
  }

  .image-main-article {
    width: 100%;
    height: 300px;
  }

  .news-title {
    font-size: 16px;
    width: 90%;
    margin: 1em;
  }

  .section-header {
    width: 80%;
  }

  .section-header h2 {
    font-size: 14px;
    width: 55%;
  }

  .terbaru-title {
    font-size: 14px;
    width: 100%;
    margin: 2em 0 2em 2em;
  }

  .berita {
    width: 80%;
  }

  .berita-article img {
    width: 45%;
    height: 180px;
  }
}
