#sidebar .box-tips,
.box-detail {
  margin-bottom: 15px;
}
#sidebar .box-sidebar {
  padding: 10px;
}
#sidebar .tips-title {
  font-size: 1.3em;
  font-weight: bold;
}
#sidebar .tips-item {
  line-height: 35px;
  font-weight: 600;
  position: relative;
}
#sidebar .tips-item span {
  color: #272626;
  margin-left: 30px;
}
#sidebar .icon-tips {
  width: 22px;
  position: absolute;
  top: 6px;
}
#sidebar .tags-item {
  background-color: #ece8e8;
  font-weight: 600;
  width: fit-content;
  padding: 5px 12px;
  margin-right: 5px;
  border-radius: 20px;
  margin-bottom: 5px;
  font-size: 0.95em;
  display: inline-block;
  color: #272626;
}
#sidebar .img-sidebar-news {
  width: 100%;
  max-height: 246px;
}
.colorC {
  color: #0041cc !important;
  font-weight: 600;
}
.colorL {
  color: #ff7f00 !important;
  font-weight: 600;
}
.all-news {
  padding: 15px 20px 0;
  border-bottom: 1px solid #c89390;
}
.content-media img {
  object-fit: contain;
  aspect-ratio: 12/5;
  object-position: top;
}
.box-filter {
  padding: 10px 15px;
  margin-bottom: 15px;
}
.image-new {
  width: 100%;
  border-radius: 10px;
}
.first-item {
  position: relative;
}
.first-item img {
  aspect-ratio: 11/5;
  object-position: top;
}
.list-item {
  margin-top: 15px;
}
.article-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #ffffff;
  padding: 15px 20px 20px;
  width: 100%;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0),
    rgba(113, 110, 110, 0.85)
  );
}
.article-info .title {
  font-weight: bold;
}
.article-info .time-up {
  font-size: 0.9em;
  opacity: 0.9;
}
.article-info .source {
  font-size: 0.8em;
}
.source {
  background-color: rgba(255, 255, 255, 0.69);
  color: #000;
  border-radius: 9px;
  padding: 1px 7px 0;
  margin-bottom: 3px;
}
.first-item .source {
  width: fit-content;
}
.box-news rt {
  font-size: 50%;
  font-weight: 300;
}
.recent-news .nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #ffffff;
  font-weight: bold;
  padding-left: 0;
}
.recent-news .nav-pills .nav-link span {
  font-size: 1.2em;
  color: #162528;
}
.recent-news .active-tab {
  width: 100%;
  height: 4px;
  margin-top: 3px;
  background-color: #302e43;
  font-weight: 700;
  border-radius: 3px;
  display: none;
}
.recent-news .item-recent {
  padding: 10px 0 5px;
  border-top: 1px solid #d9d9d9;
}
.recent-news .item-recent:first-child {
  border-top: none;
}
.recent-news .recent-title {
  font-size: 1.2em;
  letter-spacing: 1.35px;
  color: #272626;
}
.recent-news .time-up {
  font-size: 0.85em;
  color: #3f3f3f;
}
.recent-news .box-image {
  position: relative;
}
.recent-news .item-recent .img-news {
  border: 1px solid #d9d9d9;
}
.item-recent:hover .recent-title,
.news-item:hover .news-title {
  color: #0017a0;
}
.item-recent:hover .time-up {
  color: #001386;
}
.nav-pills .nav-link.active .active-tab {
  display: block;
}
.news-item,
.news-item:active {
  text-decoration: none;
  color: #272626 !important;
}
.news-item .time-up {
  position: absolute;
  bottom: 5px;
  font-size: 0.7em;
}
.news-title rt {
  font-size: 0.6em !important;
}
a:focus,
a:hover {
  text-decoration: none !important;
}
.translate {
  margin-top: 3px;
  float: right;
  color: #fff;
}
.item-content {
  position: relative;
}
.item-content .source {
  position: absolute;
  bottom: 3px;
  left: 5px;
  font-size: 0.65em;
  border: 1px solid #d9d9d9;
}
.readed {
  background: #606060c7;
  top: 0;
  right: 0;
  display: flex;
  position: absolute;
  font-size: 0.55rem;
  color: #ffffff;
  padding: 1px 4px;
  border-bottom-left-radius: 5px;
}
.readed img {
  margin-right: 2px;
}
.news-title {
  font-size: 0.8em;
  margin-bottom: 25px;
  text-align: justify;
  height: 100px;
  text-overflow: ellipsis;
}
.btn-dictionary {
  background-color: #1a085c;
  border-radius: 10px;
  padding: 8px 12px;
  color: white;
}
.btn-dictionary:hover,
.btn-dictionary:active {
  background-color: #2e0da9 !important;
  color: #fff !important;
}
#h3-bold-detail {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1.25px;
  line-height: 2.2em;
  max-width: 95%;
}
.content-media img,
.content-media video {
  width: 100%;
  border-radius: 7px;
}
.box-sidebar .more-data {
  font-size: 0.6em;
  margin-top: 5px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #d9d9d9;
}

