.main-page-news{
  margin: 15px 0 30px;
  padding: 32px 0 40px;
  background-color: #f5f5f5;
}

.main-page-news-header{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.main-page-news-title{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0d2366;
}

.main-page-news-all{
  font-weight: 600;
  color: #0055d4;
  text-decoration: none;
}

.news-card{
  display: flex;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: #111111;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.main-page-news a:hover{
  text-decoration: none;
}

.news-card:hover{
  color: #111111;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}

.news-card-image{
  display: block;
  object-fit: cover;
}

.news-card-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555555;
}

.news-card-meta .news-reading-time{
  gap: 4px;
  font-size: 13px;
}

.news-card-meta .news-reading-time svg{
  width: 14px;
  height: 14px;
}

.news-card-title{
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
}

.news-card-top{
  flex-direction: column;
  height: 100%;
}

.news-card-top .news-card-image{
  width: 100%;
  aspect-ratio: 2 / 1;
}

.news-card-top .news-card-body{
  padding: 18px 22px 22px;
}

.news-card-top .news-card-title{
  font-size: 20px;
  margin-bottom: 10px;
}

.news-card-teaser{
  margin: 0;
  color: #555555;
  font-size: 15px;
  line-height: 1.5;
}

.news-card-side{
  flex: 1 0 auto;
  flex-direction: row;
  min-height: 110px;
}

.news-card-side .news-card-image{
  width: 36%;
  flex-shrink: 0;
  height: auto;
}

.news-card-side .news-card-body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
}

.news-card-side .news-card-title{
  font-size: 15px;
}

@media (max-width: 575.98px){
  .news-card-side{
    flex-direction: column;
  }

  .news-card-side .news-card-image{
    width: 100%;
    aspect-ratio: 2 / 1;
  }

  .news-card-top .news-card-title{
    font-size: 18px;
  }
}

.news-page{
  --news-ink: #111111;
  --news-muted: #5e6470;
  --news-faint: #8a9099;
  --news-line: #d6d9de;
  --news-accent: #0041d9;
  --news-radius: 16px;
}

.news-page-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 28px;
}

.news-page-title{
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--news-ink);
}

.news-page a:hover{
  text-decoration: none;
}

.news-hero{
  position: relative;
  margin-bottom: 56px;
}

.news-hero-image{
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--news-radius);
  background-color: #eef0f3;
}

.news-hero-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero-body{
  padding-bottom: 46px;
}

.news-hero-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 20px;
  font-size: 15px;
  color: var(--news-muted);
}

.news-hero-category{
  font-weight: 600;
  color: var(--news-accent);
}

.news-hero-title{
  margin: 0 0 18px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.news-hero-title a{
  color: var(--news-ink);
}

.news-hero-title a:hover{
  color: var(--news-accent);
}

.news-hero-teaser{
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--news-muted);
}

.news-hero-button{
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  background-color: var(--news-accent);
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.news-hero-button:hover,
.news-hero-button:focus-visible{
  background-color: #0033aa;
  color: #ffffff;
}

.news-hero-controls{
  position: absolute;
  right: 0;
  bottom: 1em;
  display: flex;
  gap: 8px;
}

.news-round-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--news-ink);
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--news-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.news-round-button:hover,
.news-round-button:focus-visible{
  background-color: var(--news-ink);
  color: #ffffff;
}

.news-pagination .pagination{
  flex-wrap: wrap;
  gap: 5px;
}

.news-pagination .list__pagination-custom .page-link{
  margin-right: 0;
  color: #337ab7;
  background-color: #ffffff;
}

.news-pagination .list__pagination-custom .page-link:hover,
.news-pagination .list__pagination-custom .page-link:focus{
  color: #23527c;
  background-color: #f5f5f5;
}

.news-pagination .list__pagination-custom .active .page-link{
  color: #337ab7;
  background-color: #ffffff;
  opacity: .55;
}

.news-pagination .pagination-ellipsis{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
}

.news-section{
  margin-bottom: 56px;
}

.news-section-title{
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  color: var(--news-ink);
}

