/*@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

/* Применяем шрифт ко всему сайту */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0px;
    background-color: #fff;
    color: #222;
}




a:link {
     text-decoration: none;
      font-weight: 500;
       color: #222;/* цвет непосещённой ссылки */
      
}

a:visited {

  color: #777777; /* цвет уже посещённой */
  
}

ul, ol {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

li {
  margin-bottom: 0.5rem;
}


.site-logo {
  font-weight: bold;
  font-size: 1.5em;
  text-decoration: none;
  color: #222;
}


.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}
.site-nav a {
  text-decoration: none;
  color: #0077cc;
}
.site-nav a:hover {
  text-decoration: underline;
}



.news-container {
      max-width: 800px;
      margin: 1px auto;
      padding: 0 0px;
      
    }

.border{
      border: #222;
      border-width: 1px;
      border-style: solid;
}

.news-item {
  text-align: justify;
  display: flex;
  align-items: flex-start;
  padding: 2px 2px 8px 0px;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
}

.news-time {
  color: #888;
  font-size: 0.9rem;
  margin-right: 10px;
  margin-top: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-title {
  font-size: 1rem;
  flex: 1;
}

.news-content{
  text-align: justify;
  line-height: 1.5; 
  /* text-indent: 20px; */
  color: #222;
  
  
}


/* Заголовки статей */
h1, h2, h3, h4 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  color: #222222;
  
}

article p{
  margin-bottom: 1em;

}

/* Подзаголовки, превью, списки новостей */
h5, h6 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content-image-wrapper {
  text-align: center;
}

.news-content-image-wrapper img {
  display: inline-block; /* не обязателен, но безопаснее */
}

.news-content-title{
  text-align: left;
  font-size: 2em;
  
}

.news-content-container{
  padding: 0px;
}

.page-container{
  padding: 10px;
   text-align: justify;
  line-height: 1.5; 

   max-width: 800px;   /* ограничиваем максимум */
  width: 100%;        /* но позволяем сужаться на маленьких экранах */
  margin: 0 auto;     /* центрируем по горизонтали */
  padding: 0 10px;    /* внутренние отступы, чтобы текст не прилипал к краям */
  box-sizing: border-box; /* чтобы padding учитывался в ширине */
}




.home-container{
  padding: 10px;
   text-align: justify;
  line-height: 1.5; 
  /* text-indent: 20px; */
   max-width: 800px;   /* ограничиваем максимум */
  width: 100%;        /* но позволяем сужаться на маленьких экранах */
  margin: 0 auto;     /* центрируем по горизонтали */
  padding: 0 10px;    /* внутренние отступы, чтобы текст не прилипал к краям */
  box-sizing: border-box; /* чтобы padding учитывался в ширине */
}

.pagination-wrapper{
 
width: 800px; margin: 0 auto; 
}




.small a {
  color: blue !important; 
  text-decoration: underline; /* если нужно подчеркнуть */
  
}

.small{
  font-size: 12px;
  display: flex; justify-content: center; align-items: center; text-align:center;
}




/* buttons.css */
.btn2 {
    display: inline-block;
    padding: 5px 10px;
    background-color: darkblue;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn2:hover {
    background-color: #0056b3;
}

.img-left {
    float: left;       /* Картинка слева */
    margin: 7px 15px 10px 0; /* Отступы вокруг картинки */
    width: 120px;      /* Ширина картинки */
  }

  .logo {
    height: 36px; /* маленький логотип */
    width: auto;
    margin-right: 20px;
}

.logo-link {
    display: inline-block; /* важно, чтобы ссылка была обособленной */
    z-index: 10;           /* чтобы быть выше соседних элементов */
}

.wrap{max-width:980px; margin:0 auto; padding:28px 20px 60px}

.line {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}


.pagination {
  
  width: 100%;        /* но позволяем сужаться на маленьких экранах */
  margin: 0 auto;    
  display: flex;
  justify-content: center;  /* центрируем кнопки по горизонтали */
  gap: 10px;                /* расстояние между кнопками */
  margin: 2rem 0;           /* отступ сверху и снизу */
  flex-wrap: wrap;           /* чтобы на маленьких экранах переносилось */
  list-style: none;          /* если это ul/li */
  padding: 0;
}

.pagination a, 
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: #007BFF;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
  background-color: #007BFF;
  color: #fff;
}

.pagination span {
  background-color: #007BFF;
  color: #fff;
  border-color: #007BFF;
  cursor: default;
}