.box-sidebar .item-sidebar:last-child .more-data {
  border-bottom: none;
}
.box-sidebar .time {
  float: right;
}
.box-sidebar .item-sidebar {
  color: #272626;
}
.box-sidebar .item-sidebar:hover {
  color: #0017a0;
}
.box-detail {
  text-align: justify;
  position: relative;
}
.box-detail .news-action {
  position: absolute;
  top: 20px;
  right: 20px;
}
.box-detail .news-action img {
  cursor: pointer;
  width: 25px;
}
.box-detail .content {
  font-size: 1.4em;
  line-height: 3;
  letter-spacing: 0.025em;
  text-align: justify;
  width: 100%;
}
.box-detail .content p:focus {
  text-align: justify;
}
.box-detail .public-date {
  position: relative;
  margin-bottom: 16px;
}
.box-detail .hide-furigana {
  position: absolute;
  top: -8px;
  right: 0;
  align-items: center;
}

.box-detail .hide-furigana .trans {
  margin-left: 15px;
}
.hide-furigana .fuji,
.hide-furigana .trans {
  margin-right: 5px;
}
.box-detail .hide-furigana .fuji-show {
  display: none;
}
.box-detail .translate-button {
  margin-bottom: 10px;
  padding-top: 10px;
}
.box-detail .btn-dictionary {
  padding: 15px 30px;
}
.box-detail span.jlpt-n5 {
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgb(52, 152, 219);
}

.box-detail span.jlpt-n4 {
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgb(46, 204, 113);
}

.box-detail span.jlpt-n3 {
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgb(241, 196, 15);
}

.box-detail span.jlpt-n2 {
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgb(243, 156, 18);
}