.news-section-title-lg{
  font-size: 34px;
  font-weight: 800;
}

.news-topics{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.news-topic{
  padding: 8px 18px;
  border: 1px solid var(--news-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  color: var(--news-ink);
  transition: border-color 0.2s ease;
}

.news-topic:hover{
  border-color: var(--news-ink);
  color: var(--news-ink);
}

.news-topic.active{
  border: 2px solid var(--news-ink);
  padding: 7px 17px;
}

.news-tile-link{
  display: block;
  color: var(--news-ink);
}

.news-tile-image{
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
  border-radius: var(--news-radius);
  background-color: #eef0f3;
}

.news-tile-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-tile-link:hover .news-tile-image img{
  transform: scale(1.03);
}

.news-tile-link .news-reading-time{
  display: flex;
  margin-bottom: 12px;
}

.news-tile-title{
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--news-ink);
}

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

@media (max-width: 991.98px){
  .news-section-title-lg{
    font-size: 28px;
  }
}

@media (max-width: 575.98px){
  .news-page-title{
    font-size: 24px;
  }

  .news-hero-teaser{
    font-size: 16px;
  }

  .news-topic{
    padding: 7px 14px;
    font-size: 13px;
  }

  .news-topic.active{
    padding: 6px 13px;
  }
}

.news-article{
  max-width: 760px;
  margin: 8px auto 64px;
}

.news-article-badges{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 24px;
}

.news-article-date{
  font-size: 14px;
  color: var(--news-muted);
}

.news-reading-time{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 400;
  color: var(--news-faint, #8a9099);
}

.news-hero-meta a{
  font-weight: 600;
  color: var(--news-accent);
}

.news-article-image{
  display: block;
  width: 100%;
  margin-bottom: 32px;
  border-radius: var(--news-radius);
}

.news-article-title{
  margin: 0 0 20px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--news-ink);
}

.news-article-lead{
  margin-bottom: 28px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--news-muted);
}

.news-article-body{
  font-size: 18px;
  line-height: 1.75;
  color: var(--news-ink);
  overflow-wrap: break-word;
}

.news-article-body p,
.news-article-body ul,
.news-article-body ol{
  margin-bottom: 1.25em;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4{
  margin: 1.6em 0 0.6em;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--news-ink);
}

.news-article-body h4{
  font-size: 20px;
}

.news-article-body li{
  margin-bottom: 0.4em;
}

.news-article-body a{
  color: var(--news-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-article-body img{
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 32px;
  border-radius: var(--news-radius);
}

.news-article-body > img:first-child{
  width: 100%;
}

.news-article-body blockquote{
  margin: 1.5em 0;
  padding-left: 20px;
  border-left: 3px solid var(--news-ink);
  font-size: 20px;
}

.news-article-body table{
  width: 100%;
  margin-bottom: 1.25em;
  font-size: 16px;
}

.news-article-body td,
.news-article-body th{
  padding: 6px 8px;
  border-bottom: 1px solid var(--news-line);
}

.news-article-latest{
  padding-top: 40px;
  border-top: 1px solid var(--news-line);
}

.news-section-header{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.news-section-header .news-section-title{
  margin: 0;
}

.news-section-all{
  font-weight: 600;
  color: var(--news-accent);
}

@media (max-width: 575.98px){
  .news-article-lead{
    font-size: 17px;
  }

  .news-article-body{
    font-size: 17px;
  }
}

form.news-add label{
  display: block;
  margin-top: 15px;
}

table.news-table{
  width: 100%;
}

table.news-table td{
  padding: 5px;
}

@media (min-width: 768px) {
  .news-list-search-block{
    padding: 0;
    width: 80%;
    margin: 10% 10%;
    position: absolute;
    z-index: 997;
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
  }

  .news-list-search-block h1,
  .news-list-search-block h2,
  .news-list-search-block hr,
  .news-list-search-block .news-detail-head-text{
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 7px #000;
    text-align: center;
  }

  .news-list-search-block h1,
  .news-list-search-block .news-detail-head-text{
    font-size: 24px;
  }

  .news-category-menu{

    margin-top: 0;
  }
}