hr {
  border: none;
  border-top: 2px dotted #bbb;
  margin: 2rem 0;
}



ul.custom-list {
  list-style: none;      /* убираем точки */
  padding: 0;            /* убираем отступы слева */
  margin: 0;             /* убираем внешние отступы */
}


ul.custom-list li {
  padding: 10px 1px;    /* внутренний отступ */
  margin-bottom: 8px;    /* расстояние между элементами */
  background: #f5f5f5;   /* светлый фон */
  border-radius: 6px;    /* закругленные углы */
  transition: background 0.3s;
  text-align: left;
}

ul.custom-list li:hover {
  background: #e0e0e0;   /* эффект при наведении */
  cursor: pointer;
}

ul.custom-list li a {
  color: #333;            /* обычный цвет текста */
  text-decoration: none;  /* убираем подчеркивание */

}

ul.custom-list li a:visited {
  color: #333;            /* посещённая ссылка выглядит так же */
}

ul.custom-list li a:hover,
ul.custom-list li a:active {
  color: #333;            /* при наведении и клике не меняем цвет */
}

ul.custom-list li img.list-icon {
  width: 24px important;  /* фиксированная ширина */
  height: 24px important;
  margin-right: 10px important; /* расстояние между иконкой и текстом */
}

#token-timer {
  position: fixed;
  top: 20px;
  right: 68px;
  background: #222;
  color: #fff;
  font-size: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none; /* ховаємо, поки не треба */
}
#token-timer.success {
  background: #2ecc71; /* зелений після нарахування */
}
#token-balance {
  position: fixed;
  top: 20px;
  right: 10px; /* правіше таймера */
  background: #222;
  color: #fff;
  font-size: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 9999;
}





/* Стилі для заголовка сайту з логотипом, назвою та інформацією про токени */


.site-header {
  background: darkblue;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* дозволяє переноситись на маленьких екранах */
  padding: 15px;
  border-bottom: 1px solid #ccc;
  gap: 15px; 
  text-align: center;
  
}

  .site-header2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* завжди в один ряд */
  padding: 10px 15px;
  border-bottom: 1px solid #ccc;
  gap: 10px;
  overflow: hidden; /* обрізаємо, якщо дуже довго */
}

.site-header .hdr-image {
  flex: 0 0 50px; /* менша ширина на мобільних */
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
}

.site-header .hdr-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header .hdr-title {
  flex: 1 1 auto; /* займає решту простору */
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* обрізає довгий текст */
  
}

.titlestring {
  font-family: 'PT Serif', Georgia, serif; 
  color: white !important; 
  font-size: 25px;
  text-decoration: none;
  text-align: center;
 
}

.stars {
  --percent: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: 1.2em;
  font-family: Times; /* чтобы звёзды были аккуратные */
  line-height: 1;
}

.stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  background: linear-gradient(90deg, gold var(--percent), #ccc var(--percent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 18px;
}

.share-buttons .share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.share-buttons .share-icon:hover {
    color: #fff;
}

.share-buttons .share-icon:hover .fa-facebook-f { background:#3b5998; }
.share-buttons .share-icon:hover .fa-twitter { background:#1da1f2; }
.share-buttons .share-icon:hover .fa-telegram-plane { background:#0088cc; }
.share-buttons .share-icon:hover .fa-linkedin-in { background:#0077b5; }


.footer{
text-align: center; padding: 25px 0; color: white; font-size: 14px; background: #100C24;
}


/* Адаптив для вузьких екранів */
@media (max-width: 400px) {
  .site-header .hdr-image {
    flex: 0 0 40px;
    height: 40px;
  }
  .site-header .hdr-title {
    font-size: 16px;
  }
  #token-timer, #token-balance {
    font-size: 12px;
    padding: 2px 6px;
     top: 1px;
    right: 35px;
  }

  #token-balance {
    top: 1px;
    right: 1px;
  }
  

}

@media (max-width: 600px) {
  ul, ol {
    line-height: 1.2;
}

  h1,h2 {
    font-size: 1.4rem;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-time {
    margin-bottom: 5px;
  }

  .home-container{
    max-width: 100%;
     margin: 0;
      padding: 0 15px;
     
      box-sizing: border-box;

  }

  .pagination-wrapper{
 
    max-width: 100%;
     margin: 0 auto; 
  }

  .titlestring {
    font-size: 18px;
  }

  .footer {
        font-size: 10px;   /* чуть меньше на маленьких экранах */
    }
  


}