.box-detail span.jlpt-n1 {
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgb(231, 76, 60);
}
.box-detail span.unknown {
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid #000000;
}
.user-translate,
.add-translate {
  padding: 10px 10px 10px 30px;
  cursor: pointer;
}
.add-translate {
  color: #2f0a5a;
  font-weight: 600;
  cursor: pointer;
}
.add-translate i {
  font-size: 20px;
}
.user-translate .time-user {
  font-size: 0.8em;
  float: right;
}
.user-translate .username {
  color: #3e3d45;
  font-weight: 600;
}
.user-translate .info-user {
  position: relative;
  overflow: hidden;
  line-height: 25px;
}
.user-translate .active {
  background-color: #ece9e9;
  border: 1px solid #96959a;
  border-radius: 7px;
  cursor: pointer;
}
.user-translate .reaction {
  font-size: 0.9em;
  margin-top: 5px;
}
.user-translate .reaction span:first-child {
  margin-right: 20px;
}
.user-active {
  border: 1px solid #585858;
  background: #eceaea;
  border-radius: 3px;
}
.box-content-translate .old-data {
  line-height: 40px;
  color: rgba(196, 19, 19, 1);
  padding-top: 15px;
}
.box-trans {
  border-bottom: 1px solid #d9d9d9;
  padding: 10px 0;
}
.box-content-translate .box-trans:last-child {
  border-bottom: none;
}
.audio-player {
  padding: 20px 0;
}
.translate-title {
  padding: 15px 20px 0;
  font-size: 1.2em;
  color: #3e3d45;
}
.box-short-info {
  padding: 15px 20px 8px;
  margin-bottom: 15px;
  margin-right: 0;
}
.box-short-info .short-title {
  font-weight: 600;
  letter-spacing: 1.35px;
}
.box-short-info .more-info {
  font-size: 0.9em;
  margin-top: 5px;
}
.box-short-info .publish-date {
  float: right;
}
.img-wrapper {
  display: inline-block;
  overflow: hidden;
  width: 100%;
  max-width: 200px;
}
.related-title {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 15px;
}
.img-sidebar-news {
  border: 1px solid #d9d9d9;
}
.link-sidebar {
  font-size: 0.8em;
  letter-spacing: 1.25px;
}
.box-create-tran {
  display: none;
  padding: 20px;
}
.box-create-tran .box-trans-new {
  margin-bottom: 20px;
}
.box-create-tran .old-data {
  margin-bottom: 5px;
  letter-spacing: 1.1px;
  text-align: justify;
}
.box-create-tran .input-translate {
  width: 90%;
  border-radius: 20px;
  border: 1px solid #cccccc;
  min-height: 35px;
  padding-left: 15px;
}
.box-create-tran .input-translate:focus {
  box-shadow: none;
  outline: none;
  border: 1px solid #291669;
}
.box-create-tran .input-translate::placeholder {
  opacity: 0.8;
  font-size: 0.9em;
}
.box-create-tran #translate-show {
  margin-left: 15px;
}
.box-create-tran .title-trans-new {
  font-size: 1.2em;
}
.carousel-inner {
  margin-bottom: 15px;
}
.carousel-item {
  margin-right: auto !important;
}
.carousel-control-next {
  width: 30px !important;
}
.carousel-control-prev {
  width: 30px !important;
  left: 10px !important;
}
.carousel-control-next i,
.carousel-control-prev i {
  color: #000000;
}
.indicators {
  position: relative;
  margin-bottom: 0 !important;
  margin-top: 20px;
  right: 0;
  bottom: 10px;
  left: 0;
  z-index: 15;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding-left: 0;
  margin-right: 15%;
  margin-left: 15%;
  list-style: none;
}
.indicators .indicators-index {
  width: 7px;
  border-radius: 50%;
  height: 7px;
  background-color: #d3d3d3;
  margin-right: 10px;
  cursor: pointer;
}
.indicators .indicators-index:hover {
  width: 10px;
  height: 10px;
}
.news-more {
  display: none;
}
.view-more-news {
  text-align: center;
  cursor: pointer;
  font-size: 0.95em;
}
.view-more-news i {
  font-size: 0.85em;
  margin-left: 4px;
}
.box-intro {
  margin-top: 20%;
  font-size: 0.95em;
  color: #686767;
}
.box-intro .intro-ex {
  margin-bottom: 10px;
}
.recent-news .img {
  border: 1px solid #d9d9d9;
}
.content p:focus {
  letter-spacing: 0.12em !important;
}
.level-intro {
  border-width: 2px;
  border-style: dotted;
  margin-bottom: 30px;
  margin-top: 30px;
  padding: 15px 35px;
}
.level-intro .box-level {
  margin-bottom: 5px;
  display: inline-block;
  margin-right: 38px;
}
.level-intro .line-level {
  width: 50px;
  height: 2px;
  margin-bottom: 3px;
  display: inline-block;
}
.level-intro .box-level:last-child {
  margin-right: 0;
}
.level-intro .level-5 {
  background-color: rgb(52, 152, 219);
}
.level-intro .level-4 {
  background-color: rgb(46, 204, 113);
}
.level-intro .level-3 {
  background-color: rgb(241, 196, 15);
}
.level-intro .level-2 {
  background-color: rgb(243, 156, 18);
}
.level-intro .level-1 {
  background-color: rgb(231, 76, 60);
}
.level-intro .level-0 {
  background-color: #000000;
}
.switch {
  margin-left: 5px;
}
input[type="checkbox"].switch {
  font-size: 30px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 46px;
  height: 24px;
  background: #ddd;
  border-radius: 20px;
  bottom: -6px;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

input[type="checkbox"].switch:checked {
  background: #50006c;
}

input[type="checkbox"].switch:after {
  position: absolute;
  content: "";
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  -webkit-box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
  left: 0;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

input[type="checkbox"].switch:checked:after {
  left: calc(100% - 25px);
}
.latest-voted.box-sidebar .more-data:last-child {
  border-color: transparent;
}
#myCarousel {
  padding-left: 15px;
  padding-right: 15px;
}

.recent-news .new-infor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-item.date {
  padding: 5px 15px 0;
}
.blur-content {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  backdrop-filter: blur(10px);
  z-index: 12;
}
.modal-dialog.modal-dialog-centered {
  z-index: 16;
  transform: translateY(0);
}
#modal-noti .require-upgrade {
  display: none;
}
#modal-noti .limit-noti-content {
  display: block;
}
#limit-require-upgrade .modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 520px;
  width: max-content;
  margin: 0 10px;
  padding: 20px;
}
#limit-require-upgrade i {
  font-size: 45px;
}
#box-limit-read {
  display: none;
}
.post-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
}
.post-name,
.post-des {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 1;
}
.post-name {
  font-size: 14px;
}
.post-des {
  font-size: 12px;
}
.post-time {
  position: absolute;
  z-index: 1;
  background-color: #56107bd6;
  color: #fff;
  top: 0;
  left: 0;
  border-bottom-right-radius: 10px;
  font-size: 12px;
  padding: 2px 8px;
}
.post-intro {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  color: #000;
  padding: 5px 12px;
}

