/* Large devices (desktops, 992px and up) */

@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
    }
    .dropdown>.dropdown-toggle:active {
        /*Without this, clicking will make it sticky*/
        pointer-events: none;
    }
}


body {
    /*background-color: #000055 !important;*/
}

main a {
    color: #f50000;
}

h1, h2, h3, h4, h5 {
    font-family: 'Titillium Web', sans-serif;
}

/*.main-wrapper {
    background: #fff;
    margin: 20px 0;
    border-radius: 30px;
}*/

.navbar-bg {
    background: #00CFA6;
}
.navbar-bg .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {display:none;}

.navbar-brand, .navbar-brand a, .navbar-brand a:hover {
    color: #FF2400!important;
    -webkit-text-stroke-color: #000;
    -webkit-text-stroke-width: 1px;
    /*text-shadow: 0px 0px 10px rgba(0,207,166,1);*/
    font-weight: bold;
    font-size: 1.5rem!important;
}



.navbar-nav {
    margin: 0 auto;
    color: #ffffff!important;
    font-weight: bold;
}

.button-sign-in {
    background: #fff!important;
    color: #000!important;
    border: 2px solid!important;
    border-color: #FF2400!important;
    font-weight: bold!important;
    transition: background-color 0.5s ease-out!important;
}

.button-sign-in:hover {
    background-color: #EEEEEE!important;
    color: #000!important;
    border: 2px solid;
    border-color: #FF2400!important;
}

.button-sign-up {
    background-color: #FF2400!important;
    color: #fff!important;
    border: 2px solid #fff!important;
    font-weight: bold!important;
    transition: background-color 0.5s ease-out!important;

}

.button-sign-up:hover {
    background-color: #E02608!important;
    color: #fff!important;
}

.btn-head {
    color: #fff !important;
    background-color: #AC6E2F !important;
    border-color: #AC6E2F !important;
}

/*.content-block {
    background: #0b304b;
}*/

.content-block a, .content-block a:hover {
    color: #f5b95f;
}

.text-primary {
    color: #ffbe3c!important;
}

.card-title a {
    color: #AC6E2F !important;
}

.sidebar-title {
    border-bottom: 2px solid #00CFA6;
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 22px;
    text-transform: uppercase;
    display: inline-block;
}

.bd-placeholder-img {
    width: 100%;
    height: auto;
}

.footer {
    padding: 2.5rem 0;
    color: #000;
    text-align: center;
    background: #00CFA6;
}

.footer a, .footer a:hover {
    color: #fff!important;
}

.footer div {
    margin: 0!important;
}

.tags a {
    background: #AC6E2F;
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-right: 3px;
    margin-bottom: 3px;
}

.tags a {
    color: #fff;
}

.tags a:hover {
    color: #fff;
    text-decoration: none;
}

.recent-posts li {
    min-height: 60px;
}

.list_contents {
    background: #ECFFFB;
    box-shadow: 0 0.4rem 1.6rem rgba(63,48,88,.1);
    padding: 10px 0 10px 40px;
    border-radius: 10px;
    border: 1px solid #00CFA6;
}

.list_contents li {
    list-style-type: decimal;
    color: #54585a;
}

.list_contents li a {
    color: #54585a;
}


.sidebar {
    background: #eee;
}

.sidebar {
    text-align: center;
}

.sidebar form {
    margin: 0;
}

.sidebar-top li {
    background: #fff!important;
}

.sidebar-top li {
    color: #FF2400;
}

.sidebar-top li a {
    color: #FF2400!important;
}

.sidebar-widget-btn a{
    background-color: #FF2400!important;
    color: #fff!important;
    border: 2px solid #fff!important;
    font-weight: bold!important;
    transition: background-color 0.5s ease-out!important;

}

.sidebar-widget-btn a:hover {
    background-color: #E02608!important;
    color: #fff!important;
}

.widget-tags a {
    font-size: 12px;
}

.blog-post {
    max-width: 100%;
}

.blog-post img {
    max-width: 100%;
    display: block;
    margin: 2em auto;
}

h1 {
    font-size: 1.6em !important;
}

h2 {
    font-size: 1.5em !important;
}

h3 {
    font-size: 1.4em !important;
}

h4 {
    font-size: 1.3em !important;
}

h5 {
    font-size: 1.2em !important;
}

h5 {
    font-size: 1.1em !important;
}

h2.card-title {
    font-size: 1em !important;
}

/* Таблицы только внутри main и блока статьи */
main .blog-post table{
  width:100%;
  max-width:100%;
  min-width:720px;              /* если контента много — появится горизонтальный скролл */
  display:block;                 /* чтобы overflow работал на самой таблице */
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;

  border:1px solid rgba(0,0,0,.14);
  border-radius:10px;
  background:#fff;

  border-collapse:separate;
  border-spacing:0;

  font-size:15px;
  line-height:1.45;
  color:#1f2328;
}

/* 1) Любой блок, внутри которого есть table — делаем скролл-контейнером */
main .blog-post :is(div, section, article, p){
  max-width: 100%;
}

/* 2) Скролл ДЛЯ РОДИТЕЛЯ ТАБЛИЦЫ (таблица остаётся table) */
main .blog-post table{
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  overflow: hidden; /* чтобы скругление работало */
}

/* 3) Вот здесь — ключ: скролл у непосредственного контейнера таблицы */
main .blog-post table{
  display: table; /* оставляем настоящую таблицу */
}

main .blog-post table:where(*) {}

/* скролл создаём на ближайшем контейнере, где лежит table */
main .blog-post table{
  /* ничего */
}

main .blog-post table{
  /* ничего */
}

/* ✅ Надёжный приём: дать overflow ближайшему wrapper’у таблицы */
main .blog-post table{
  /* таблица как обычно */
}
main .blog-post table{
  /* таблица */
}

/* Сам wrapper — это элемент, который СРАЗУ содержит table */
main .blog-post *:has(> table){
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;        /* отступ снизу под скролл */
  margin: 14px 0 22px;
  border-radius: 10px;
}

/* Скроллбар */
main .blog-post *:has(> table)::-webkit-scrollbar{ height: 10px; }
main .blog-post *:has(> table)::-webkit-scrollbar-track{ background: rgba(0,0,0,.06); border-radius: 999px; }
main .blog-post *:has(> table)::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.22); border-radius: 999px; }
main .blog-post *:has(> table)::-webkit-scrollbar-thumb:hover{ background: rgba(0,0,0,.30); }

/* Шапка как на скрине */
main .blog-post table thead th{
  background: #a9a9a9;
  color: #1f2328;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.16);
  white-space: nowrap;
}

/* Ячейки */
main .blog-post table td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  vertical-align: top;
  white-space: nowrap;
}

/* В длинной колонке разрешаем перенос */
main .blog-post table td:nth-child(2){
  white-space: normal;
  min-width: 280px;
}

/* Зебра */
main .blog-post table tbody tr:nth-child(even) td{
  background: rgba(0,0,0,.02);
}

.navbar-nav.mr-auto > li:nth-last-child(-n+3) {
  display: none !important;
}