/* Phần Grammar và Vocabulary */
#news-additional-info {
  margin-top: 20px;
}

#news-additional-info h3 {
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.grammar-wrapper,
.vocabulary-wrapper,
.questions-wrapper {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  margin-bottom: 15px;
}

.grammar-wrapper .grammar-header,
.vocabulary-wrapper .vocabulary-header,
.questions-wrapper .questions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  background-color: #ffffff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.grammar-wrapper .grammar-header h3,
.vocabulary-wrapper .vocabulary-header h3,
.questions-wrapper .questions-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.collapse-icon {
  transition: transform 0.3s ease;
}

.collapse-icon.rotated {
  transform: rotate(180deg);
}

.grammar-wrapper .grammar-content,
.vocabulary-wrapper .vocabulary-content,
.questions-wrapper .questions-content {
  padding: 15px;
  display: none;
}

.grammar-wrapper .grammar-content.show,
.vocabulary-wrapper .vocabulary-content.show,
.questions-wrapper .questions-content.show {
  display: block;
}

.grammar-item,
.vocabulary-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.grammar-item:last-child,
.vocabulary-item:last-child {
  border-bottom: none;
}

.grammar-title,
.vocabulary-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.grammar-text {
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.grammar-level {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.grammar-level.n5,
.vocabulary-level.n5 {
  background-color: #1c6047;
  color: white;
}
.grammar-level.n4,
.vocabulary-level.n4 {
  background-color: #1890ff;
  color: white;
}
.grammar-level.n3,
.vocabulary-level.n3 {
  background-color: #7550b9;
  color: white;
}
.grammar-level.n2,
.vocabulary-level.n2 {
  background-color: #ffc422;
  color: white;
}
.grammar-level.n1,
.vocabulary-level.n1 {
  background-color: #c20e16;
  color: white;
}

.grammar-meaning,
.vocabulary-type {
  color: #666;
  font-style: italic;
}

.grammar-example,
.vocabulary-meaning {
  color: #888;
}

.vocabulary-details {
  display: flex;
  justify-content: space-between;
}

.question-item {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}
.question-item:last-child {
  border-bottom: none;
}
.question-text {
  font-weight: 400;
  margin-bottom: 10px;
  color: #333;
  line-height: 2.2;
}

.question-number {
  font-weight: bold;
  color: #000;
  margin-right: 5px;
}

.question-answers {
  display: flex;
  flex-direction: column;
}

.answer-option {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  min-height: 2.5em;
  padding: 10px;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 2;
}

.answer-option:hover {
  background-color: #f0f0f0;
}

.answer-letter {
  margin-right: 10px;
  font-weight: bold;
  color: #666;
}

.answer-option.selected {
  background-color: #f0f0f0;
  border-color: #666;
}

.answer-option.correct {
  background-color: #e6f3e6;
  border-color: #4caf50;
  color: #2c7f2c;
}

.answer-option.incorrect {
  background-color: #ffebee;
  border-color: #f44336;
  color: #d32f2f;
}

.question-explanation {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
  font-style: italic;
  color: #666;
}

.question-item.answered .answer-option {
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.vocabulary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vocabulary-table thead {
  background-color: #f1f1f1;
}

.vocabulary-table th,
.vocabulary-table td {
  padding-top: 15px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.vocabulary-table tr:last-child td {
  border-bottom: none;
}

.vocabulary-table .vocabulary-word ruby {
  font-weight: normal;
  color: #666;
}

.vocabulary-table .vocabulary-level {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
  margin-left: 10px;
}

.vocabulary-table ruby {
  ruby-position: over;
  font-size: 1em;
}

.vocabulary-table ruby rt {
  color: #666;
  font-size: 0.7em;
  opacity: 0.8;
}

.vocabulary-table tr:hover {
  background-color: rgba(0, 0, 0, 0.04);
  transition: background-color 0.3s ease;
}

.translation-block {
  margin: 0 0 15px;
  padding: 10px;
  background-color: #f5f5f5;
  border-left: 3px solid #3498db;
  border-radius: 0 5px 5px 0;
}

.translation-text {
  margin: 0;
  color: #666;
  font-style: italic;
  font-size: 15px;
}

.jlpt-level {
  display: inline-block;
  padding: 2px 4px;
  margin-right: 10px;
  border-radius: 5px; /* Bo tròn nhiều hơn như trong hình */
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-align: center;
  min-width: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Thêm bóng đổ nhẹ */
}

/* Màu khác nhau cho từng level */
.jlpt-level[data-level="1"] {
  background-color: #c20e16;
}
.jlpt-level[data-level="2"] {
  background-color: #ffc422;
}
.jlpt-level[data-level="3"] {
  background-color: #7550b9;
}
.jlpt-level[data-level="4"] {
  background-color: #1890ff;
}
.jlpt-level[data-level="5"] {
  background-color: #1c6047;
}
.view-count {
  margin-left: 5px;
}
.box-sidebar .more-data .jlpt-level {
  display: inline;
  padding: 2px 6px;
  border-radius: 5px; /* Bo tròn nhiều hơn như trong hình */
  margin-right: 5px;
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-align: center;
  min-width: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Thêm bóng đổ nhẹ */
}

.sidebar-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007bff;
  color: #333;
  text-transform: uppercase;
}

.box-sidebar + .box-sidebar {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.feedback-box {
  background: #e6d7f7;
  border: 1px solid #d1b3f0;
  border-radius: 8px;
  padding: 20px;
  color: #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feedback-header h4 {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.feedback-content p {
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.btn-feedback {
  background-color: #6f42c1;
  border: 1px solid #6f42c1;
  color: white;
  padding: 10px 30px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.btn-feedback:hover {
  background-color: #5a2d91;
  border-color: #5a2d91;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.box-blog {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.blog-title {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #7f20a3;
}

.blog-title a {
  color: #333;
}

.blog-item {
  margin-bottom: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.blog-item a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  display: block;
  transition: color 0.3s ease;
}

.blog-item a:hover {
  color: #291669;
  text-decoration: none;
}

.view-all-link {
  color: #7f20a3;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.view-all-link:hover {
  color: #291669;
  text-decoration: underline;
}

.blog-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #666;
  font-size: 14px;
}

.blog-facebook-banner {
  text-align: center;
}

.blog-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-banner-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
@media (min-width: 768px) {
  .item-content {
    max-height: 108px;
    overflow: hidden;
    max-width: 200px;
    margin: 0 auto;
  }
  .article-info .title {
    font-size: 1.8em;
  }
  .recent-news .new-infor {
    padding-left: 5px;
  }
  .recent-news .nav-link {
    padding: 0.5em 0.7rem;
  }
  #h3-bold-detail {
    margin-bottom: 20px;
  }
  .img-wrapper {
    height: 110px;
  }
}

@media (min-width: 768px) {
  .carousel-inner .carousel-item.active,
  .carousel-inner .carousel-item-next,
  .carousel-inner .carousel-item-prev {
    display: flex;
  }

  .carousel-inner .carousel-item-right.active,
  .carousel-inner .carousel-item-next {
    transform: translateX(25%);
  }

  .carousel-inner .carousel-item-left.active,
  .carousel-inner .carousel-item-prev {
    transform: translateX(-25%);
  }

  .carousel-inner .carousel-item-right,
  .carousel-inner .carousel-item-left {
    transform: translateX(0);
  }

  .indicators .active {
    background-color: #8b8b8b !important;
  }
}

@media (max-width: 768px) {
  .nav-item.date {
    padding: 5px 0 0;
  }
  #h3-bold-detail {
    margin-top: 30px;
  }
  #sidebar .box-sidebar {
    padding: 20px !important;
  }
  .recent-news .new-infor {
    font-size: 0.8em;
  }
  .first-item .title {
    font-size: 1em;
  }
  .recent-news .nav-link {
    padding: 0.5em 0.7em 0.5em 0;
  }
  #carouselExample {
    width: 100%;
  }
  .indicators {
    display: none;
  }
}
